1 #ifndef compareMissingEnergySums_h
2 #define compareMissingEnergySums_h
55 for(
unsigned int i=0;
i < data_->size();
i++) {
56 if(data_->at(
i).bx() != mbxparams_.GCTTrigBx)
continue;
58 for(
unsigned int j=0;
j < emu_->size();
j++) {
59 if(emu_->at(
j).bx() != mbxparams_.EmuTrigBx)
continue;
61 if(data_->at(
i).overFlow() && emu_->at(
j).overFlow()) {
63 errorFlag_hist_->Fill(0);
68 if(!data_->at(
i).overFlow() && !emu_->at(
j).overFlow() && data_->at(
i).et() == 0 && emu_->at(
j).et() == 0)
return errorFlag;
70 if(!data_->at(
i).overFlow() && !emu_->at(
j).overFlow() && data_->at(
i).et() == emu_->at(
j).et() && data_->at(
i).phi() == emu_->at(
j).phi()) {
72 errorFlag_hist_->Fill(0);
76 if(!data_->at(
i).overFlow() && !emu_->at(
j).overFlow() && data_->at(
i).et() == emu_->at(
j).et() && data_->at(
i).phi() != emu_->at(
j).phi()) {
78 errorFlag_hist_->Fill(1);
82 if(!data_->at(
i).overFlow() && !emu_->at(
j).overFlow() && data_->at(
i).et() != emu_->at(
j).et() && data_->at(
i).phi() == emu_->at(
j).phi()) {
84 errorFlag_hist_->Fill(2);
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_)