41 for (
int i = 0;
i < 36;
i++) {
76 for (
int i = 0;
i < 36;
i++) {
90 dir =
prefixME_ +
"/EBPedestalOnlineTask";
97 for (
int i = 0;
i < 36;
i++) {
99 mePedMapG12_[
i] =
dqmStore_->
bookProfile2D(name, name, 85, 0., 85., 20, 0., 20., 4096, 0., 4096.,
"s");
111 if ( !
init_ )
return;
121 for (
int i = 0;
i < 36;
i++ ) {
150 int nebd = digis->size();
151 LogDebug(
"EBPedestalOnlineTask") <<
"event " <<
ievt_ <<
" digi collection size " << nebd;
158 int ie = (ic-1)/20 + 1;
159 int ip = (ic-1)%20 + 1;
163 float xie = ie - 0.5;
164 float xip = ip - 0.5;
170 for(
int i(0);
i < 10;
i++){
179 if(iMax != 5)
continue;
181 for (
int i = 0;
i < 3;
i++) {
191 float xval = float(adc);
193 if ( mePedMap ) mePedMap->
Fill(xie, xip, xval);
201 edm::LogWarning(
"EBPedestalOnlineTask") <<
"EBDigiCollection not available";
int adc(sample_type sample)
get the ADC sample (12 bits)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
void rmdir(const std::string &fullpath)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Some "id" conversions.
static std::string sEB(const unsigned ism)
EcalMGPASample sample(int i) const
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
int gainId() const
get the gainId (2 bits)
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
void tag(MonitorElement *me, unsigned int myTag)
virtual ~EBPedestalOnlineTask()
Destructor.
void removeElement(const std::string &name)
edm::EDGetTokenT< EBDigiCollection > EBDigiCollection_
MonitorElement * mePedMapG12_[36]
int ic() const
get ECAL/crystal number inside SM
void beginJob(void)
BeginJob.
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
void cleanup(void)
Cleanup.
EBPedestalOnlineTask(const edm::ParameterSet &ps)
Constructor.
static unsigned iSM(const unsigned ism, const EcalSubdetector subdet)
int ism(int ieta, int iphi)
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void Reset(void)
reset ME (ie. contents, errors, etc)
void setCurrentFolder(const std::string &fullpath)
int adc() const
get the ADC sample (12 bits)
MonitorElement * bookProfile2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ, const char *option="s")