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");
134 <<
" evt="<<
ievent_<<
"\t total count = "<<
ievt_<<std::endl;
141 bool rechitOK_ =
true, towerOK_ =
true, jetsOK_ =
true;
142 int nDigi = 0, nrecHits = 0,
nTowers = 0, nJets=0;
146 if (!RawData.
isValid()) rawOK_=
false;
148 float fedsUnpacked=0.;
151 if (!report.
isValid()) rawOK_=
false;
154 const std::vector<int> feds = (*report).getFedsUnpacked();
155 fedsUnpacked =
float(feds.size());
166 if (CastorDigi.
isValid()) nDigi = CastorDigi->
size();
171 if (CastorHits.
isValid()) nrecHits=CastorHits->
size();
172 else rechitOK_ =
false;
177 else towerOK_ =
false;
181 if(jets.
isValid()) nJets = jets->size();
182 else jetsOK_ =
false;
186 <<
" Digi="<<digiOK_ <<
"(" <<nDigi<<
") Hits="<<rechitOK_<<
"("<<nrecHits <<
")" 187 <<
" Towers="<<towerOK_<<
"(" <<
nTowers <<
")" 188 <<
" Jets="<<jetsOK_<<
"(" << nJets <<
")" <<std::endl;
222 std::cout <<
"CastorMonitorModule: processed "<<
ievt_<<
" events"<<std::endl;
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)
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &eventSetup) override
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_
TH1F * getTH1F(void) const
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &eventSetup) override
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)
TProfile * getTProfile(void) const
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 &)