104 int numberOfElectrons=0;
105 int numberOfAssociatedHits = 0;
121 numberOfElectrons = pElectrons->size();
122 for (reco::GsfElectronCollection::const_iterator eleIt = pElectrons->begin();
123 eleIt!= pElectrons->end(); ++eleIt){
125 numberOfAssociatedHits+= eleIt->superCluster()->size();
128 if (!Max.
det())
continue;
143 numberOfHits+= rhEB->size();
144 for(itb=rhEB->begin(); itb!=rhEB->end(); ++itb){
151 numberOfHits+= rhEE->size();
152 for (itb = rhEE->begin(); itb!=rhEE->end(); ++itb){
157 else if (
id.zside()<0){
194 double currEnergy = 0. ;
196 for (std::vector<std::pair<DetId,float> >::const_iterator idsIt = v1.begin () ;
197 idsIt != v1.end () ; ++idsIt)
203 itrechit = EBhits->
find ((*idsIt).first) ;
204 if (itrechit == EBhits->
end () )
207 <<
"[findMaxHit] rechit not found! " ;
211 if (itrechit->energy () > currEnergy)
213 currEnergy = itrechit->energy () ;
214 maxHit= (*idsIt).first ;
220 itrechit = EEhits->
find ((*idsIt).first) ;
221 if (itrechit == EEhits->
end () )
224 <<
"[findMaxHit] rechit not found! " ;
229 if (itrechit->energy () > currEnergy)
231 currEnergy=itrechit->energy () ;
232 maxHit= (*idsIt).first ;
271 elementId.
ix () -
ics ,
272 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.
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
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::InputTag productMonitoredElectrons_
electrons to monitor
int iphi() const
get the crystal iphi
edm::InputTag productMonitoredEE_
object to monitor
MonitorElement * OccupancyEEM_
bool saveToFile_
Write to file.
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) ...
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
DQMSourceEleCalib(const edm::ParameterSet &)
void fillAroundEndcap(const EcalRecHitCollection *, int, int)
MonitorElement * recHitsPerElectron_
Number of recHits per electron.
edm::InputTag productMonitoredEB_
object to monitor
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)
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_