CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
L1TCaloLayer1Validator Class Reference

#include <L1Trigger/L1TCaloLayer1/plugins/L1TCaloLayer1Validator.cc>

Inheritance diagram for L1TCaloLayer1Validator:
edm::one::EDAnalyzer<> edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 L1TCaloLayer1Validator (const edm::ParameterSet &)
 
 ~L1TCaloLayer1Validator () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer<>
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginJob () override
 
void endJob () override
 

Private Attributes

uint32_t badEventCount
 
uint32_t badNonZeroRegionCount
 
uint32_t badNonZeroTowerCount
 
uint32_t badRegionCount
 
uint32_t badTowerCount
 
edm::EDGetTokenT< L1CaloRegionCollectionemulRegionToken
 
edm::EDGetTokenT< CaloTowerBxCollectionemulTowerToken
 
uint32_t eventCount
 
uint32_t nbCard [18]
 
uint32_t nbRegion [22]
 
uint32_t ngCard [18]
 
uint32_t ngRegion [22]
 
uint32_t nonZeroRegionCount
 
uint32_t nonZeroTowerCount
 
uint32_t regionCount
 
uint32_t tEeTotET
 
uint32_t tErEmulTotET
 
edm::EDGetTokenT< L1CaloRegionCollectiontestRegionToken
 
edm::EDGetTokenT< CaloTowerBxCollectiontestTowerToken
 
uint32_t tGeTotET
 
uint32_t tGrEmulTotET
 
uint32_t tLeTotET
 
uint32_t tLrEmulTotET
 
uint32_t towerCount
 
bool validateRegions
 
bool validateTowers
 
bool verbose
 
uint32_t zbCard [18]
 
uint32_t zbRegion [22]
 
uint32_t zgCard [18]
 
uint32_t zgRegion [22]
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Description: This ED Analyzer compares output of CMS L1 Trigger Calo Layer-1 output (CaloTowers) from two sources

Implementation: It is expected that we compare CaloTowers from the spy source to that of the emulator.
It can be used to compare any two CaloTower collections

Definition at line 46 of file L1TCaloLayer1Validator.cc.

Constructor & Destructor Documentation

◆ L1TCaloLayer1Validator()

L1TCaloLayer1Validator::L1TCaloLayer1Validator ( const edm::ParameterSet iConfig)
explicit

Definition at line 117 of file L1TCaloLayer1Validator.cc.

References HltBtagPostValidation_cff::c, nbCard, nbRegion, ngCard, ngRegion, alignCSCRings::r, zbCard, zbRegion, zgCard, and zgRegion.

