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
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
np
nptool
Commits
eefb2161
Commit
eefb2161
authored
Nov 16, 2020
by
Adrien Matta
☠
Browse files
* Adding High TOT threshold for FDC2
parent
d03139bf
Pipeline
#91166
passed with stages
in 16 minutes and 57 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
NPLib/Detectors/Samurai/TSamuraiFDC2Physics.cxx
NPLib/Detectors/Samurai/TSamuraiFDC2Physics.cxx
+5
-4
NPLib/Detectors/Samurai/TSamuraiFDC2Physics.h
NPLib/Detectors/Samurai/TSamuraiFDC2Physics.h
+2
-1
No files found.
NPLib/Detectors/Samurai/TSamuraiFDC2Physics.cxx
View file @
eefb2161
...
@@ -45,9 +45,10 @@ ClassImp(TSamuraiFDC2Physics)
...
@@ -45,9 +45,10 @@ ClassImp(TSamuraiFDC2Physics)
m_PreTreatedData
=
new
TSamuraiFDC2Data
;
m_PreTreatedData
=
new
TSamuraiFDC2Data
;
m_EventPhysics
=
this
;
m_EventPhysics
=
this
;
//m_Spectra = NULL;
//m_Spectra = NULL;
ToTThreshold
=
180
;
ToTThreshold_L
=
180
;
DriftLowThreshold
=
0.2
;
ToTThreshold_H
=
1000
;
DriftUpThreshold
=
9.4
;
DriftLowThreshold
=
0.4
;
DriftUpThreshold
=
9.3
;
PowerThreshold
=
14
;
PowerThreshold
=
14
;
}
}
...
@@ -233,7 +234,7 @@ void TSamuraiFDC2Physics::PreTreat(){
...
@@ -233,7 +234,7 @@ void TSamuraiFDC2Physics::PreTreat(){
etime
=
0
;
etime
=
0
;
}
}
// a valid wire must have an edge
// a valid wire must have an edge
if
(
etime
&&
time
&&
etime
-
time
>
ToTThreshold
){
if
(
etime
&&
time
&&
etime
-
time
>
ToTThreshold
_L
&&
etime
-
time
<
ToTThreshold_H
){
Detector
.
push_back
(
det
);
Detector
.
push_back
(
det
);
Layer
.
push_back
(
layer
);
Layer
.
push_back
(
layer
);
Wire
.
push_back
(
wire
);
Wire
.
push_back
(
wire
);
...
...
NPLib/Detectors/Samurai/TSamuraiFDC2Physics.h
View file @
eefb2161
...
@@ -116,7 +116,8 @@ class TSamuraiFDC2Physics : public TObject, public NPL::VDetector{
...
@@ -116,7 +116,8 @@ class TSamuraiFDC2Physics : public TObject, public NPL::VDetector{
map
<
SamuraiDCIndex
,
double
>
Wire_Angle
;
//! Wire Angle (0 for X, 90 for Y, U and V are typically at +/-30)
map
<
SamuraiDCIndex
,
double
>
Wire_Angle
;
//! Wire Angle (0 for X, 90 for Y, U and V are typically at +/-30)
private:
// Analysis
private:
// Analysis
double
ToTThreshold
;
//! a ToT threshold to remove noise
double
ToTThreshold_H
;
//! a ToT Low threshold to remove noise
double
ToTThreshold_L
;
//! a ToT High threshold to remove noise
// since the calibration is a sigmoid there quite a few event at the edge
// since the calibration is a sigmoid there quite a few event at the edge
double
DriftLowThreshold
;
//! Minimum Drift length to keep the hit
double
DriftLowThreshold
;
//! Minimum Drift length to keep the hit
double
DriftUpThreshold
;
//! Maximum Drift length to keep the hit
double
DriftUpThreshold
;
//! Maximum Drift length to keep the hit
...
...
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