1 #ifndef compareTotalEnergySums_h
2 #define compareTotalEnergySums_h
38 : data_(
data), emu_(emu), mbxparams_(mbxparams) {
49 bool errorFlag =
false;
51 for (
unsigned int i = 0;
i < data_->size();
i++) {
53 if (data_->at(
i).bx() != mbxparams_.GCTTrigBx)
56 for (
unsigned int j = 0;
j < emu_->size();
j++) {
58 if (emu_->at(
j).bx() != mbxparams_.EmuTrigBx)
62 if (data_->at(
i).overFlow() && emu_->at(
j).overFlow()) {
64 errorFlag_hist_->Fill(0);
70 if (!data_->at(
i).overFlow() && !emu_->at(
j).overFlow() && data_->at(
i).et() == 0 && emu_->at(
j).et() == 0)
74 if (!data_->at(
i).overFlow() && !emu_->at(
j).overFlow() && data_->at(
i).et() == emu_->at(
j).et()) {
76 errorFlag_hist_->Fill(0);
81 errorFlag_hist_->Fill(1);