34 if(fVerbosity>0)
std::cout <<
"CastorMonitorModule Constructor (start)" << std::endl;
67 if(fVerbosity>0)
std::cout <<
"CastorMonitorModule: Digi monitor flag is on...." << std::endl;
75 if(fVerbosity>0)
std::cout <<
"CastorMonitorModule: RecHit monitor flag is on...." << std::endl;
84 if(fVerbosity>0)
std::cout <<
"CastorMonitorModule: HI monitor flag is on...." << std::endl;
92 if(fVerbosity>0)
std::cout <<
"CastorChannelQualityMonitor: CQ monitor flag is on...." << std::endl;
108 if(fVerbosity>0)
std::cout <<
"CastorMonitorModule: PS monitor flag is on...." << std::endl;
116 if(fVerbosity>0)
std::cout <<
"CastorMonitorModule: ED monitor flag is on...." << std::endl;
130 if(fVerbosity>0)
std::cout <<
"===>CastorMonitor event prescale = " <<
prescaleEvt_ <<
" event(s)"<< std::endl;
133 if(fVerbosity>0)
std::cout <<
"===>CastorMonitor lumi section prescale = " <<
prescaleLS_ <<
" lumi section(s)"<< std::endl;
137 if(fVerbosity>0)
std::cout <<
"===>CastorMonitor update prescale = " <<
prescaleUpdate_ <<
" update(s)"<< std::endl;
140 if(fVerbosity>1)
std::cout <<
"===>CastorMonitor time prescale = " <<
prescaleTime_ <<
" minute(s)"<< std::endl;
144 if(fVerbosity>0)
std::cout <<
"===>CastorMonitor name = " << subsystemname << std::endl;
159 if(fVerbosity>0)
std::cout <<
"CastorMonitorModule Constructor (end)" << std::endl;
205 hCastorEventProduct->GetXaxis()->SetBinLabel(1,
"RawData");
206 hCastorEventProduct->GetXaxis()->SetBinLabel(2,
"CastorDigi");
207 hCastorEventProduct->GetXaxis()->SetBinLabel(3,
"CastorRecHits");
208 hCastorEventProduct->GetYaxis()->SetBinLabel(1,
"Status");
209 hCastorEventProduct->SetBinContent(1,1,-1);
210 hCastorEventProduct->SetBinContent(2,1,-1);
211 hCastorEventProduct->SetBinContent(3,1,-1);
212 hCastorEventProduct->SetOption(
"textcolz");
231 if(
fVerbosity>0)
std::cout <<
"CastorMonitorModule::beginJob - NO DQMStore service" << std::endl;
256 float sigma_averaged;
257 unsigned int iChannel = 0;
258 std::vector<DetId> channels =
dbPedestals->getAllChannels();
261 for (std::vector<DetId>::iterator ch=channels.begin(); ch!=channels.end(); ch++) {
266 for (
short unsigned int iCapId = 0; iCapId < 4; iCapId++){
267 sigma_averaged +=
sqrt(pedestals_mean->
getWidth(iCapId));
275 if(iChannel<224 && fVerbosity>0)
std::cout <<
"There are less that 224 channels in CastorPedestalsRcd record !!!" << std::endl;
437 if (!CastorDigi.isValid()) {
454 if (!CastorHits.isValid()) {
463 hCastorEventProduct->SetBinContent(1,1,
int(
rawOK_));
464 hCastorEventProduct->SetBinContent(2,1,
int(
digiOK_));
465 hCastorEventProduct->SetBinContent(3,1,
int(
rechitOK_));
528 listEMap = myRefEMap->allPrecisionId();
559 std::cout <<
"CastorMonitorModule: processed " <<
ievt_ <<
" events" << std::endl;
594 if(!evtPS && !lsPS && !timePS && !updatePS)
615 std::cout<<
"CastorMonitorModule::prescale evt: "<<
ievent_<<
"/"<<evtPS<<
", ";
620 if(evtPS || lsPS || timePS)
return false;
T getParameter(std::string const &) const
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * meCASTOR_
MonitorElement * meQuality_
void processEvent(const CastorRecHitCollection &castorHits, const CastorDigiCollection &cast, const CastorDbService &cond)
void endRun(const edm::Run &run, const edm::EventSetup &eventSetup)
int sector() const
get the sector (1-16)
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void analyze(const edm::Event &iEvent, const edm::EventSetup &eventSetup)
void setup(const edm::ParameterSet &ps, DQMStore *dbe)
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &eventSetup)
#define DEFINE_FWK_MODULE(type)
edm::ESHandle< CastorDbService > conditions_
int bunchCrossing() const
edm::LuminosityBlockNumber_t luminosityBlock() const
CastorLEDMonitor * LedMon_
void beginRun(const edm::Run &iRun, const edm::EventSetup &eventSetup)
MonitorElement * meRunType_
void setup(const edm::ParameterSet &ps, DQMStore *dbe)
int module() const
get the module (1-2 for EM, 1-12 for HAD)
struct CastorMonitorModule::@186 psTime_
edm::ESHandle< CastorPedestals > dbPedestals
float getWidth(int fCapId) const
get width for capId = 0..3
edm::InputTag inputLabelRaw_
static const int DO_CASTOR_RECHITMON
edm::InputTag inputLabelDigi_
std::vector< HcalGenericDetId > listEMap
CastorMonitorModule(const edm::ParameterSet &ps)
edm::InputTag inputLabelRecHitCASTOR_
CastorEventDisplay * EDMon_
void setup(const edm::ParameterSet &ps, DQMStore *dbe)
CastorMonitorSelector * evtSel_
CastorDigiMonitor * DigiMon_
void setup(const edm::ParameterSet &ps, DQMStore *dbe)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
MonitorElement * meEvtMask_
void setup(const edm::ParameterSet &ps, DQMStore *dbe)
void CheckCastorStatus(const FEDRawDataCollection &rawraw, const HcalUnpackerReport &report, const CastorElectronicsMap &emap, const CastorDigiCollection &castordigi)
MonitorElement * meStatus_
TimeValue_t value() const
void processEvent(const CastorRecHitCollection &castorHits)
static const int DO_CASTOR_PED_CALIBMON
MonitorElement * CastorEventProduct
CastorChannelQualityMonitor * CQMon_
void processEvent(const CastorRecHitCollection &castorHits, const CaloGeometry &caloGeometry)
void processEvent(const CastorDigiCollection &cast, const CastorDbService &cond)
float fPedestalNSigmaAverage[14][16]
CastorRecHitMonitor * RecHitMon_
void processEvent(const CastorRecHitCollection &castorHits)
void setup(const edm::ParameterSet &ps, DQMStore *dbe)
TH2F * getTH2F(void) const
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &eventSetup)
MonitorElement * bookInt(const char *name)
Book int.
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
edm::Timestamp time() const
void setCurrentFolder(const std::string &fullpath)
void processEvent(const CastorDigiCollection &castorDigis, const CastorDbService &conditions, std::vector< HcalGenericDetId > listEMap, int iBunch, float PedSigmaInChannel[14][16])