50 for (
int i = 0;
i < 36;
i++) {
87 for (
int i = 0;
i < 36;
i++) {
105 for (
int i = 0;
i < 36;
i++) {
107 meSelMap_[
i] =
dqmStore_->
bookProfile2D(name, name, 85, 0., 85., 20, 0., 20., 4096, 0., 4096.,
"s");
114 for (
int i = 0;
i < 36;
i++) {
129 if ( !
init_ )
return;
135 for (
int i = 0;
i < 36;
i++) {
141 for (
int i = 0;
i < 36;
i++) {
147 for (
int i = 0;
i < 36;
i++) {
173 for (
int i=0;
i<36;
i++) runType[
i] = -1;
185 runType[ism-1] = dcchItr->getRunType();
198 isData =
false; enable =
true;
203 if ( ! enable )
return;
213 int nebh = hits->size();
214 LogDebug(
"EBCosmicTask") <<
"event " <<
ievt_ <<
" hits collection size " << nebh;
227 int ie = (ic-1)/20 + 1;
228 int ip = (ic-1)%20 + 1;
232 float xie = ie - 0.5;
233 float xip = ip - 0.5;
246 float xval = hitItr->energy();
247 if ( xval <= 0. ) xval = 0.0;
254 for(
int icry=0; icry<9; ++icry) {
255 unsigned int row = icry/3;
256 unsigned int column = icry%3;
257 int icryEta =
id.ieta()+column-1;
258 int icryPhi =
id.iphi()+row-1;
261 if ( hits->find(id3x3) != hits->end() ) {
262 float neighbourEnergy = hits->find(id3x3)->energy();
263 e3x3 += neighbourEnergy;
264 if ( neighbourEnergy > xval ) isSeed =
false;
270 float jitter = -999.;
273 if ( uhits->find(
id) != uhits->end() ) {
274 jitter = uhits->find(
id)->jitter();
static bool validDetId(int i, int j)
check if a valid index combination
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
static std::string sEB(const int ism)
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
void rmdir(const std::string &fullpath)
Some "id" conversions.
std::vector< T >::const_iterator const_iterator
void cleanup(void)
Cleanup.
edm::InputTag EcalRecHitCollection_
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
void beginJob(void)
BeginJob.
static int iSM(const int ism, const EcalSubdetector subdet)
edm::InputTag EcalUncalibratedRecHitCollection_
void removeElement(const std::string &name)
EBCosmicTask(const edm::ParameterSet &ps)
Constructor.
MonitorElement * meSelMap_[36]
std::string getName(Reflex::Type &cc)
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
MonitorElement * meCutMap_[36]
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
static const int ETAPHIMODE
int ic() const
get ECAL/crystal number inside SM
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
MonitorElement * meSpectrum_[2][36]
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
edm::InputTag EcalRawDataCollection_
static EcalSubdetector subDet(const EBDetId &id)
virtual ~EBCosmicTask()
Destructor.
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")