Skip to content

Commit 856e0c6

Browse files
Add trigger branches to PrintEvents
1 parent a1fee87 commit 856e0c6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

rooutil/examples/PrintEvents.C

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,5 +249,11 @@ void PrintEvents(std::string filename) {
249249
std::cout << "calodigi: " << calodigi.SiPMID_ << ", " << calodigi.t0_ << ", " << calodigi.peakpos_ << ", " << calodigi.caloRecoDigiIdx_ << std::endl;
250250
}
251251
}
252+
253+
// trigger branches
254+
for (const auto pair : event.trigNameMap) {
255+
std::cout << pair.first << ": " << event.triginfo._triggerArray[pair.second] << std::endl;
256+
}
257+
252258
}
253259
}

0 commit comments

Comments
 (0)