100 int numberOfElectrons=0;
101 int numberOfAssociatedHits = 0;
117 numberOfElectrons = pElectrons->size();
118 for (reco::GsfElectronCollection::const_iterator eleIt = pElectrons->begin();
119 eleIt!= pElectrons->end(); ++eleIt){
121 numberOfAssociatedHits+= eleIt->superCluster()->size();
124 if (!Max.
det())
continue;
139 numberOfHits+= rhEB->size();
140 for(itb=rhEB->begin(); itb!=rhEB->end(); ++itb){
147 numberOfHits+= rhEE->size();
148 for (itb = rhEE->begin(); itb!=rhEE->end(); ++itb){
153 else if (
id.
zside()<0){
190 double currEnergy = 0. ;
192 for (std::vector<std::pair<DetId,float> >::const_iterator idsIt = v1.begin () ;
193 idsIt != v1.end () ; ++idsIt)
199 itrechit = EBhits->
find ((*idsIt).first) ;
200 if (itrechit == EBhits->
end () )
203 <<
"[findMaxHit] rechit not found! " ;
207 if (itrechit->energy () > currEnergy)
209 currEnergy = itrechit->energy () ;
210 maxHit= (*idsIt).first ;
216 itrechit = EEhits->
find ((*idsIt).first) ;
217 if (itrechit == EEhits->
end () )
220 <<
"[findMaxHit] rechit not found! " ;
225 if (itrechit->energy () > currEnergy)
227 currEnergy=itrechit->energy () ;
228 maxHit= (*idsIt).first ;
267 elementId.
ix () -
ics ,
268 elementId.
iy () - ips ,
MonitorElement * ESCoP_
ESCoP.
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.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
MonitorElement * LocalOccupancyEE_
std::vector< EcalRecHit >::const_iterator const_iterator
std::string fileName_
Output file name if required.
void beginRun(const edm::Run &r, const edm::EventSetup &c)
edm::EDGetTokenT< EcalRecHitCollection > productMonitoredEE_
object to monitor
int iphi() const
get the crystal iphi
MonitorElement * OccupancyEEM_
bool saveToFile_
Write to file.
edm::EDGetTokenT< EcalRecHitCollection > productMonitoredEB_
object to monitor
MonitorElement * HitsVsAssociatedHits_
recHits over associated recHits
std::string folderName_
DQM folder name.
void endRun(const edm::Run &r, const edm::EventSetup &c)
int ieta() const
get the crystal ieta
MonitorElement * OccupancyEEP_
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
DQMSourceEleCalib(const edm::ParameterSet &)
void fillAroundEndcap(const EcalRecHitCollection *, int, int)
MonitorElement * recHitsPerElectron_
Number of recHits per electron.
const_iterator end() const
unsigned int prescaleFactor_
Monitor every prescaleFactor_ events.
void analyze(const edm::Event &e, const edm::EventSetup &c)
void fillAroundBarrel(const EcalRecHitCollection *, int, int)
fills local occupancy graphs
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
MonitorElement * OccupancyEB_
Occupancy.
DetId findMaxHit(const std::vector< std::pair< DetId, float > > &, const EcalRecHitCollection *, const EcalRecHitCollection *)
find the MOX
T const * product() const
iterator find(key_type k)
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, const uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE", const bool resetMEsAfterWriting=false)
MonitorElement * ElectronsNumber_
Number of electrons.
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Detector det() const
get the detector field from this detid
void setCurrentFolder(const std::string &fullpath)
const_iterator begin() const
MonitorElement * LocalOccupancyEB_
edm::EDGetTokenT< reco::GsfElectronCollection > productMonitoredElectrons_
electrons to monitor