1 #ifndef compareMissingEnergySums_h 2 #define compareMissingEnergySums_h 39 : data_(
data), emu_(emu), mbxparams_(mbxparams) {}
46 bool errorFlag =
false;
48 for (
unsigned int i = 0;
i < data_->size();
i++) {
49 if (data_->at(
i).bx() != mbxparams_.GCTTrigBx)
52 for (
unsigned int j = 0;
j < emu_->size();
j++) {
53 if (emu_->at(
j).bx() != mbxparams_.EmuTrigBx)
56 if (data_->at(
i).overFlow() && emu_->at(
j).overFlow()) {
58 errorFlag_hist_->Fill(0);
63 if (!data_->at(
i).overFlow() && !emu_->at(
j).overFlow() && data_->at(
i).et() == 0 && emu_->at(
j).et() == 0)
66 if (!data_->at(
i).overFlow() && !emu_->at(
j).overFlow() && data_->at(
i).et() == emu_->at(
j).et() &&
67 data_->at(
i).phi() == emu_->at(
j).phi()) {
69 errorFlag_hist_->Fill(0);
73 if (!data_->at(
i).overFlow() && !emu_->at(
j).overFlow() && data_->at(
i).et() == emu_->at(
j).et() &&
74 data_->at(
i).phi() != emu_->at(
j).phi()) {
76 errorFlag_hist_->Fill(1);
77 return errorFlag =
true;
80 if (!data_->at(
i).overFlow() && !emu_->at(
j).overFlow() && data_->at(
i).et() != emu_->at(
j).et() &&
81 data_->at(
i).phi() == emu_->at(
j).phi()) {
83 errorFlag_hist_->Fill(2);
84 return errorFlag =
true;
88 errorFlag_hist_->Fill(3);
compareMissingEnergySums(const T &data, const T &emu, const GctErrorAnalyzerMBxInfo &mbxparams)
~compareMissingEnergySums()
GctErrorAnalyzerMBxInfo mbxparams_
char data[epos_bytes_allocation]
bool doCompare(TH1I *errorFlag_hist_)