51 virtual void endJob()
override;
95 badNonZeroTowerCount(0),
96 verbose(iConfig.getParameter<bool>(
"verbose")) {}
109 bool badEvent =
false;
115 for(std::vector<CaloTower>::const_iterator testTower = testTowers->begin(theBX);
116 testTower != testTowers->end(theBX);
118 for(std::vector<CaloTower>::const_iterator emulTower = emulTowers->begin(theBX);
119 emulTower != emulTowers->end(theBX);
121 int test_iEta = testTower->hwEta();
122 int test_iPhi = testTower->hwPhi();
123 int test_et = testTower->hwPt();
124 int test_er = testTower->hwEtRatio();
125 int test_fb = testTower->hwQual();
126 int emul_iEta = emulTower->hwEta();
127 int emul_iPhi = emulTower->hwPhi();
128 int emul_et = emulTower->hwPt();
129 int emul_er = emulTower->hwEtRatio();
130 int emul_fb = emulTower->hwQual();
132 if(test_iEta == emul_iEta && test_iPhi == emul_iPhi) {
133 if(test_et != emul_et) {success =
false;}
134 if(test_er != emul_er) {success =
false;}
135 if(test_fb != emul_fb) {success =
false;}
142 << test_iPhi <<
") : ("
145 << test_fb <<
") != ("
148 << emul_fb <<
")" << std::endl;
156 if(!success && test_et == emul_et && test_iPhi == emul_iPhi) {
159 << test_iPhi <<
") : ("
162 << test_fb <<
") != ("
167 << emul_fb <<
")" << std::endl;
185 std::cout <<
"L1TCaloLayer1Vaidator: Summary is Non-Zero Bad Tower / Bad Tower / Event Count = ("
virtual void beginJob() override
~L1TCaloLayer1Validator()
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< CaloTowerBxCollection > emulSource
void addDefault(ParameterSetDescription const &psetDescription)
uint32_t nonZeroTowerCount
L1TCaloLayer1Validator(const edm::ParameterSet &)
virtual void endJob() override
edm::EDGetTokenT< CaloTowerBxCollection > testSource
uint32_t badNonZeroTowerCount