179 cout <<
"L1TComparison Module output for " <<
tag_ <<
"\n";
188 LogWarning(
"MissingProduct") <<
"L1Upgrade e-gamma's not found." << std::endl;
190 for (
int ibx = XTMPA->getFirstBX(); ibx <= XTMPA->getLastBX(); ++ibx) {
192 if (ibx < XTMPB->getFirstBX())
continue;
193 if (ibx > XTMPB->getLastBX())
continue;
194 int sizeA = XTMPA->size(ibx);
195 int sizeB = XTMPB->size(ibx);
197 cout <<
"L1T COMPARISON FAILURE: collections have different sizes for bx = " << ibx <<
"\n";
199 auto itB=XTMPB->begin(ibx);
200 for (
auto itA=XTMPA->begin(ibx); itA!=XTMPA->end(ibx); ++itA){
220 LogWarning(
"MissingProduct") <<
"L1Upgrade tau's not found." << std::endl;
222 for (
int ibx = XTMPA->getFirstBX(); ibx <= XTMPA->getLastBX(); ++ibx) {
224 if (ibx < XTMPB->getFirstBX())
continue;
225 if (ibx > XTMPB->getLastBX())
continue;
226 int sizeA = XTMPA->size(ibx);
227 int sizeB = XTMPB->size(ibx);
229 cout <<
"L1T COMPARISON FAILURE: collections have different sizes for bx = " << ibx <<
"\n";
231 auto itB=XTMPB->begin(ibx);
232 for (
auto itA=XTMPA->begin(ibx); itA!=XTMPA->end(ibx); ++itA){
250 LogWarning(
"MissingProduct") <<
"L1Upgrade jet's not found." << std::endl;
252 for (
int ibx = XTMPA->getFirstBX(); ibx <= XTMPA->getLastBX(); ++ibx) {
254 if (ibx < XTMPB->getFirstBX())
continue;
255 if (ibx > XTMPB->getLastBX())
continue;
256 int sizeA = XTMPA->size(ibx);
257 int sizeB = XTMPB->size(ibx);
259 cout <<
"L1T COMPARISON FAILURE: collections have different sizes for bx = " << ibx <<
"\n";
261 auto itB=XTMPB->begin(ibx);
262 for (
auto itA=XTMPA->begin(ibx); itA!=XTMPA->end(ibx); ++itA){
280 LogWarning(
"MissingProduct") <<
"L1Upgrade sum's not found." << std::endl;
282 for (
int ibx = XTMPA->getFirstBX(); ibx <= XTMPA->getLastBX(); ++ibx) {
284 if (ibx < XTMPB->getFirstBX())
continue;
285 if (ibx > XTMPB->getLastBX())
continue;
286 int sizeA = XTMPA->size(ibx);
287 int sizeB = XTMPB->size(ibx);
290 cout <<
"L1T COMPARISON WARNING: sums collections have different sizes for bx = " << ibx <<
"\n";
291 cout <<
"L1T COMPARISON WARNING: sums collections A size = " << sizeA <<
" sums collection B size = " << sizeB <<
"\n";
292 cout <<
"L1T COMPARISON WARNING: known issue because packer has not been udpated for Minbias\n";
294 for (
auto itA=XTMPA->begin(ibx); itA!=XTMPA->end(ibx); ++itA){
295 cout <<
"L1T COMPARISON : EtSum type: A = " << itA->getType() <<
"\n";
297 for (
auto itB=XTMPB->begin(ibx); itB!=XTMPB->end(ibx); ++itB){
298 cout <<
"L1T COMPARISON : EtSum type: B = " << itB->getType() <<
"\n";
302 if (sizeA > sizeB) sizeA = sizeB;
303 if (sizeB > sizeA) sizeB = sizeA;
306 cout <<
"L1T COMPARISON FAILURE: collections have different sizes for bx = " << ibx <<
"\n";
308 auto itB=XTMPB->begin(ibx);
309 for (
auto itA=XTMPA->begin(ibx); itA!=XTMPA->end(ibx); ++itA){
310 cout <<
"L1T COMPARISON : EtSum type: A = " << itA->getType() <<
" vs B = " << itB->getType() <<
"\n";
311 if (itA->getType() != itB->getType()){
312 cout <<
"L1T COMPARISON FAILURE: Different types .... EtSum type:" << itA->getType() <<
" vs " << itB->getType() <<
"\n";
314 if (itA->getType() == EtSum::kTotalEtEm)
315 cout <<
"L1T COMPARISON WARNING: (known issue) sum of type " << itA->getType() <<
" when emulated has a dummy value (pending proper emulation)" <<
"\n";
316 if (itA->getType() < EtSum::kMinBiasHFP0 || itA->getType() > EtSum::kMinBiasHFM1) {
318 if (fail){
cout <<
"L1T COMPARISON FAILURE: for type " << itA->getType() <<
"\n";}
322 cout <<
"L1T COMPARISON WARNING: (known issue) not checking sum of type " << itA->getType() <<
"\n";
339 LogWarning(
"MissingProduct") <<
"L1Upgrade muon's not found." << std::endl;
341 for (
int ibx = XTMPA->getFirstBX(); ibx <= XTMPA->getLastBX(); ++ibx) {
343 if (ibx < XTMPB->getFirstBX())
continue;
344 if (ibx > XTMPB->getLastBX())
continue;
345 int sizeA = XTMPA->size(ibx);
346 int sizeB = XTMPB->size(ibx);
348 cout <<
"L1T COMPARISON FAILURE: collections have different sizes for bx = " << ibx <<
"\n";
350 auto itB=XTMPB->begin(ibx);
351 for (
auto itA=XTMPA->begin(ibx); itA!=XTMPA->end(ibx); ++itA){
edm::EDGetTokenT< EGammaBxCollection > egTokenB_
edm::EDGetTokenT< MuonBxCollection > muonTokenA_
static bool compare_l1candidate(const L1Candidate &a, const L1Candidate &b, int verbose=1)
edm::EDGetTokenT< EGammaBxCollection > egTokenA_
edm::EDGetTokenT< MuonBxCollection > muonTokenB_
edm::EDGetTokenT< JetBxCollection > jetTokenA_
edm::EDGetTokenT< EtSumBxCollection > sumTokenB_
edm::EDGetTokenT< EtSumBxCollection > sumTokenA_
edm::EDGetTokenT< JetBxCollection > jetTokenB_
edm::EDGetTokenT< TauBxCollection > tauTokenB_
edm::EDGetTokenT< TauBxCollection > tauTokenA_