109 if(
fVerbosity>0)
std::cout <<
"CastorDigiMonitor::setup - NO DQMStore service" << std::endl;
127 if(
fVerbosity>0)
std::cout<<
"CastorDigiMonitor::processEvent DQMStore is not instantiated!!!"<<std::endl;
137 if(castorDigis.
size()>0) {
187 for (
int i=0;
i<digi.
size();
i++) {
201 for (
int i=1;
i<digi.
size();
i++) {
204 if(capid1 < 3) capid1++;
209 int err = (capid != capid1) | er<<1 | (!dv)<<2;
219 if(
fVerbosity>0)
std::cout <<
"CastorPSMonitor::processEvent NO Castor Digis !!!" << std::endl;
246 std::cout <<
"CastorDigiMonitor: capId,er,dv summary (entries=" << hdigierrEntr <<
"):" << std::endl;
250 edm::LogWarning(
"CastorDigiMonitor") <<
"DQMStore or histogram not available";
269 for(
unsigned int d=0; d<detID.size(); d++){
271 int capid = capID[d];
272 float pedVal = peds[d];
275 if(
REG[detid]) gotit=
true;
279 std::map<int, MonitorElement*> _mei = toolP[
detid];
280 if(_mei[capid]==
NULL){
281 if(
fVerbosity>0)
std::cout<<
"CastorDigiMonitor::perChanHists This histo is NULL!!??"<< std::endl;
283 else _mei[capid]->Fill(pedVal);
293 std::map<int,MonitorElement*> insertP;
297 for(
int i=0;
i<4;
i++){
299 sprintf(name,
"Castor Digi Value (ADC) zside=%d module=%d sector=%d CAPID=%d",
300 detid.zside(),detid.module(),detid.sector(),
i);
308 insertP[capid]->
Fill(pedVal);
310 toolP[
detid] = insertP;
T getUntrackedParameter(std::string const &, T const &) const
virtual void setup(const edm::ParameterSet &ps, DQMStore *dbe)
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 setup(const edm::ParameterSet &ps, DQMStore *dbe)
MonitorElement * book2DD(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D double histogram.
int adc() const
get the ADC sample
const HcalQIESample & sample(int i) const
access a sample
std::vector< CastorDataFrame >::const_iterator const_iterator
bool dv() const
is the Data Valid bit set?
int module() const
get the module (1-2 for EM, 1-12 for HAD)
double getEntries(void) const
get # of entries
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)
struct CastorDigiMonitor::@274 castHists
MonitorElement * h2digierr
const_iterator end() const
void beginRun(const edm::EventSetup &iSetup)
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
bool er() const
is the error bit set?
void setCurrentFolder(const std::string &fullpath)
std::map< HcalCastorDetId, bool > REG
const_iterator begin() const