9 produces<L1DataEmulResultBxCollection>();
19 CaloTowerDataToken_ = consumes<CaloTowerBxCollection>(ps.
getParameter<
InputTag>(
"CaloTowerData"));
20 CaloTowerEmulToken_ = consumes<CaloTowerBxCollection>(ps.
getParameter<
InputTag>(
"CaloTowerEmul"));
27 L1ComparatorRun2::~L1ComparatorRun2(){}
36 for(
int bx = bxMin_; bx<=bxMax_; 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);
85 for(
int bx = bxMin_; bx<=bxMax_; 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);
128 for(
int bx = bxMin_; bx<=bxMax_; 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);
171 for(
int bx = bxMin_; bx<=bxMax_; 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);
209 iEvent.
getByToken(CaloTowerDataToken_,tower_data);
210 iEvent.
getByToken(CaloTowerEmulToken_,tower_emul);
214 for(
int bx = bxMin_; bx<=bxMax_; bx++){
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);
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);
const_iterator end(int bx) const
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
unsigned size(int bx) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const_iterator begin(int bx) const
std::vector< Jet >::const_iterator const_iterator