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: known issue because packer has not been udpated for Minbias\n";
295 if (sizeA > sizeB) sizeA = sizeB;
296 if (sizeB > sizeA) sizeB = sizeA;
299 cout <<
"L1T COMPARISON FAILURE: collections have different sizes for bx = " << ibx <<
"\n";
301 auto itB=XTMPB->begin(ibx);
302 for (
auto itA=XTMPA->begin(ibx); itA!=XTMPA->end(ibx); ++itA){
303 if (itA->getType() != itB->getType()){
304 cout <<
"L1T COMPARISON FAILURE: EtSum type:" << itA->getType() <<
" vs " << itB->getType() <<
"\n";
306 if (itA->getType() < EtSum::kMissingEt2) {
308 if (fail){
cout <<
"L1T COMPARISON FAILURE: for type " << itA->getType() <<
"\n";}
312 cout <<
"L1T COMPARISON WARNING: (known issue) not checking sum of type " << itA->getType() <<
"\n";
329 LogWarning(
"MissingProduct") <<
"L1Upgrade muon's not found." << std::endl;
331 for (
int ibx = XTMPA->getFirstBX(); ibx <= XTMPA->getLastBX(); ++ibx) {
333 if (ibx < XTMPB->getFirstBX())
continue;
334 if (ibx > XTMPB->getLastBX())
continue;
335 int sizeA = XTMPA->size(ibx);
336 int sizeB = XTMPB->size(ibx);
338 cout <<
"L1T COMPARISON FAILURE: collections have different sizes for bx = " << ibx <<
"\n";
340 auto itB=XTMPB->begin(ibx);
341 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_