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++) {
36 iEvent.getByToken(JetDataToken_, jet_data);
37 iEvent.getByToken(JetEmulToken_, jet_emul);
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;
78 iEvent.getByToken(EGammaDataToken_, eg_data);
79 iEvent.getByToken(EGammaEmulToken_, eg_emul);
82 for (
int bx = bxMin_;
bx <= bxMax_;
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;
123 iEvent.getByToken(TauDataToken_, tau_data);
124 iEvent.getByToken(TauEmulToken_, tau_emul);
127 for (
int bx = bxMin_;
bx <= bxMax_;
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;
168 iEvent.getByToken(EtSumDataToken_, et_data);
169 iEvent.getByToken(EtSumEmulToken_, et_emul);
172 for (
int bx = bxMin_;
bx <= bxMax_;
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;
213 iEvent.getByToken(CaloTowerDataToken_, tower_data);
214 iEvent.getByToken(CaloTowerEmulToken_, tower_emul);
217 for (
int bx = bxMin_;
bx <= bxMax_;
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;