104 if(
fVerbosity>0)
std::cout <<
"CastorDigiMonitor::setup - NO DQMStore service" << std::endl;
122 if(
fVerbosity>0)
std::cout<<
"CastorDigiMonitor::processEvent DQMStore is not instantiated!!!"<<std::endl;
132 if(castorDigis.
size()>0) {
182 for (
int i=0;
i<digi.
size();
i++) {
199 if(
fVerbosity>0)
std::cout <<
"CastorPSMonitor::processEvent NO Castor Digis !!!" << std::endl;
239 for(
unsigned int d=0; d<detID.size(); d++){
241 int capid = capID[d];
242 float pedVal = peds[d];
245 if(
REG[detid]) gotit=
true;
249 std::map<int, MonitorElement*> _mei = toolP[
detid];
250 if(_mei[capid]==
NULL){
251 if(
fVerbosity>0)
std::cout<<
"CastorDigiMonitor::perChanHists This histo is NULL!!??"<< std::endl;
253 else _mei[capid]->Fill(pedVal);
263 std::map<int,MonitorElement*> insertP;
267 for(
int i=0;
i<4;
i++){
269 sprintf(name,
"Castor Digi Value (ADC) zside=%d module=%d sector=%d CAPID=%d",
270 detid.zside(),detid.module(),detid.sector(),
i);
278 insertP[capid]->
Fill(pedVal);
280 toolP[
detid] = insertP;
T getUntrackedParameter(std::string const &, T const &) const
virtual void setup(const edm::ParameterSet &ps, DQMStore *dbe)
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void setup(const edm::ParameterSet &ps, DQMStore *dbe)
int adc() const
get the ADC sample
const HcalQIESample & sample(int i) const
access a sample
std::vector< CastorDataFrame >::const_iterator const_iterator
void perChanHists(const std::vector< HcalCastorDetId > &detID, const std::vector< int > &capID, const std::vector< float > &peds, std::map< HcalCastorDetId, std::map< int, MonitorElement * > > &toolP, std::string baseFolder)
const_iterator end() const
void beginRun(const edm::EventSetup &iSetup)
int capid() const
get the Capacitor id
struct CastorDigiMonitor::@253 castHists
std::vector< float > pedVals_
std::vector< HcalCastorDetId > detID_
std::vector< int > capID_
void processEvent(const CastorDigiCollection &cast, const CastorDbService &cond)
const HcalCastorDetId & id() const
MonitorElement * bookInt(const char *name)
Book int.
int size() const
total number of samples in the digi
void setCurrentFolder(const std::string &fullpath)
std::map< HcalCastorDetId, bool > REG
const_iterator begin() const