118  : testTowerToken(consumes<CaloTowerBxCollection>(iConfig.getParameter<edm::InputTag>("testTowerToken"))),
119  emulTowerToken(consumes<CaloTowerBxCollection>(iConfig.getParameter<edm::InputTag>("emulTowerToken"))),
120  testRegionToken(consumes<L1CaloRegionCollection>(iConfig.getParameter<edm::InputTag>("testRegionToken"))),
121  emulRegionToken(consumes<L1CaloRegionCollection>(iConfig.getParameter<edm::InputTag>("emulRegionToken"))),
122  eventCount(0),
123  badEventCount(0),
124  towerCount(0),
125  badTowerCount(0),
128  regionCount(0),
129  badRegionCount(0),
132  tLrEmulTotET(0),
133  tErEmulTotET(0),
134  tGrEmulTotET(0),
135  tLeTotET(0),
136  tEeTotET(0),
137  tGeTotET(0),
138  validateTowers(iConfig.getParameter<bool>("validateTowers")),
139  validateRegions(iConfig.getParameter<bool>("validateRegions")),
140  verbose(iConfig.getParameter<bool>("verbose")) {
141  for (uint32_t r = 0; r < 22; r++)
142  ngRegion[r] = nbRegion[r] = zgRegion[r] = zbRegion[r] = 0;
143  for (uint32_t c = 0; c < 18; c++)
144  ngCard[c] = nbCard[c] = zgCard[c] = zbCard[c] = 0;
145 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::EDGetTokenT< CaloTowerBxCollection > emulTowerToken
edm::EDGetTokenT< L1CaloRegionCollection > emulRegionToken
edm::EDGetTokenT< CaloTowerBxCollection > testTowerToken
edm::EDGetTokenT< L1CaloRegionCollection > testRegionToken

◆ ~L1TCaloLayer1Validator()

L1TCaloLayer1Validator::~L1TCaloLayer1Validator ( )
override

Definition at line 147 of file L1TCaloLayer1Validator.cc.

147 {}

Member Function Documentation

◆ analyze()

void L1TCaloLayer1Validator::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 154 of file L1TCaloLayer1Validator.cc.

References funct::abs(), badEventCount, badNonZeroRegionCount, badNonZeroTowerCount, badRegionCount, badTowerCount, BXVector< T >::begin(), TauDecayModes::dec, emulRegionToken, emulTowerToken, BXVector< T >::end(), eventCount, g, iEvent, LOG_ERROR, nbCard, nbRegion, ngCard, ngRegion, nonZeroRegionCount, nonZeroTowerCount, regionCount, summarizeEdmComparisonLogfiles::success, tEeTotET, tErEmulTotET, testRegionToken, testTowerToken, tGeTotET, tGrEmulTotET, tLeTotET, tLrEmulTotET, towerCount, validateRegions, validateTowers, verbose, zbCard, zbRegion, zgCard, and zgRegion.

154  {
155  using namespace edm;
156  bool badEvent = false;
157  int theBX = 0;
158 
159  // Emulator calo towers and regions should always be available - get them
160  // Data will always contain calo regions, but not necessarily calo towers
161 
163  iEvent.getByToken(emulTowerToken, emulTowers);
165  iEvent.getByToken(testRegionToken, testRegions);
167  iEvent.getByToken(emulRegionToken, emulRegions);
168 
169  if (validateTowers) {
170  // Test towers will be available for spy and fat events only
172  iEvent.getByToken(testTowerToken, testTowers);
173  for (std::vector<CaloTower>::const_iterator testTower = testTowers->begin(theBX);
174  testTower != testTowers->end(theBX);
175  ++testTower) {
176  int test_iEta = testTower->hwEta();
177  int test_iPhi = testTower->hwPhi();
178  int test_et = testTower->hwPt();
179  int test_er = testTower->hwEtRatio();
180  int test_fb = testTower->hwQual();
181  for (std::vector<CaloTower>::const_iterator emulTower = emulTowers->begin(theBX);
182  emulTower != emulTowers->end(theBX);
183  ++emulTower) {
184  int emul_iEta = emulTower->hwEta();
185  int emul_iPhi = emulTower->hwPhi();
186  int emul_et = emulTower->hwPt();
187  int emul_er = emulTower->hwEtRatio();
188  int emul_fb = emulTower->hwQual();
189  bool success = true;
190  if (test_iEta == emul_iEta && test_iPhi == emul_iPhi) {
191  if (test_et != emul_et) {
192  success = false;
193  }
194  if (test_er != emul_er) {
195  success = false;
196  }
197  if (test_fb != emul_fb) {
198  success = false;
199  }
200  if (!success) {
201  if (test_et != emul_et) {
202  if (verbose)
203  LOG_ERROR << "ET ";
204  }
205  if (test_er != emul_er) {
206  if (verbose)
207  LOG_ERROR << "ER ";
208  }
209  if (test_fb != emul_fb) {
210  if (verbose)
211  LOG_ERROR << "FB ";
212  }
213  if (verbose)
214  LOG_ERROR << "Checks failed for tower (" << std::dec << test_iEta << ", " << test_iPhi << ") : ("
215  << test_et << ", " << test_er << ", " << test_fb << ") != (" << emul_et << ", " << emul_er
216  << ", " << emul_fb << ")" << std::endl;
217  badEvent = true;
218  badTowerCount++;
219  if (test_et > 0)
221  }
222  towerCount++;
223  if (test_et > 0)
225  }
226  if (!success && test_et == emul_et && test_iPhi == emul_iPhi) {
227  if (verbose)
228  LOG_ERROR << "Incidental match for tower (" << std::dec << test_iEta << ", " << test_iPhi << ") : ("
229  << test_et << ", " << test_er << ", " << test_fb << ") != (" << emul_iEta << "," << emul_iPhi
230  << ") :(" << emul_et << ", " << emul_er << ", " << emul_fb << ")" << std::endl;
231  }
232  }
233  }
234  }
235 
236  // Region Validation
237 
238  if (validateRegions) {
239  UCTGeometry g;
240  uint32_t testRegionTotET = 0;
241  uint32_t emulRegionTotET = 0;
242  for (std::vector<L1CaloRegion>::const_iterator testRegion = testRegions->begin(); testRegion != testRegions->end();
243  ++testRegion) {
244  // uint16_t test_raw = testRegion->raw();
245  uint32_t test_et = testRegion->et();
246  testRegionTotET += test_et;
247  uint32_t test_rEta = testRegion->id().ieta();
248  uint32_t test_rPhi = testRegion->id().iphi();
249  // uint32_t test_iEta = (test_raw >> 12) & 0x3;
250  // uint32_t test_iPhi = (test_raw >> 14) & 0x3;
251  bool test_negativeEta = false;
252  int test_cEta = (test_rEta - 11) * 4 + 1; //test_iEta + 1;
253  if (test_rEta < 11) {
254  test_negativeEta = true;
255  test_cEta = -((10 - test_rEta) * 4 + 1); //test_iEta + 1);
256  }
257  int test_cPhi = test_rPhi * 4 + 1; //test_iPhi + 1;
258  uint32_t test_crate = g.getCrate(test_cEta, test_cPhi);
259  uint32_t test_card = g.getCard(test_cEta, test_cPhi);
260  uint32_t test_region = g.getRegion(test_cEta, test_cPhi);
261  for (std::vector<L1CaloRegion>::const_iterator emulRegion = emulRegions->begin();
262  emulRegion != emulRegions->end();
263  ++emulRegion) {
264  // uint16_t emul_raw = emulRegion->raw();
265  uint32_t emul_et = emulRegion->et();
266  if (testRegion == testRegions->begin())
267  emulRegionTotET += emul_et; // increment only once!
268  uint32_t emul_rEta = emulRegion->id().ieta();
269  uint32_t emul_rPhi = emulRegion->id().iphi();
270  // uint32_t emul_iEta = (emul_raw >> 12) & 0x3;
271  // uint32_t emul_iPhi = (emul_raw >> 14) & 0x3;
272  bool emul_negativeEta = false;
273  int emul_cEta = (emul_rEta - 11) * 4 + 1; //emul_iEta + 1;
274  if (emul_rEta < 11) {
275  emul_negativeEta = true;
276  emul_cEta = -((10 - emul_rEta) * 4 + 1); //emul_iEta + 1);
277  }
278  int emul_cPhi = emul_rPhi * 4 + 1; //emul_iPhi + 1;
279  uint32_t emul_crate = g.getCrate(emul_cEta, emul_cPhi);
280  uint32_t emul_card = g.getCard(emul_cEta, emul_cPhi);
281  uint32_t emul_region = g.getRegion(emul_cEta, emul_cPhi);
282  bool success = true;
283  if (test_rEta == emul_rEta && test_rPhi == emul_rPhi) {
284  if (test_et != emul_et)
285  success = false;
286  //if(test_iEta != emul_iEta) success = false;
287  //if(test_iPhi != emul_iPhi) success = false;
288  if (!success) {
289  if (verbose)
290  LOG_ERROR << "Checks failed for region (" << std::dec << test_rEta << ", " << test_rPhi << ") ("
291  << test_negativeEta << ", " << test_crate << ", " << test_card << ", " << test_region
292  << ", "
293  // << test_iEta << ", "
294  // << test_iPhi << ", "
295  << test_et << ") != (" << emul_negativeEta << ", " << emul_crate << ", " << emul_card << ", "
296  << emul_region
297  << ", "
298  // << emul_iEta << ", "
299  // << emul_iPhi << ", "
300  << emul_et << ")" << std::endl;
301  badEvent = true;
302  badRegionCount++;
303  if (test_et > 0) {
305  nbRegion[test_rEta]++;
306  nbCard[test_rPhi]++;
307  } else {
308  zbRegion[test_rEta]++;
309  zbCard[test_rPhi]++;
310  }
311  } else {
312  if (test_et > 0) {
313  ngRegion[test_rEta]++;
314  ngCard[test_rPhi]++;
315  if (verbose)
316  LOG_ERROR << "Checks passed for region (" << std::dec << test_rEta << ", " << test_rPhi << ") ("
317  << test_negativeEta << ", " << test_crate << ", " << test_card << ", " << test_region
318  << ", "
319  // << test_iEta << ", "
320  // << test_iPhi << ", "
321  << test_et << ") == (" << emul_negativeEta << ", " << emul_crate << ", " << emul_card << ", "
322  << emul_region
323  << ", "
324  // << emul_iEta << ", "
325  // << emul_iPhi << ", "
326  << emul_et << ")" << std::endl;
327  } else {
328  zgRegion[test_rEta]++;
329  zgCard[test_rPhi]++;
330  }
331  }
332  regionCount++;
333  if (test_et > 0)
335  }
336  if (!success && test_et == emul_et) { // && test_iPhi == emul_iPhi) {
337  if (verbose)
338  LOG_ERROR << "Incidental match for region (" << std::dec << test_rEta << ", " << test_rPhi
339  << ", "
340  // << test_iEta << ", "
341  // << test_iPhi << ", "
342  << test_et << ") != (" << emul_rEta << ", " << emul_rPhi
343  << ", "
344  // << emul_iEta << ", "
345  // << emul_iPhi << ", "
346  << emul_et << ")" << std::endl;
347  }
348  }
349  }
350  uint32_t emulTowerTotET = 0;
351  for (std::vector<CaloTower>::const_iterator emulTower = emulTowers->begin(theBX);
352  emulTower != emulTowers->end(theBX);
353  ++emulTower) {
354  int twr_et = emulTower->hwPt();
355  int twr_cEta = emulTower->hwEta();
356  int twr_cPhi = emulTower->hwPhi();
357  uint32_t twr_region = g.getRegion(twr_cEta, twr_cPhi);
358  uint32_t twr_gEta = 10 - twr_region;
359  if (twr_cEta > 0)
360  twr_gEta = twr_region + 11;
361  uint32_t twr_gPhi = g.getUCTRegionPhiIndex(twr_cPhi);
362  if (badEvent && twr_et > 0) {
363  if (verbose)
364  LOG_ERROR << "Non-zero tower in region (" << twr_gEta << ", " << twr_gPhi << ") "
365  << "(cEta, cPhi, et) = (" << twr_cEta << ", " << twr_cPhi << ", " << twr_et << ")" << std::endl;
366  }
367  if (std::abs(twr_cEta) <= 28)
368  emulTowerTotET += twr_et; // Exclude HF towers for now
369  }
370  // Increment counters for emulated total tower ET comparison with total region ET
371  if (emulTowerTotET < emulRegionTotET)
372  tLrEmulTotET++;
373  else if (emulTowerTotET > emulRegionTotET)
374  tGrEmulTotET++;
375  else
376  tErEmulTotET++;
377  // Increment counters for emulated total region ET comparison with region test ET
378  if (testRegionTotET < emulRegionTotET)
379  tLeTotET++;
380  else if (testRegionTotET > emulRegionTotET)
381  tGeTotET++;
382  else
383  tEeTotET++;
384  }
385 
386  // Event counters
387 
388  if (badEvent)
389  badEventCount++;
390  eventCount++;
391 }
edm::EDGetTokenT< CaloTowerBxCollection > emulTowerToken
edm::EDGetTokenT< L1CaloRegionCollection > emulRegionToken
edm::EDGetTokenT< CaloTowerBxCollection > testTowerToken
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
const_iterator begin(int bx) const
int iEvent
Definition: GenABIO.cc:224
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
edm::EDGetTokenT< L1CaloRegionCollection > testRegionToken
const_iterator end(int bx) const
HLT enums.
#define LOG_ERROR
Definition: CSCDQM_Logger.h:40

◆ beginJob()

void L1TCaloLayer1Validator::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 394 of file L1TCaloLayer1Validator.cc.

394 {}

◆ endJob()

void L1TCaloLayer1Validator::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 397 of file L1TCaloLayer1Validator.cc.

References badEventCount, badNonZeroRegionCount, badNonZeroTowerCount, badRegionCount, badTowerCount, eventCount, LOG_ERROR, nbCard, nbRegion, ngCard, ngRegion, nonZeroRegionCount, nonZeroTowerCount, alignCSCRings::r, regionCount, tEeTotET, tErEmulTotET, tGeTotET, tGrEmulTotET, tLeTotET, tLrEmulTotET, towerCount, validateRegions, validateTowers, zbCard, zbRegion, zgCard, and zgRegion.

397  {
398  if (validateTowers)
399  LOG_ERROR << "L1TCaloLayer1Validator: Summary is Non-Zero Bad Tower / Bad Tower / Event Count = ("
400  << badNonZeroTowerCount << " of " << nonZeroTowerCount << ") / (" << badTowerCount << " of " << towerCount
401  << ") / (" << badEventCount << " of " << eventCount << ")" << std::endl;
402  if (validateRegions) {
403  LOG_ERROR << "L1TCaloLayer1Validator: Summary is Non-Zero Bad Region / Bad Region / Event Count = ("
404  << badNonZeroRegionCount << " of " << nonZeroRegionCount << ") / (" << badRegionCount << " of "
405  << regionCount << ") / (" << badEventCount << " of " << eventCount << ")" << std::endl;
406  LOG_ERROR << "L1TCaloLayer1Validator reTa, non-zero-good / non-zero-bad / zero-good / zero-bad region[rEta] = "
407  << std::endl;
408  for (uint32_t r = 0; r < 22; r++)
409  LOG_ERROR << r << ", " << ngRegion[r] << " / " << nbRegion[r] << " / " << zgRegion[r] << " / " << zbRegion[r]
410  << std::endl;
411  LOG_ERROR << "L1TCaloLayer1Validator rPhi, non-zero-good / non-zero-bad / zero-good / zero-bad region[rPhi] = "
412  << std::endl;
413  for (uint32_t r = 0; r < 18; r++)
414  LOG_ERROR << r << ", " << ngCard[r] << " / " << nbCard[r] << " / " << zgCard[r] << " / " << zbCard[r]
415  << std::endl;
416  LOG_ERROR << "L1TCaloLayer1Validator : Total ET emulator tower vs region; less / equal / greater counts: "
417  << tLrEmulTotET << " / " << tErEmulTotET << " / " << tGrEmulTotET << std::endl;
418  LOG_ERROR << "L1TCaloLayer1Validator : Total ET region test vs emulator; less / equal / greater counts: "
419  << tLeTotET << " / " << tEeTotET << " / " << tGeTotET << std::endl;
420  }
421 }
#define LOG_ERROR
Definition: CSCDQM_Logger.h:40

◆ fillDescriptions()

void L1TCaloLayer1Validator::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 456 of file L1TCaloLayer1Validator.cc.

References edm::ConfigurationDescriptions::addDefault(), and submitPVResolutionJobs::desc.

456  {
457  //The following says we do not know what parameters are allowed so do no validation
458  // Please change this to state exactly what you do use, even if it is no parameters
460  desc.setUnknown();
461  descriptions.addDefault(desc);
462 }
void addDefault(ParameterSetDescription const &psetDescription)

Member Data Documentation

◆ badEventCount

uint32_t L1TCaloLayer1Validator::badEventCount
private

Definition at line 72 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), and endJob().

