41 for (
int i = 0;
i < 18;
i++) {
76 for (
int i = 0;
i < 18;
i++) {
90 dir =
prefixME_ +
"/EEPedestalOnlineTask";
97 for (
int i = 0;
i < 18;
i++) {
99 mePedMapG12_[
i] =
dqmStore_->
bookProfile2D(name, name, 50,
Numbers::ix0EE(
i+1)+0.,
Numbers::ix0EE(
i+1)+50., 50,
Numbers::iy0EE(
i+1)+0.,
Numbers::iy0EE(
i+1)+50., 4096, 0., 4096.,
"s");
112 if ( !
init_ )
return;
122 for (
int i = 0;
i < 18;
i++ ) {
151 int need = digis->size();
152 LogDebug(
"EEPedestalOnlineTask") <<
"event " <<
ievt_ <<
" digi collection size " << need;
163 if ( ism >= 1 && ism <= 9 ) ix = 101 - ix;
165 float xix = ix - 0.5;
166 float xiy = iy - 0.5;
172 for(
int i(0);
i < 10;
i++){
181 if(iMax != 5)
continue;
183 for (
int i = 0;
i < 3;
i++) {
193 float xval = float(adc);
195 if ( mePedMap ) mePedMap->
Fill(xix, xiy, xval);
203 edm::LogWarning(
"EEPedestalOnlineTask") <<
"EEDigiCollection not available";
int adc(sample_type sample)
get the ADC sample (12 bits)
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
static std::string sEE(const unsigned ism)
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.
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
void cleanup(void)
Cleanup.
EcalMGPASample sample(int i) const
static int ix0EE(const unsigned ism)
EEPedestalOnlineTask(const edm::ParameterSet &ps)
Constructor.
int gainId() const
get the gainId (2 bits)
MonitorElement * mePedMapG12_[18]
static int iy0EE(const unsigned ism)
void tag(MonitorElement *me, unsigned int myTag)
void beginJob(void)
BeginJob.
void removeElement(const std::string &name)
edm::EDGetTokenT< EEDigiCollection > EEDigiCollection_
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
virtual ~EEPedestalOnlineTask()
Destructor.
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")