52 sprintf(s,
"BunchOccupancy(fC)_all_TS");
57 sprintf(s,
"DigiSize");
59 sprintf(s,
"Module(fC)_allTS");
63 sprintf(s,
"Sector(fC)_allTS");
67 sprintf(s,
"QfC=f(Tile TS) (cumulative)");
72 sprintf(s,
"QmeanfC=f(Tile TS)");
77 sprintf(s,
"QmeanfC_map(allTS)");
95 if(castorDigis.
size() <= 0) {
101 j!=castorDigis.
end();
j++)
109 for (
int i=0;
i<digi.
size();
i++) {
112 if(capid1 < 3) capid1++;
119 int err = (capid != capid1) | er<<1 | (!dv)<<2;
121 int ind = sector*14 +
module;
133 if(
ievt_ %100 == 0) {
134 float ModuleSum[14], SectorSum[16];
135 for(
int m=0;
m<14;
m++) ModuleSum[
m]=0.;
136 for(
int s=0;
s<16;
s++) SectorSum[
s]=0.;
137 for(
int mod=0;
mod<14;
mod++)
for(
int sec=0; sec<16; sec++) {
139 for(
int ts=1; ts<=10; ts++) {
140 int ind = sec*14 +
mod +1;
145 sum /= double(
ievt_);
146 ModuleSum[
mod] += sum;
147 SectorSum[sec] += sum;
148 float isum = float(
int(sum*10.+0.5))/10.;
154 for(
int sec=0; sec<16; sec++)
T getUntrackedParameter(std::string const &, T const &) const
int sector() const
get the sector (1-16)
MonitorElement * bookProfile(Args &&...args)
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)
CastorDigiMonitor(const edm::ParameterSet &ps)
MonitorElement * h2digierr
void processEvent(const CastorDigiCollection &cast, const CastorDbService &cond, int bunch)
MonitorElement * book1D(Args &&...args)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
MonitorElement * h2QmeanMap
void setup(const edm::ParameterSet &ps)
MonitorElement * h2QtsvsCh
std::string subsystemname_
const_iterator end() const
void setCurrentFolder(const std::string &fullpath)
static const float LedMonAdc2fc[128]
int capid() const
get the Capacitor id
MonitorElement * book2D(Args &&...args)
TH1F * getTH1F(void) const
MonitorElement * hdigisize
virtual void setup(const edm::ParameterSet &ps)
TProfile * getTProfile(void) const
TH2F * getTH2F(void) const
const HcalCastorDetId & id() const
T mod(const T &a, const T &b)
int size() const
total number of samples in the digi
MonitorElement * hBunchOcc
bool er() const
is the error bit set?
const_iterator begin() const
MonitorElement * h2QmeantsvsCh