◆ badNonZeroRegionCount

uint32_t L1TCaloLayer1Validator::badNonZeroRegionCount
private

Definition at line 80 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), and endJob().

◆ badNonZeroTowerCount

uint32_t L1TCaloLayer1Validator::badNonZeroTowerCount
private

Definition at line 76 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), and endJob().

◆ badRegionCount

uint32_t L1TCaloLayer1Validator::badRegionCount
private

Definition at line 78 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), and endJob().

◆ badTowerCount

uint32_t L1TCaloLayer1Validator::badTowerCount
private

Definition at line 74 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), and endJob().

◆ emulRegionToken

edm::EDGetTokenT<L1CaloRegionCollection> L1TCaloLayer1Validator::emulRegionToken
private

Definition at line 69 of file L1TCaloLayer1Validator.cc.

Referenced by analyze().

◆ emulTowerToken

edm::EDGetTokenT<CaloTowerBxCollection> L1TCaloLayer1Validator::emulTowerToken
private

Definition at line 66 of file L1TCaloLayer1Validator.cc.

Referenced by analyze().

◆ eventCount

uint32_t L1TCaloLayer1Validator::eventCount
private

Definition at line 71 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), and endJob().

◆ nbCard

uint32_t L1TCaloLayer1Validator::nbCard[18]
private

