8 produces<L1DataEmulResultBxCollection>();
18 CaloTowerDataToken_ = consumes<CaloTowerBxCollection>(ps.
getParameter<
InputTag>(
"CaloTowerData"));
19 CaloTowerEmulToken_ = consumes<CaloTowerBxCollection>(ps.
getParameter<
InputTag>(
"CaloTowerEmul"));
26 L1ComparatorRun2::~L1ComparatorRun2() {}
32 for (
int bx = bxMin_;
bx <= bxMax_;
bx++) {
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;
65 int bad = size -
good;
67 bool flag = (bad == 0) ?
true :
false;
71 RESULT->push_back(
bx, result);
82 for (
int bx = bxMin_;
bx <= bxMax_;
bx++) {
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;
110 int bad = size -
good;
112 bool flag = (bad == 0) ?
true :
false;
116 RESULT->push_back(
bx, result);
127 for (
int bx = bxMin_;
bx <= bxMax_;
bx++) {
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;
155 int bad = size -
good;
157 bool flag = (bad == 0) ?
true :
false;
161 RESULT->push_back(
bx, result);
172 for (
int bx = bxMin_;
bx <= bxMax_;
bx++) {
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;
200 int bad = size -
good;
202 bool flag = (bad == 0) ?
true :
false;
206 RESULT->push_back(
bx, result);
213 iEvent.
getByToken(CaloTowerDataToken_, tower_data);
214 iEvent.
getByToken(CaloTowerEmulToken_, tower_emul);
217 for (
int bx = bxMin_;
bx <= bxMax_;
bx++) {
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;
251 int bad = size -
good;
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");
259 RESULT->push_back(
bx, result);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< T >::const_iterator const_iterator
auto const good
min quality of good
T getParameter(std::string const &) const
tuple size
Write out results.