45 for (
int i = 0;
i < 36;
i++) {
82 for (
int i = 0;
i < 36;
i++) {
100 for (
int i = 0;
i < 36;
i++) {
102 meSelMap_[
i] =
dqmStore_->
bookProfile2D(name, name, 85, 0., 85., 20, 0., 20., 4096, 0., 4096.,
"s");
109 for (
int i = 0;
i < 36;
i++) {
124 if ( !
init_ )
return;
130 for (
int i = 0;
i < 36;
i++) {
136 for (
int i = 0;
i < 36;
i++) {
142 for (
int i = 0;
i < 36;
i++) {
168 for (
int i=0;
i<36;
i++) runType[
i] = -1;
180 runType[ism-1] = dcchItr->getRunType();
193 isData =
false; enable =
true;
194 edm::LogWarning(
"EBCosmicTask") <<
"EcalRawDataCollection not available";
198 if ( ! enable )
return;
208 int nebh = hits->size();
209 LogDebug(
"EBCosmicTask") <<
"event " <<
ievt_ <<
" hits collection size " << nebh;
214 edm::LogWarning(
"EBCosmicTask") <<
"EcalUncalibratedRecHitCollection not available";
222 int ie = (ic-1)/20 + 1;
223 int ip = (ic-1)%20 + 1;
227 float xie = ie - 0.5;
228 float xip = ip - 0.5;
241 float xval = hitItr->energy();
242 if ( xval <= 0. ) xval = 0.0;
249 for(
int icry=0; icry<9; ++icry) {
250 unsigned int row = icry/3;
251 unsigned int column = icry%3;
252 int icryEta =
id.ieta()+column-1;
253 int icryPhi =
id.iphi()+row-1;
256 if ( hits->find(id3x3) != hits->end() ) {
257 float neighbourEnergy = hits->find(id3x3)->energy();
258 e3x3 += neighbourEnergy;
259 if ( neighbourEnergy > xval ) isSeed =
false;
265 float jitter = -999.;
268 if ( uhits->find(
id) != uhits->end() ) {
269 jitter = uhits->find(
id)->jitter();
288 edm::LogWarning(
"EBCosmicTask") <<
"EcalRecHitCollection not available";
edm::EDGetTokenT< EcalUncalibratedRecHitCollection > EcalUncalibratedRecHitCollection_
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
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.
static std::string sEB(const unsigned ism)
std::vector< EcalDCCHeaderBlock >::const_iterator const_iterator
void cleanup(void)
Cleanup.
static bool validDetId(int i, int j)
check if a valid index combination
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
void beginJob(void)
BeginJob.
edm::EDGetTokenT< EcalRecHitCollection > EcalRecHitCollection_
void removeElement(const std::string &name)
EBCosmicTask(const edm::ParameterSet &ps)
Constructor.
edm::EDGetTokenT< EcalRawDataCollection > EcalRawDataCollection_
MonitorElement * meSelMap_[36]
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
MonitorElement * meCutMap_[36]
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.
static unsigned iSM(const unsigned ism, const EcalSubdetector subdet)
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")