39 int size = (jet_data->size(
bx) > jet_emul->size(
bx)) ? jet_data->size(
bx) : jet_emul->size(
bx);
41 int dataonly = size - jet_emul->size(
bx);
42 int emulonly = size - jet_data->size(
bx);
53 if (itd->hwPt() == ite->hwPt())
55 if (itd->hwEta() == ite->hwEta() && itd->hwPhi() == ite->hwPhi())
57 if (itd->hwPt() == ite->hwPt() && itd->hwEta() == ite->hwEta() && itd->hwPhi() == ite->hwPhi())
63 int ptbad = compared - ptgood;
64 int locbad = compared - locgood;
67 bool flag = (bad == 0) ?
true :
false;
83 int size = (eg_data->size(
bx) > eg_emul->size(
bx)) ? eg_data->size(
bx) : eg_emul->size(
bx);
85 int dataonly = size - eg_emul->size(
bx);
86 int emulonly = size - eg_data->size(
bx);
97 if (itd->hwPt() == ite->hwPt())
99 if (itd->hwEta() == ite->hwEta() && itd->hwPhi() == ite->hwPhi())
101 if (itd->hwPt() == ite->hwPt() && itd->hwEta() == ite->hwEta() && itd->hwPhi() == ite->hwPhi() &&
102 itd->hwIso() == ite->hwIso())
108 int ptbad = compared - ptgood;
109 int locbad = compared - locgood;
112 bool flag = (bad == 0) ?
true :
false;
128 int size = (tau_data->size(
bx) > tau_emul->size(
bx)) ? tau_data->size(
bx) : tau_emul->size(
bx);
130 int dataonly = size - tau_emul->size(
bx);
131 int emulonly = size - tau_data->size(
bx);
142 if (itd->hwPt() == ite->hwPt())
144 if (itd->hwEta() == ite->hwEta() && itd->hwPhi() == ite->hwPhi())
146 if (itd->hwPt() == ite->hwPt() && itd->hwEta() == ite->hwEta() && itd->hwPhi() == ite->hwPhi() &&
147 itd->hwIso() == ite->hwIso())
153 int ptbad = compared - ptgood;
154 int locbad = compared - locgood;
157 bool flag = (bad == 0) ?
true :
false;
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())
189 if (itd->hwEta() == ite->hwEta() && itd->hwPhi() == ite->hwPhi())
191 if (itd->hwPt() == ite->hwPt() && itd->hwEta() == ite->hwEta() && itd->hwPhi() == ite->hwPhi() &&
192 itd->getType() == ite->getType())
198 int ptbad = compared - ptgood;
199 int locbad = compared - locgood;
202 bool flag = (bad == 0) ?
true :
false;
218 int size = (tower_data->size(
bx) > tower_emul->size(
bx)) ? tower_data->size(
bx) : tower_emul->size(
bx);
220 int dataonly = size - tower_emul->size(
bx);
221 int emulonly = size - tower_data->size(
bx);
234 if (itd->hwPt() == ite->hwPt())
236 if (itd->hwEta() == ite->hwEta() && itd->hwPhi() == ite->hwPhi())
238 if (itd->hwEtHad() == ite->hwEtHad())
240 if (itd->hwEtEm() == ite->hwEtEm())
242 if (itd->hwPt() == ite->hwPt() && itd->hwEta() == ite->hwEta() && itd->hwPhi() == ite->hwPhi() &&
243 itd->hwEtEm() == ite->hwEtEm() && itd->hwEtHad() == ite->hwEtHad())
249 int ptbad = compared - ptgood;
250 int locbad = compared - locgood;
252 int hcalbad = compared - hcalgood;
253 int ecalbad = compared - ecalgood;
255 bool flag = (bad == 0) ?
true :
false;
257 L1DataEmulResult result(flag, ptbad, locbad, bad, dataonly, emulonly, hcalbad, ecalbad,
"CaloTowerBxCollection");
edm::EDGetToken JetDataToken_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::EDGetToken TauDataToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetToken CaloTowerDataToken_
edm::EDGetToken EtSumEmulToken_
std::vector< T >::const_iterator const_iterator
edm::EDGetToken JetEmulToken_
edm::EDGetToken TauEmulToken_
auto const good
min quality of good
edm::EDGetToken EGammaDataToken_
edm::EDGetToken EGammaEmulToken_
edm::EDGetToken CaloTowerEmulToken_
tuple size
Write out results.
edm::EDGetToken EtSumDataToken_