1 #ifndef compareTotalEnergySums_h 2 #define compareTotalEnergySums_h 37 : data_(
data), emu_(emu), mbxparams_(mbxparams) {
48 bool errorFlag =
false;
50 for (
unsigned int i = 0;
i < data_->size();
i++) {
52 if (data_->at(
i).bx() != mbxparams_.GCTTrigBx)
55 for (
unsigned int j = 0;
j < emu_->size();
j++) {
57 if (emu_->at(
j).bx() != mbxparams_.EmuTrigBx)
61 if (data_->at(
i).overFlow() && emu_->at(
j).overFlow()) {
63 errorFlag_hist_->Fill(0);
69 if (!data_->at(
i).overFlow() && !emu_->at(
j).overFlow() && data_->at(
i).et() == 0 && emu_->at(
j).et() == 0)
73 if (!data_->at(
i).overFlow() && !emu_->at(
j).overFlow() && data_->at(
i).et() == emu_->at(
j).et()) {
75 errorFlag_hist_->Fill(0);
80 errorFlag_hist_->Fill(1);
bool doCompare(TH1I *errorFlag_hist_)
GctErrorAnalyzerMBxInfo mbxparams_
compareTotalEnergySums(const T &data, const T &emu, const GctErrorAnalyzerMBxInfo &mbxparams)
char data[epos_bytes_allocation]
~compareTotalEnergySums()