Definition at line 88 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), endJob(), and L1TCaloLayer1Validator().

◆ nbRegion

uint32_t L1TCaloLayer1Validator::nbRegion[22]
private

Definition at line 83 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), endJob(), and L1TCaloLayer1Validator().

◆ ngCard

uint32_t L1TCaloLayer1Validator::ngCard[18]
private

Definition at line 87 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), endJob(), and L1TCaloLayer1Validator().

◆ ngRegion

uint32_t L1TCaloLayer1Validator::ngRegion[22]
private

Definition at line 82 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), endJob(), and L1TCaloLayer1Validator().

◆ nonZeroRegionCount

uint32_t L1TCaloLayer1Validator::nonZeroRegionCount
private

Definition at line 79 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), and endJob().

◆ nonZeroTowerCount

uint32_t L1TCaloLayer1Validator::nonZeroTowerCount
private

Definition at line 75 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), and endJob().

◆ regionCount

uint32_t L1TCaloLayer1Validator::regionCount
private

Definition at line 77 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), and endJob().

◆ tEeTotET

uint32_t L1TCaloLayer1Validator::tEeTotET
private

Definition at line 97 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), and endJob().

◆ tErEmulTotET

uint32_t L1TCaloLayer1Validator::tErEmulTotET
private

Definition at line 93 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), and endJob().

