diff --git a/NPLib/Detectors/Samurai/TSamuraiFDC2Physics.cxx b/NPLib/Detectors/Samurai/TSamuraiFDC2Physics.cxx index 312f203a7a5abb9606f5e3756d4322dd9463b3af..d41679d38aec1b85686dd323ac75498e3e99541b 100644 --- a/NPLib/Detectors/Samurai/TSamuraiFDC2Physics.cxx +++ b/NPLib/Detectors/Samurai/TSamuraiFDC2Physics.cxx @@ -45,9 +45,10 @@ ClassImp(TSamuraiFDC2Physics) m_PreTreatedData = new TSamuraiFDC2Data ; m_EventPhysics = this ; //m_Spectra = NULL; - ToTThreshold = 180; - DriftLowThreshold=0.2; - DriftUpThreshold=9.4; + ToTThreshold_L = 180; + ToTThreshold_H = 1000; + DriftLowThreshold=0.4 ; + DriftUpThreshold=9.3; PowerThreshold=14; } @@ -233,7 +234,7 @@ void TSamuraiFDC2Physics::PreTreat(){ etime=0; } // 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); Layer.push_back(layer); Wire.push_back(wire); diff --git a/NPLib/Detectors/Samurai/TSamuraiFDC2Physics.h b/NPLib/Detectors/Samurai/TSamuraiFDC2Physics.h index 8549b92d2f552d832632fbcd63f786c865497a28..7506ef76dea8e47ec62202816658e86484efff48 100644 --- a/NPLib/Detectors/Samurai/TSamuraiFDC2Physics.h +++ b/NPLib/Detectors/Samurai/TSamuraiFDC2Physics.h @@ -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) 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 double DriftLowThreshold;//! Minimum Drift length to keep the hit double DriftUpThreshold;//! Maximum Drift length to keep the hit