Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
np
nptool
Commits
f3a6d2b2
Commit
f3a6d2b2
authored
Jun 11, 2021
by
Adrien Matta
☠
Browse files
* Adding option to change Threshold in Nebula
parent
a222a38b
Pipeline
#123764
passed with stages
in 3 minutes and 45 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
NPLib/Detectors/Nebula/TNebulaPhysics.h
NPLib/Detectors/Nebula/TNebulaPhysics.h
+4
-1
Projects/S034/Calibration/Nebula/gamma.cxx
Projects/S034/Calibration/Nebula/gamma.cxx
+1
-1
No files found.
NPLib/Detectors/Nebula/TNebulaPhysics.h
View file @
f3a6d2b2
...
...
@@ -193,6 +193,9 @@ class TNebulaPhysics : public TObject, public NPL::VDetector {
double
m_Q_Threshold
;
//!
double
m_V_Threshold
;
//!
public:
void
SetQThreshold
(
double
t
)
{
m_Q_Threshold
=
t
;};
void
SetVThreshold
(
double
t
)
{
m_V_Threshold
=
t
;};
// number of detectors
private:
int
m_NumberOfBars
;
//!
...
...
@@ -237,7 +240,7 @@ class TNebulaPhysics : public TObject, public NPL::VDetector {
// spectra getter
public:
map
<
string
,
TH1
*>
GetSpectra
();
// Static constructor to be passed to the Detector Factory
public:
static
NPL
::
VDetector
*
Construct
();
...
...
Projects/S034/Calibration/Nebula/gamma.cxx
View file @
f3a6d2b2
...
...
@@ -3,6 +3,6 @@ void gamma(){
auto
chain
=
new
TChain
(
"PhysicsTree"
);
chain
->
Add
(
"root/analysis/gamma/run418.root"
);
chain
->
Draw
(
"Nebula.
Time
:Nebula.DetectorNumber>>h(150,0,150,
1
000,0,
1
50)"
,
""
,
"colz"
);
chain
->
Draw
(
"
(
Nebula.
PosZ+4650)/Nebula.TOF
:Nebula.DetectorNumber>>h(150,0,150,
2
000,0,5
0
0)"
,
""
,
"colz"
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment