Skip to content

Commit

Permalink
Remove TOF active mask in fired TOF trigger maps
Browse files Browse the repository at this point in the history
  • Loading branch information
ekryshen authored and ktf committed Jun 25, 2020
1 parent 6774b2a commit 45a7fc4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions TOF/TOFsim/AliTOFTrigger.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -693,9 +693,11 @@ void AliTOFTrigger::PrepareTOFMapFromRaw(AliRawReader *fRawReader,Int_t deltaBC)
Int_t index[2]={iLTMindex,iChannelIndex};

UInt_t indexDCS = fgFromTriggertoDCS[index[0]];

Int_t tof = tofRawDatum->GetTOF();
if (iLTMindex==64 || iLTMindex==65) tof+=500; // align tof for ltm=64,65 with other ltms...


if(fTOFTrigMask->IsON(indexDCS,index[1]) && TMath::Abs(tofRawDatum->GetTOF()-deltaBC) < 500) fTOFTrigMap->SetON(index[0],index[1]);
if(TMath::Abs(tof-deltaBC) < 500) fTOFTrigMap->SetON(index[0],index[1]);


// if(!fTOFTrigMask->IsON(indexDCS,index[1])){
Expand Down Expand Up @@ -765,7 +767,7 @@ void AliTOFTrigger::PrepareTOFMapFromDigit(TTree *treeD, Float_t startTimeHit, F
UInt_t indexDCS = fgFromTriggertoDCS[indexLTM[0]];

// skip digits for channels not included in the trigger active mask
if (!fTOFTrigMask->IsON(indexDCS,channelCTTM)) continue;
// if (!fTOFTrigMask->IsON(indexDCS,channelCTTM)) continue;
fTOFTrigMap->SetON(indexLTM[0],channelCTTM);
}

Expand Down

0 comments on commit 45a7fc4

Please sign in to comment.