26 bool doCompare(TH1I *errorFlag_hist_, TH1I *mismatchD_Rank, TH2I *mismatchD_EtEtaPhi, TH1I *mismatchE_Rank, TH2I *mismatchE_EtEtaPhi);
50 bool compareCands<T>::doCompare(TH1I *errorFlag_hist_, TH1I *mismatchD_Rank, TH2I *mismatchD_EtEtaPhi, TH1I *mismatchE_Rank, TH2I *mismatchE_EtEtaPhi) {
58 unsigned int i=0, j=0;
63 for(i=0; i <
data_->size(); i++) {
70 if(
data_->at(i).rank() == 0 )
continue;
72 for(j=0; j <
emu_->size(); j++) {
77 if(
data_->at(i).rank() ==
emu_->at(j).rank()
78 &&
data_->at(i).regionId().ieta() ==
emu_->at(j).regionId().ieta()
79 &&
data_->at(i).regionId().iphi() ==
emu_->at(j).regionId().iphi()
82 errorFlag_hist_->Fill(0);
83 matched.at((j % GCT_OBJECT_QUANTA)) =
true;
87 if( (j % GCT_OBJECT_QUANTA) + 1 == GCT_OBJECT_QUANTA) {
88 errorFlag_hist_->Fill(1);
89 mismatchD_Rank->Fill(
data_->at(i).rank());
90 mismatchD_EtEtaPhi->Fill(
data_->at(i).regionId().ieta(),
data_->at(i).regionId().iphi(),
data_->at(i).rank());
98 for(i=0; i<matched.size(); i++) {
101 if(matched.at(i))
continue;
104 for(j=0; j<
emu_->size(); j++) {
110 errorFlag_hist_->Fill(2);
111 mismatchE_Rank->Fill(
emu_->at(j).rank());
112 mismatchE_EtEtaPhi->Fill(
emu_->at(j).regionId().ieta(),
emu_->at(j).regionId().iphi(),
emu_->at(j).rank());
bool doCompare(TH1I *errorFlag_hist_, TH1I *mismatchD_Rank, TH2I *mismatchD_EtEtaPhi, TH1I *mismatchE_Rank, TH2I *mismatchE_EtEtaPhi)
compareCands(const T &data, const T &emu, const GctErrorAnalyzerMBxInfo &mbxparams)
const unsigned int GCT_OBJECT_QUANTA
GctErrorAnalyzerMBxInfo mbxparams_
char data[epos_bytes_allocation]