50 for (
int i = 0;
i < 18;
i++) {
87 for (
int i = 0;
i < 18;
i++) {
105 for (
int i = 0;
i < 18;
i++) {
107 meSelMap_[
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 for (
int i = 0;
i < 18;
i++) {
131 if ( !
init_ )
return;
137 for (
int i = 0;
i < 18;
i++) {
143 for (
int i = 0;
i < 18;
i++) {
169 for (
int i=0;
i<18;
i++) runType[
i] = -1;
181 runType[ism-1] = dcchItr->getRunType();
194 isData =
false; enable =
true;
199 if ( ! enable )
return;
209 int neeh = hits->size();
210 LogDebug(
"EECosmicTask") <<
"event " <<
ievt_ <<
" hits collection size " << neeh;
227 if ( ism >= 1 && ism <= 9 ) ix = 101 - ix;
229 float xix = ix - 0.5;
230 float xiy = iy - 0.5;
234 if ( ism >= 1 && ism <= 9 ) iz = -1;
235 if ( ism >= 10 && ism <= 18 ) iz = +1;
248 float xval = hitItr->energy();
249 if ( xval <= 0. ) xval = 0.0;
256 for(
int icry=0; icry<9; ++icry) {
257 unsigned int row = icry/3;
258 unsigned int column = icry%3;
259 int icryX =
id.ix()+column-1;
260 int icryY =
id.iy()+row-1;
263 if ( hits->find(id3x3) != hits->end() ) {
264 float neighbourEnergy = hits->find(id3x3)->energy();
265 e3x3 += neighbourEnergy;
266 if ( neighbourEnergy > xval ) isSeed =
false;
272 float jitter = -999.;
275 if ( uhits->find(
id) != uhits->end() ) {
276 jitter = uhits->find(
id)->jitter();
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
static std::string sEE(const unsigned ism)
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void rmdir(const std::string &fullpath)
edm::InputTag EcalRawDataCollection_
Some "id" conversions.
std::vector< T >::const_iterator const_iterator
void beginJob(void)
BeginJob.
static int ix0EE(const unsigned ism)
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
static int iy0EE(const unsigned ism)
edm::InputTag EcalUncalibratedRecHitCollection_
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
virtual ~EECosmicTask()
Destructor.
MonitorElement * meSelMap_[18]
void removeElement(const std::string &name)
std::string getName(Reflex::Type &cc)
edm::InputTag EcalRecHitCollection_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
MonitorElement * meSpectrum_[2][18]
void cleanup(void)
Cleanup.
static unsigned iSM(const unsigned ism, const EcalSubdetector subdet)
EECosmicTask(const edm::ParameterSet &ps)
Constructor.
static EcalSubdetector subDet(const EBDetId &id)
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)
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")