54 std::string
type =
"Castor Digis ADC counts";
71 if(
fVerbosity>0)
std::cout <<
"CastorDigiMonitor::setup - NO DQMStore service" << std::endl;
102 if(
fVerbosity>0)
std::cout<<
"CastorDigiMonitor::processEvent DQMStore is not instantiated!!!"<<std::endl;
109 if(castorDigis.
size()>0) {
159 for (
int i=0;
i<digi.
size();
i++) {
176 if(
fVerbosity>0)
std::cout <<
"CastorPSMonitor::processEvent NO Castor Digis !!!" << std::endl;
200 std::string baseFolder)
206 for(
unsigned int d=0; d<detID.size(); d++){
208 int capid = capID[d];
209 float pedVal = peds[d];
212 if(
REG[detid]) gotit=
true;
216 std::map<int, MonitorElement*> _mei = toolP[
detid];
217 if(_mei[capid]==
NULL){
218 if(
fVerbosity>0)
std::cout<<
"CastorDigiMonitor::perChanHists This histo is NULL!!??"<< std::endl;
220 else _mei[capid]->Fill(pedVal);
230 std::map<int,MonitorElement*> insertP;
234 for(
int i=0;
i<4;
i++){
236 sprintf(name,
"Castor Digi Value (ADC) zside=%d module=%d sector=%d CAPID=%d",
237 detid.zside(),detid.module(),detid.sector(),
i);
245 insertP[capid]->
Fill(pedVal);
247 toolP[
detid] = insertP;
T getUntrackedParameter(std::string const &, T const &) const
virtual void setup(const edm::ParameterSet &ps, DQMStore *dbe)
void perChanHists(std::vector< HcalCastorDetId > detID, std::vector< int > capID, std::vector< float > peds, std::map< HcalCastorDetId, std::map< int, MonitorElement * > > &toolP, std::string baseFolder)
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< T >::const_iterator const_iterator
const_iterator end() const
int capid() const
get the Capacitor id
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
struct CastorDigiMonitor::@167 castHists