Skip to content
Snippets Groups Projects
Unverified Commit aa18926f authored by Eric Pooser's avatar Eric Pooser Committed by GitHub
Browse files

Merge pull request #414 from JeffersonLab/fall-2018-ver2

Fix problems in THcTrigDet.cxx
parents 24235e0a 15231c9c
No related branches found
No related tags found
No related merge requests found
......@@ -255,7 +255,7 @@ Int_t THcTrigDet::Decode(const THaEvData& evData) {
UInt_t good_hit=999;
for (UInt_t thit=0; thit<rawAdcHit.GetNPulses(); ++thit) {
Int_t TestTime=rawAdcHit.GetPulseTimeRaw(thit);
if (TestTime>fAdcTimeWindowMin[cnt]&&TestTime<fAdcTimeWindowMax[cnt]) {
if (TestTime>fAdcTimeWindowMin[cnt]&&TestTime<fAdcTimeWindowMax[cnt]&&good_hit==999) {
good_hit=thit;
}
}
......@@ -276,7 +276,7 @@ Int_t THcTrigDet::Decode(const THaEvData& evData) {
UInt_t good_hit=999;
for (UInt_t thit=0; thit<rawTdcHit.GetNHits(); ++thit) {
Int_t TestTime= rawTdcHit.GetTimeRaw(thit);
if (TestTime>fTdcTimeWindowMin[cnt]&&TestTime<fTdcTimeWindowMax[cnt]) {
if (TestTime>fTdcTimeWindowMin[cnt]&&TestTime<fTdcTimeWindowMax[cnt]&&good_hit==999) {
good_hit=thit;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment