1 #ifndef compareMissingEnergySums_h
2 #define compareMissingEnergySums_h
40 : data_(data), emu_(emu), mbxparams_(mbxparams) {}
47 bool errorFlag =
false;
49 for (
unsigned int i = 0;
i < data_->size();
i++) {
50 if (data_->at(
i).bx() != mbxparams_.GCTTrigBx)
53 for (
unsigned int j = 0;
j < emu_->size();
j++) {
54 if (emu_->at(
j).bx() != mbxparams_.EmuTrigBx)
57 if (data_->at(
i).overFlow() && emu_->at(
j).overFlow()) {
59 errorFlag_hist_->Fill(0);
64 if (!data_->at(
i).overFlow() && !emu_->at(
j).overFlow() && data_->at(
i).et() == 0 && emu_->at(
j).et() == 0)
67 if (!data_->at(
i).overFlow() && !emu_->at(
j).overFlow() && data_->at(
i).et() == emu_->at(
j).et() &&
68 data_->at(
i).phi() == emu_->at(
j).phi()) {
70 errorFlag_hist_->Fill(0);
74 if (!data_->at(
i).overFlow() && !emu_->at(
j).overFlow() && data_->at(
i).et() == emu_->at(
j).et() &&
75 data_->at(
i).phi() != emu_->at(
j).phi()) {
77 errorFlag_hist_->Fill(1);
78 return errorFlag =
true;
81 if (!data_->at(
i).overFlow() && !emu_->at(
j).overFlow() && data_->at(
i).et() != emu_->at(
j).et() &&
82 data_->at(
i).phi() == emu_->at(
j).phi()) {
84 errorFlag_hist_->Fill(2);
85 return errorFlag =
true;
89 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_)