diff --git a/src/THcHitList.cxx b/src/THcHitList.cxx index a66e4ce5bb1dd6d2afc9cb5e8541d40d5416f597..8422139db38f86c6dc2f2e238db95cc394349346 100644 --- a/src/THcHitList.cxx +++ b/src/THcHitList.cxx @@ -21,7 +21,7 @@ using namespace std; #define SUPPRESSMISSINGADCREFTIMEMESSAGES 1 -THcHitList::THcHitList() : fMap(0), fTISlot(0) +THcHitList::THcHitList() : fMap(0), fTISlot(0), fDisableSlipCorrection(kFALSE) { /// Normal constructor. @@ -167,6 +167,8 @@ void THcHitList::InitHitList(THaDetMap* detmap, fNTDCRef_miss = 0; fNADCRef_miss = 0; + + // DisableSlipCorrection(); } /** @@ -213,9 +215,10 @@ Int_t THcHitList::DecodeToHitList( const THaEvData& evdata, Bool_t suppresswarni } } } + if(fDisableSlipCorrection) fTISlot = -1; Int_t titime = 0; - if(fTISlot!=0) { + if(fTISlot>0) { #define FUDGE 7 titime = evdata.GetData(fTICrate, fTISlot, 2, 0)-FUDGE; // Need to get the FADC time for all modules in this crate @@ -487,7 +490,7 @@ Int_t THcHitList::DecodeToHitList( const THaEvData& evdata, Bool_t suppresswarni } } #if 1 - if(fTISlot) { + if(fTISlot>0) { // cout << "TI ROC: " << fTICrate << " TI Time: " << titime << endl; map<Int_t, Int_t>::iterator it; for(it=fTrigTimeShiftMap.begin(); it!=fTrigTimeShiftMap.end(); it++) { diff --git a/src/THcHitList.h b/src/THcHitList.h index 34cf4f93d60312a8627b674e9bf6038fc409a37a..423a75e9c0ffd07c749fc74a9ca776279482235f 100644 --- a/src/THcHitList.h +++ b/src/THcHitList.h @@ -40,6 +40,7 @@ public: TClonesArray* GetHitList() const {return fRawHitList; } void CreateMissReportParms(const char *prefix); void MissReport(const char *name); + void DisableSlipCorrection() {fDisableSlipCorrection = kTRUE;} UInt_t fNRawHits; Int_t fNMaxRawHits; @@ -82,6 +83,7 @@ protected: Decoder::THaCrateMap* fMap; /* The Crate map */ Int_t fTISlot; Int_t fTICrate; + Double_t fDisableSlipCorrection; std::map<Int_t, Int_t> fTrigTimeShiftMap; std::map<Int_t, Decoder::Fadc250Module*> fFADCSlotMap;