194 cout <<
"L1TComparison Module output for " <<
tag_ <<
"\n";
203 LogWarning(
"MissingProduct") <<
"L1Upgrade e-gamma's not found." << std::endl;
208 if (ibx < XTMPB->getFirstBX())
212 int sizeA = XTMPA->
size(ibx);
213 int sizeB = XTMPB->
size(ibx);
214 if (sizeA != sizeB) {
215 cout <<
"L1T COMPARISON FAILURE: collections have different sizes for bx = " << ibx <<
"\n";
217 auto itB = XTMPB->
begin(ibx);
218 for (
auto itA = XTMPA->
begin(ibx); itA != XTMPA->
end(ibx); ++itA) {
239 LogWarning(
"MissingProduct") <<
"L1Upgrade tau's not found." << std::endl;
244 if (ibx < XTMPB->getFirstBX())
248 int sizeA = XTMPA->
size(ibx);
249 int sizeB = XTMPB->
size(ibx);
250 if (sizeA != sizeB) {
251 cout <<
"L1T COMPARISON FAILURE: collections have different sizes for bx = " << ibx <<
"\n";
253 auto itB = XTMPB->
begin(ibx);
254 for (
auto itA = XTMPA->
begin(ibx); itA != XTMPA->
end(ibx); ++itA) {
275 LogWarning(
"MissingProduct") <<
"L1Upgrade jet's not found." << std::endl;
280 if (ibx < XTMPB->getFirstBX())
284 int sizeA = XTMPA->
size(ibx);
285 int sizeB = XTMPB->
size(ibx);
286 if (sizeA != sizeB) {
287 cout <<
"L1T COMPARISON FAILURE: collections have different sizes for bx = " << ibx <<
"\n";
289 auto itB = XTMPB->
begin(ibx);
290 for (
auto itA = XTMPA->
begin(ibx); itA != XTMPA->
end(ibx); ++itA) {
311 LogWarning(
"MissingProduct") <<
"L1Upgrade sum's not found." << std::endl;
316 if (ibx < XTMPB->getFirstBX())
320 int sizeA = XTMPA->
size(ibx);
321 int sizeB = XTMPB->
size(ibx);
323 if (sizeA != sizeB) {
324 cout <<
"L1T COMPARISON WARNING: sums collections have different sizes for bx = " << ibx <<
"\n";
325 cout <<
"L1T COMPARISON WARNING: sums collections A size = " << sizeA
326 <<
" sums collection B size = " << sizeB <<
"\n";
327 cout <<
"L1T COMPARISON WARNING: known issue because packer has not been udpated for Minbias\n";
329 for (
auto itA = XTMPA->
begin(ibx); itA != XTMPA->
end(ibx); ++itA) {
330 cout <<
"L1T COMPARISON : EtSum type: A = " << itA->getType() <<
"\n";
332 for (
auto itB = XTMPB->
begin(ibx); itB != XTMPB->
end(ibx); ++itB) {
333 cout <<
"L1T COMPARISON : EtSum type: B = " << itB->getType() <<
"\n";
342 if (sizeA != sizeB) {
343 cout <<
"L1T COMPARISON FAILURE: collections have different sizes for bx = " << ibx <<
"\n";
345 auto itB = XTMPB->
begin(ibx);
346 for (
auto itA = XTMPA->
begin(ibx); itA != XTMPA->
end(ibx); ++itA) {
347 cout <<
"L1T COMPARISON : EtSum type: A = " << itA->getType() <<
" vs B = " << itB->getType() <<
"\n";
348 if (itA->getType() != itB->getType()) {
349 cout <<
"L1T COMPARISON FAILURE: Different types .... EtSum type:" << itA->getType() <<
" vs " 350 << itB->getType() <<
"\n";
353 cout <<
"L1T COMPARISON WARNING: (known issue) sum of type " << itA->getType()
354 <<
" when emulated has a dummy value (pending proper emulation)" 359 cout <<
"L1T COMPARISON FAILURE: for type " << itA->getType() <<
"\n";
367 cout <<
"L1T COMPARISON WARNING: (known issue) not checking sum of type " << itA->getType() <<
"\n";
383 LogWarning(
"MissingProduct") <<
"L1Upgrade muon's not found." << std::endl;
388 if (ibx < XTMPB->getFirstBX())
392 int sizeA = XTMPA->
size(ibx);
393 int sizeB = XTMPB->
size(ibx);
394 if (sizeA != sizeB) {
395 cout <<
"L1T COMPARISON FAILURE: collections have different sizes for bx = " << ibx <<
"\n";
397 auto itB = XTMPB->
begin(ibx);
398 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_
const_iterator begin(int bx) const
unsigned size(int bx) const
edm::EDGetTokenT< MuonBxCollection > muonTokenB_
edm::EDGetTokenT< JetBxCollection > jetTokenA_
edm::EDGetTokenT< EtSumBxCollection > sumTokenB_
edm::EDGetTokenT< EtSumBxCollection > sumTokenA_
edm::EDGetTokenT< JetBxCollection > jetTokenB_
const_iterator end(int bx) const
edm::EDGetTokenT< TauBxCollection > tauTokenB_
edm::EDGetTokenT< TauBxCollection > tauTokenA_
Log< level::Warning, false > LogWarning