◆ testRegionToken

edm::EDGetTokenT<L1CaloRegionCollection> L1TCaloLayer1Validator::testRegionToken
private

Definition at line 68 of file L1TCaloLayer1Validator.cc.

Referenced by analyze().

◆ testTowerToken

edm::EDGetTokenT<CaloTowerBxCollection> L1TCaloLayer1Validator::testTowerToken
private

Definition at line 65 of file L1TCaloLayer1Validator.cc.

Referenced by analyze().

◆ tGeTotET

uint32_t L1TCaloLayer1Validator::tGeTotET
private

Definition at line 98 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), and endJob().

◆ tGrEmulTotET

uint32_t L1TCaloLayer1Validator::tGrEmulTotET
private

Definition at line 94 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), and endJob().

◆ tLeTotET

uint32_t L1TCaloLayer1Validator::tLeTotET
private

Definition at line 96 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), and endJob().

◆ tLrEmulTotET

uint32_t L1TCaloLayer1Validator::tLrEmulTotET
private

Definition at line 92 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), and endJob().

◆ towerCount

uint32_t L1TCaloLayer1Validator::towerCount
private

Definition at line 73 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), and endJob().

◆ validateRegions

bool L1TCaloLayer1Validator::validateRegions
private

Definition at line 101 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), and endJob().

◆ validateTowers

bool L1TCaloLayer1Validator::validateTowers
private

Definition at line 100 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), and endJob().

◆ verbose

bool L1TCaloLayer1Validator::verbose
private

◆ zbCard

uint32_t L1TCaloLayer1Validator::zbCard[18]
private

Definition at line 90 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), endJob(), and L1TCaloLayer1Validator().

◆ zbRegion

uint32_t L1TCaloLayer1Validator::zbRegion[22]
private

Definition at line 85 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), endJob(), and L1TCaloLayer1Validator().

◆ zgCard

uint32_t L1TCaloLayer1Validator::zgCard[18]
private

Definition at line 89 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), endJob(), and L1TCaloLayer1Validator().

◆ zgRegion

uint32_t L1TCaloLayer1Validator::zgRegion[22]
private

Definition at line 84 of file L1TCaloLayer1Validator.cc.

Referenced by analyze(), endJob(), and L1TCaloLayer1Validator().