diff --git a/src/THcDriftChamberPlane.cxx b/src/THcDriftChamberPlane.cxx index e6f97ebb86546569cfa06838f0acb678b76e7bff..5e3c8c6119a035a0022f4270abcb39ffaa6f881f 100644 --- a/src/THcDriftChamberPlane.cxx +++ b/src/THcDriftChamberPlane.cxx @@ -299,6 +299,7 @@ Int_t THcDriftChamberPlane::DefineVariables( EMode mode ) {"dist","Drift distancess", "fHits.THcDCHit.GetDist()"}, {"nhit", "Number of hits", "GetNHits()"}, + {"RefTime", "TDC reference time", "fTdcRefTime"}, { 0 } }; @@ -352,7 +353,7 @@ Int_t THcDriftChamberPlane::ProcessHits(TClonesArray* rawhits, Int_t nexthit) fHits->Clear(); fRawHits->Clear(); - + fTdcRefTime = kBig; Int_t nrawhits = rawhits->GetLast()+1; fNRawhits=0; Int_t ihit = nexthit; @@ -366,6 +367,7 @@ Int_t THcDriftChamberPlane::ProcessHits(TClonesArray* rawhits, Int_t nexthit) Int_t wireNum = hit->fCounter; THcDCWire* wire = GetWire(wireNum); Bool_t First_Hit_In_Window = kTRUE; + if (hit->GetRawTdcHit().HasRefTime()) fTdcRefTime = hit->GetRawTdcHit().GetRefTime(); for(UInt_t mhit=0; mhit<hit->GetRawTdcHit().GetNHits(); mhit++) { fNRawhits++; /* Sort into early, late and ontime */ diff --git a/src/THcDriftChamberPlane.h b/src/THcDriftChamberPlane.h index 204e4e3f281227e0657034e82834bc163dc69fe5..96fd384cce6e267dd1c3fad8773805b10bb332a9 100644 --- a/src/THcDriftChamberPlane.h +++ b/src/THcDriftChamberPlane.h @@ -84,6 +84,8 @@ protected: TClonesArray* fHits; TClonesArray* fRawHits; TClonesArray* fWires; + + Double_t fTdcRefTime; Int_t fVersion; Int_t fWireOrder;