Skip to content

Commit

Permalink
ERDigibuilder, fill triger equal -1 if event is skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
SchetininVitaliy committed Dec 10, 2018
1 parent 984e73d commit f078dbc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions beamtime/ERDigibuilder.cxx
Expand Up @@ -90,9 +90,13 @@ Int_t ERDigibuilder::ReadEvent(UInt_t id){
return 1;
}

FairRun* run = FairRun::Instance();
ERBeamTimeEventHeader* header = (ERBeamTimeEventHeader*) run->GetEventHeader();

if (fUserCut != "") {
if (!fEventsForProcessing->GetBinContent(curEventInCurFile)){
LOG(DEBUG) << " Skip event with user cut" << FairLogger::endl;
header->SetTrigger(-1);
return 0;
}
}
Expand All @@ -104,8 +108,7 @@ Int_t ERDigibuilder::ReadEvent(UInt_t id){
LOG(FATAL) << "DetEventCommon event element not found!" << FairLogger::endl;
return 1;
}
FairRun* run = FairRun::Instance();
ERBeamTimeEventHeader* header = (ERBeamTimeEventHeader*) run->GetEventHeader();

header->SetTrigger(common->trigger);

for (auto itUnpack : fUnpacks){
Expand Down

0 comments on commit f078dbc

Please sign in to comment.