73 std::cout<<
"CASTOR has no CastorPedestals in the CondDB"<<std::endl;
88 sprintf(s,
"CastorEventProducts");
92 xa->SetBinLabel(1,
"FEDs/3");
93 xa->SetBinLabel(2,
"RawData");
94 xa->SetBinLabel(3,
"Digi");
95 xa->SetBinLabel(4,
"RecHits");
96 xa->SetBinLabel(5,
"Towers");
97 xa->SetBinLabel(6,
"Jets");
99 sprintf(s,
"CASTORUnpackReport");
102 xa->SetBinLabel(1,
"N_FEDs");
103 xa->SetBinLabel(2,
"SPIGOT_Err");
104 xa->SetBinLabel(3,
"empty");
105 xa->SetBinLabel(4,
"busy");
106 xa->SetBinLabel(5,
"OvF");
107 xa->SetBinLabel(6,
"BadDigis");
130 <<
" evt="<<
ievent_<<
"\t total count = "<<
ievt_<<std::endl;
137 bool rechitOK_ =
true, towerOK_ =
true, jetsOK_ =
true;
138 int nDigi = 0, nrecHits = 0,
nTowers = 0, nJets=0;
142 if (!RawData.
isValid()) rawOK_=
false;
144 float fedsUnpacked=0.;
147 if (!report.
isValid()) rawOK_=
false;
150 const std::vector<int> feds = (*report).getFedsUnpacked();
151 fedsUnpacked =
float(feds.size());
162 if (CastorDigi.
isValid()) nDigi = CastorDigi->
size();
167 if (CastorHits.
isValid()) nrecHits=CastorHits->
size();
168 else rechitOK_ =
false;
173 else towerOK_ =
false;
177 if(jets.
isValid()) nJets = jets->size();
178 else jetsOK_ =
false;
182 <<
" Digi="<<digiOK_ <<
"(" <<nDigi<<
") Hits="<<rechitOK_<<
"("<<nrecHits <<
")" 183 <<
" Towers="<<towerOK_<<
"(" <<
nTowers <<
")" 184 <<
" Jets="<<jetsOK_<<
"(" << nJets <<
")" <<std::endl;
218 std::cout <<
"CastorMonitorModule: processed "<<
ievt_<<
" events"<<std::endl;
TProfile * getTProfile() const
T getParameter(std::string const &) const
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
int spigotFormatErrors() const
int emptyEventSpigots() const
edm::EDGetTokenT< FEDRawDataCollection > inputTokenRaw_
MonitorElement * bookProfile(Args &&...args)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void endRun(const edm::Run &run, const edm::EventSetup &eventSetup) override
#define DEFINE_FWK_MODULE(type)
edm::ESHandle< CastorDbService > conditions_
MonitorElement * hunpkrep
int bunchCrossing() const
edm::LuminosityBlockNumber_t luminosityBlock() const
CastorLEDMonitor * LedMon_
edm::ESHandle< CastorPedestals > dbPedestals
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
edm::EDGetTokenT< CastorDigiCollection > inputTokenDigi_
edm::EDGetTokenT< CastorTowerCollection > inputTokenCastorTowers_
void processEventJets(const reco::BasicJetCollection &Jets)
CastorMonitorModule(const edm::ParameterSet &ps)
void processEvent(const CastorDigiCollection &cast, const CastorDbService &cond)
MonitorElement * book1D(Args &&...args)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
CastorDigiMonitor * DigiMon_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
void setCurrentFolder(const std::string &fullpath)
std::string subsystemname_
edm::EDGetTokenT< BasicJetCollection > JetAlgorithm
int badQualityDigis() const
void analyze(const edm::Event &iEvent, const edm::EventSetup &eventSetup) override
MonitorElement * CastorEventProduct
void processEventTowers(const reco::CastorTowerCollection &castorTowers)
edm::EDGetTokenT< HcalUnpackerReport > inputTokenReport_
void processEvent(const CastorDigiCollection &cast, const CastorDbService &cond)
CastorRecHitMonitor * RecHitMon_
void processEvent(const CastorRecHitCollection &castorHits)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< CastorRecHitCollection > inputTokenRecHitCASTOR_
~CastorMonitorModule() override
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)