44 for (
int i = 0;
i < 18;
i++) {
79 for (
int i = 0;
i < 18;
i++) {
93 dir =
prefixME_ +
"/EEPedestalOnlineTask";
100 for (
int i = 0;
i < 18;
i++) {
102 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");
115 if ( !
init_ )
return;
125 for (
int i = 0;
i < 18;
i++ ) {
154 int need = digis->size();
155 LogDebug(
"EEPedestalOnlineTask") <<
"event " <<
ievt_ <<
" digi collection size " << need;
166 if ( ism >= 1 && ism <= 9 ) ix = 101 - ix;
168 float xix = ix - 0.5;
169 float xiy = iy - 0.5;
175 for(
int i(0);
i < 10;
i++){
184 if(iMax != 5)
continue;
186 for (
int i = 0;
i < 3;
i++) {
196 float xval = float(adc);
198 if ( mePedMap ) mePedMap->
Fill(xix, xiy, xval);
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)
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)
std::string getName(Reflex::Type &cc)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
edm::InputTag EEDigiCollection_
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")