21 if (prefixME_.substr(prefixME_.size()-1,prefixME_.size())!=
"/")
22 prefixME_.append(
"/");
52 if (
debug_>0)
std::cout <<
"HcalCoarsePedestalMonitor::cleanup()"<<std::endl;
75 if (
debug_>0)
std::cout <<
"HcalCoarsePedestalMonitor::endJob()"<<std::endl;
88 std::cout <<
"<HcalCoarsePedestalMonitor::beginRun> Setting up histograms"<<std::endl;
90 std::ostringstream
name;
107 excludeHORing2->
Fill(1);
109 excludeHORing2->
Fill(0);
160 if (
debug_>1)
std::cout <<
"\t<HcalCoarsePedestalMonitor::analyze> Processing good event! event # = "<<
ievt_<<std::endl;
178 std::cout <<
"HcalCoarsePedestalMonitor::processEvent DQMStore not instantiated!!!"<<std::endl;
184 unsigned int allgooddigis= hbhe.
size()+ho.
size()+hf.
size();
187 if ((allgooddigis==0) ||
195 unsigned int digisize=0;
196 int depth=0, iphi=0, ieta=0, binEta=-9999;
208 digisize=digi.
size();
224 for (
unsigned int i=0;
i<8;++
i)
237 digisize=digi.
size();
254 for (
unsigned int i=0;
i<8;++
i)
267 digisize=digi.
size();
270 digisize=digi.
size();
282 for (
unsigned int i=0;
i<8;++
i)
323 int iphi=-1, ieta=-99, idepth=0, calcEta=-99;
325 for (
int d=0;d<4;++d)
355 int zside=ieta/
abs(ieta);
381 for (
int i=0;
i<85;++
i)
382 for (
int j=0;
j<72;++
j)
383 for (
int k=0;
k<4;++
k)
T getUntrackedParameter(std::string const &, T const &) const
bool LumiInOrder(int lumisec)
MonitorElement * ProblemsCurrentLB
HcalSubdetector subdet() const
get the subdetector
virtual void analyze(const edm::Event &e, const edm::EventSetup &c)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
int adc() const
get the ADC sample
std::vector< int > AllowedCalibTypes_
int size() const
total number of samples in the digi
std::vector< HBHEDataFrame >::const_iterator const_iterator
edm::LuminosityBlockNumber_t luminosityBlock() const
double pedestalsum_[85][72][4]
edm::EDGetTokenT< HFDigiCollection > tok_hf_
EtaPhiHists CoarsePedestalsSumByDepth
const HcalQIESample & sample(int i) const
access a sample
void processEvent(const HBHEDigiCollection &hbhe, const HODigiCollection &ho, const HFDigiCollection &hf, const HcalUnpackerReport &report)
const HcalDetId & id() const
MonitorElement * bookFloat(const char *name)
Book float.
LuminosityBlockNumber_t luminosityBlock() const
bool isSiPM(int ieta, int iphi, int depth)
int depth() const
get the tower depth
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
std::vector< MonitorElement * > depth
virtual void beginRun(const edm::Run &run, const edm::EventSetup &c)
void removeContents(void)
erase all monitoring elements in current directory (not including subfolders);
void endRun(const edm::Run &run, const edm::EventSetup &c)
bool IsAllowedCalibType()
int pedestalocc_[85][72][4]
void analyze(const edm::Event &e, const edm::EventSetup &c)
int ieta() const
get the cell ieta
virtual void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
int size() const
total number of samples in the digi
const HcalQIESample & sample(int i) const
access a sample
Abs< T >::type abs(const T &t)
const_iterator end() const
int iphi() const
get the cell iphi
~HcalCoarsePedestalMonitor()
int size() const
total number of samples in the digi
const HcalQIESample & sample(int i) const
access a sample
EtaPhiHists CoarsePedestalsOccByDepth
void FillUnphysicalHEHFBins(std::vector< TH2F > &hh)
int CalcEtaBin(int subdet, int ieta, int depth)
HcalCoarsePedestalMonitor(const edm::ParameterSet &ps)
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
void SetupEtaPhiHists(EtaPhiHists &hh, std::string Name, std::string Units)
int badQualityDigis() const
void fill_Nevents()
Methods, variables accessible only within class code.
const HcalDetId & id() const
const HcalDetId & id() const
void beginRun(const edm::Run &run, const edm::EventSetup &c)
MonitorElement * bookInt(const char *name)
Book int.
edm::EDGetTokenT< HBHEDigiCollection > tok_hbhe_
void Reset(void)
reset ME (ie. contents, errors, etc)
edm::EDGetTokenT< HcalUnpackerReport > tok_report_
void setCurrentFolder(const std::string &fullpath)
const_iterator begin() const
bool validDetId(HcalSubdetector sd, int ies, int ip, int dp)
edm::EDGetTokenT< HODigiCollection > tok_ho_