From a93f097626376130d3e2b4c7590060472f1c4862 Mon Sep 17 00:00:00 2001 From: Gabriel Niculescu <gabriel@jalb.org> Date: Mon, 28 Jan 2013 11:08:05 -0500 Subject: [PATCH] Implementing min/max TDC time cuts and pedestal subtraction. --- src/THcHodoscope.cxx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/THcHodoscope.cxx b/src/THcHodoscope.cxx index ac85bd8..a56dbb8 100644 --- a/src/THcHodoscope.cxx +++ b/src/THcHodoscope.cxx @@ -558,7 +558,10 @@ Int_t THcHodoscope::Decode( const THaEvData& evdata ) // Let each plane get its hits Int_t nexthit = 0; for(Int_t ip=0;ip<fNPlanes;ip++) { - nexthit = fPlanes[ip]->ProcessHits(fRawHitList, nexthit); + // nexthit = fPlanes[ip]->ProcessHits(fRawHitList, nexthit); + // GN: select only events that have reasonable TDC values to start with + // as per the Engine h_strip_scin.f + nexthit = fPlanes[ip]->ProcessHits(fRawHitList,fScinTdcMin,fScinTdcMax,nexthit); } // fRawHitList is TClones array of THcHodoscopeHit objects @@ -589,7 +592,7 @@ Double_t THcHodoscope::TimeWalkCorrection(const Int_t& paddle, } //_____________________________________________________________________________ -Int_t THcHodoscope::CoarseProcess( TClonesArray& /* tracks */ ) +Int_t THcHodoscope::CoarseProcess( TClonesArray& tracks ) { // Calculation of coordinates of particle track cross point with scint // plane in the detector coordinate system. For this, parameters of track @@ -598,7 +601,11 @@ Int_t THcHodoscope::CoarseProcess( TClonesArray& /* tracks */ ) // Apply corrections and reconstruct the complete hits. // // static const Double_t sqrt2 = TMath::Sqrt(2.); - + /* cout <<"**** in THcHodoscope CoarseProcess ********\n"; + for(Int_t i=0;i<fNPlanes;i++) { + cout<<i<<" "; + fPlanes[i]->CoarseProcess(tracks); + }*/ ApplyCorrections(); return 0; -- GitLab