44 int size = (jet_data->size(bx)>jet_emul->size(bx)) ? jet_data->size(bx) : jet_emul->size(bx);
46 int dataonly = size-jet_emul->size(bx);
47 int emulonly = size-jet_data->size(bx);
58 if (itd->hwPt() == ite->hwPt()) ptgood +=1;
59 if (itd->hwEta() == ite->hwEta() && itd->hwPhi() == ite->hwPhi()) locgood +=1;
60 if (itd->hwPt() == ite->hwPt() && itd->hwEta() == ite->hwEta() && itd->hwPhi() == ite->hwPhi()) good +=1;
65 int ptbad = compared-ptgood;
66 int locbad = compared-locgood;
69 bool flag = (bad==0) ?
true :
false;
73 RESULT->push_back(bx,
result);
87 int size = (eg_data->size(bx)>eg_emul->size(bx)) ? eg_data->size(bx) : eg_emul->size(bx);
89 int dataonly = size-eg_emul->size(bx);
90 int emulonly = size-eg_data->size(bx);
101 if (itd->hwPt() == ite->hwPt()) ptgood +=1;
102 if (itd->hwEta() == ite->hwEta() && itd->hwPhi() == ite->hwPhi()) locgood +=1;
103 if (itd->hwPt() == ite->hwPt() && itd->hwEta() == ite->hwEta() && itd->hwPhi() == ite->hwPhi() && itd->hwIso()==ite->hwIso()) good +=1;
108 int ptbad = compared-ptgood;
109 int locbad = compared-locgood;
112 bool flag = (bad==0) ?
true :
false;
116 RESULT->push_back(bx,
result);
130 int size = (tau_data->size(bx)>tau_emul->size(bx)) ? tau_data->size(bx) : tau_emul->size(bx);
132 int dataonly = size-tau_emul->size(bx);
133 int emulonly = size-tau_data->size(bx);
144 if (itd->hwPt() == ite->hwPt()) ptgood +=1;
145 if (itd->hwEta() == ite->hwEta() && itd->hwPhi() == ite->hwPhi()) locgood +=1;
146 if (itd->hwPt() == ite->hwPt() && itd->hwEta() == ite->hwEta() && itd->hwPhi() == ite->hwPhi() && itd->hwIso()==ite->hwIso()) good +=1;
151 int ptbad = compared-ptgood;
152 int locbad = compared-locgood;
155 bool flag = (bad==0) ?
true :
false;
159 RESULT->push_back(bx,
result);
173 int size = (et_data->size(bx)>et_emul->size(bx)) ? et_data->size(bx) : et_emul->size(bx);
175 int dataonly = size-et_emul->size(bx);
176 int emulonly = size-et_data->size(bx);
187 if (itd->hwPt() == ite->hwPt()) ptgood +=1;
188 if (itd->hwEta() == ite->hwEta() && itd->hwPhi() == ite->hwPhi()) locgood +=1;
189 if (itd->hwPt() == ite->hwPt() && itd->hwEta() == ite->hwEta() && itd->hwPhi() == ite->hwPhi() && itd->getType()==ite->getType()) good +=1;
194 int ptbad = compared-ptgood;
195 int locbad = compared-locgood;
198 bool flag = (bad==0) ?
true :
false;
202 RESULT->push_back(bx,
result);
216 int size = (tower_data->size(bx)>tower_emul->size(bx)) ? tower_data->size(bx) : tower_emul->size(bx);
218 int dataonly = size-tower_emul->size(bx);
219 int emulonly = size-tower_data->size(bx);
230 if(
distance(tower_data->begin(bx), itd)==
distance(tower_emul->begin(bx), ite)){
232 if (itd->hwPt() == ite->hwPt()) ptgood +=1;
233 if (itd->hwEta() == ite->hwEta() && itd->hwPhi() == ite->hwPhi()) locgood +=1;
234 if (itd->hwEtHad() == ite->hwEtHad()) hcalgood +=1;
235 if (itd->hwEtEm() == ite->hwEtEm()) ecalgood +=1;
236 if (itd->hwPt() == ite->hwPt() && itd->hwEta() == ite->hwEta() && itd->hwPhi() == ite->hwPhi() && itd->hwEtEm()==ite->hwEtEm() && itd->hwEtHad()==ite->hwEtHad()) good +=1;
241 int ptbad = compared-ptgood;
242 int locbad = compared-locgood;
244 int hcalbad = compared-hcalgood;
245 int ecalbad = compared-ecalgood;
247 bool flag = (bad==0) ?
true :
false;
249 L1DataEmulResult result(flag, ptbad, locbad, bad, dataonly, emulonly, hcalbad, ecalbad,
"CaloTowerBxCollection");
251 RESULT->push_back(bx,
result);
edm::EDGetToken JetDataToken_
edm::EDGetToken TauDataToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetToken CaloTowerDataToken_
edm::EDGetToken EtSumEmulToken_
edm::EDGetToken JetEmulToken_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
edm::EDGetToken TauEmulToken_
edm::EDGetToken EGammaDataToken_
edm::EDGetToken EGammaEmulToken_
edm::EDGetToken CaloTowerEmulToken_
tuple size
Write out results.
edm::EDGetToken EtSumDataToken_
std::vector< Jet >::const_iterator const_iterator