46 for (
int i = 0;
i < 18;
i++) {
83 for (
int i = 0;
i < 18;
i++) {
101 for (
int i = 0;
i < 18;
i++) {
103 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");
111 for (
int i = 0;
i < 18;
i++) {
127 if ( !
init_ )
return;
133 for (
int i = 0;
i < 18;
i++) {
139 for (
int i = 0;
i < 18;
i++) {
165 for (
int i=0;
i<18;
i++) runType[
i] = -1;
177 runType[ism-1] = dcchItr->getRunType();
190 isData =
false; enable =
true;
191 edm::LogWarning(
"EECosmicTask") <<
"EcalRawDataCollection not available";
195 if ( ! enable )
return;
205 int neeh = hits->size();
206 LogDebug(
"EECosmicTask") <<
"event " <<
ievt_ <<
" hits collection size " << neeh;
211 edm::LogWarning(
"EECosmicTask") <<
"EcalUncalibratedRecHitCollection not available";
223 if ( ism >= 1 && ism <= 9 ) ix = 101 - ix;
225 float xix = ix - 0.5;
226 float xiy = iy - 0.5;
230 if ( ism >= 1 && ism <= 9 ) iz = -1;
231 if ( ism >= 10 && ism <= 18 ) iz = +1;
244 float xval = hitItr->energy();
245 if ( xval <= 0. ) xval = 0.0;
252 for(
int icry=0; icry<9; ++icry) {
253 unsigned int row = icry/3;
254 unsigned int column = icry%3;
255 int icryX =
id.ix()+column-1;
256 int icryY =
id.iy()+row-1;
259 if ( hits->find(id3x3) != hits->end() ) {
260 float neighbourEnergy = hits->find(id3x3)->energy();
261 e3x3 += neighbourEnergy;
262 if ( neighbourEnergy > xval ) isSeed =
false;
268 float jitter = -999.;
271 if ( uhits->find(
id) != uhits->end() ) {
272 jitter = uhits->find(
id)->jitter();
291 edm::LogWarning(
"EECosmicTask") <<
"EcalRecHitCollection not available";
edm::EDGetTokenT< EcalUncalibratedRecHitCollection > EcalUncalibratedRecHitCollection_
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)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Some "id" conversions.
std::vector< EcalDCCHeaderBlock >::const_iterator const_iterator
void beginJob(void)
BeginJob.
static int ix0EE(const unsigned ism)
static int iy0EE(const unsigned ism)
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
virtual ~EECosmicTask()
Destructor.
MonitorElement * meSelMap_[18]
void removeElement(const std::string &name)
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
edm::EDGetTokenT< EcalRecHitCollection > EcalRecHitCollection_
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
MonitorElement * meSpectrum_[2][18]
void cleanup(void)
Cleanup.
static unsigned iSM(const unsigned ism, const EcalSubdetector subdet)
edm::EDGetTokenT< EcalRawDataCollection > EcalRawDataCollection_
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")