199 cout <<
"L1TComparison Module output for " <<
tag_ <<
"\n";
208 LogWarning(
"MissingProduct") <<
"L1Upgrade e-gamma's not found." << std::endl;
213 if (ibx < XTMPB->getFirstBX())
217 int sizeA = XTMPA->
size(ibx);
218 int sizeB = XTMPB->
size(ibx);
219 if (sizeA != sizeB) {
220 cout <<
"L1T COMPARISON FAILURE: collections have different sizes for bx = " << ibx <<
"\n";
222 auto itB = XTMPB->
begin(ibx);
223 for (
auto itA = XTMPA->
begin(ibx); itA != XTMPA->
end(ibx); ++itA) {
244 LogWarning(
"MissingProduct") <<
"L1Upgrade tau's not found." << std::endl;
249 if (ibx < XTMPB->getFirstBX())
253 int sizeA = XTMPA->
size(ibx);
254 int sizeB = XTMPB->
size(ibx);
255 if (sizeA != sizeB) {
256 cout <<
"L1T COMPARISON FAILURE: collections have different sizes for bx = " << ibx <<
"\n";
258 auto itB = XTMPB->
begin(ibx);
259 for (
auto itA = XTMPA->
begin(ibx); itA != XTMPA->
end(ibx); ++itA) {
280 LogWarning(
"MissingProduct") <<
"L1Upgrade jet's not found." << std::endl;
285 if (ibx < XTMPB->getFirstBX())
289 int sizeA = XTMPA->
size(ibx);
290 int sizeB = XTMPB->
size(ibx);
291 if (sizeA != sizeB) {
292 cout <<
"L1T COMPARISON FAILURE: collections have different sizes for bx = " << ibx <<
"\n";
294 auto itB = XTMPB->
begin(ibx);
295 for (
auto itA = XTMPA->
begin(ibx); itA != XTMPA->
end(ibx); ++itA) {
316 LogWarning(
"MissingProduct") <<
"L1Upgrade sum's not found." << std::endl;
321 if (ibx < XTMPB->getFirstBX())
325 int sizeA = XTMPA->
size(ibx);
326 int sizeB = XTMPB->
size(ibx);
328 if (sizeA != sizeB) {
329 cout <<
"L1T COMPARISON WARNING: sums collections have different sizes for bx = " << ibx <<
"\n";
330 cout <<
"L1T COMPARISON WARNING: sums collections A size = " << sizeA
331 <<
" sums collection B size = " << sizeB <<
"\n";
332 cout <<
"L1T COMPARISON WARNING: known issue because packer has not been udpated for Minbias\n";
334 for (
auto itA = XTMPA->
begin(ibx); itA != XTMPA->
end(ibx); ++itA) {
335 cout <<
"L1T COMPARISON : EtSum type: A = " << itA->getType() <<
"\n";
337 for (
auto itB = XTMPB->
begin(ibx); itB != XTMPB->
end(ibx); ++itB) {
338 cout <<
"L1T COMPARISON : EtSum type: B = " << itB->getType() <<
"\n";
347 if (sizeA != sizeB) {
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) {
352 cout <<
"L1T COMPARISON : EtSum type: A = " << itA->getType() <<
" vs B = " << itB->getType() <<
"\n";
353 if (itA->getType() != itB->getType()) {
354 cout <<
"L1T COMPARISON FAILURE: Different types .... EtSum type:" << itA->getType() <<
" vs " 355 << itB->getType() <<
"\n";
358 cout <<
"L1T COMPARISON WARNING: (known issue) sum of type " << itA->getType()
359 <<
" when emulated has a dummy value (pending proper emulation)" 364 cout <<
"L1T COMPARISON FAILURE: for type " << itA->getType() <<
"\n";
372 cout <<
"L1T COMPARISON WARNING: (known issue) not checking sum of type " << itA->getType() <<
"\n";
388 LogWarning(
"MissingProduct") <<
"L1Upgrade muon's not found." << std::endl;
393 if (ibx < XTMPB->getFirstBX())
397 int sizeA = XTMPA->
size(ibx);
398 int sizeB = XTMPB->
size(ibx);
399 if (sizeA != sizeB) {
400 cout <<
"L1T COMPARISON FAILURE: collections have different sizes for bx = " << ibx <<
"\n";
402 auto itB = XTMPB->
begin(ibx);
403 for (
auto itA = XTMPA->
begin(ibx); itA != XTMPA->
end(ibx); ++itA) {
const_iterator end(int bx) const
edm::EDGetTokenT< EGammaBxCollection > egTokenB_
unsigned size(int bx) const
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_
const_iterator begin(int bx) const