From eefb21615ce55b6488baf826fc08003b37271bf4 Mon Sep 17 00:00:00 2001 From: Adrien Matta <matta@lpccaen.in2p3.fr> Date: Mon, 16 Nov 2020 17:05:43 +0100 Subject: [PATCH] * Adding High TOT threshold for FDC2 --- NPLib/Detectors/Samurai/TSamuraiFDC2Physics.cxx | 9 +++++---- NPLib/Detectors/Samurai/TSamuraiFDC2Physics.h | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/NPLib/Detectors/Samurai/TSamuraiFDC2Physics.cxx b/NPLib/Detectors/Samurai/TSamuraiFDC2Physics.cxx index 312f203a7..d41679d38 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 8549b92d2..7506ef76d 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 -- GitLab