94 int numberOfElectrons=0;
95 int numberOfAssociatedHits = 0;
111 numberOfElectrons = pElectrons->size();
112 for (reco::GsfElectronCollection::const_iterator eleIt = pElectrons->begin();
113 eleIt!= pElectrons->end(); ++eleIt){
115 numberOfAssociatedHits+= eleIt->superCluster()->size();
118 if (!Max.
det())
continue;
133 numberOfHits+= rhEB->
size();
134 for(itb=rhEB->
begin(); itb!=rhEB->
end(); ++itb){
141 numberOfHits+= rhEE->
size();
142 for (itb = rhEE->
begin(); itb!=rhEE->
end(); ++itb){
147 else if (
id.
zside()<0){
174 double currEnergy = 0. ;
176 for (std::vector<std::pair<DetId,float> >::const_iterator idsIt = v1.begin () ;
177 idsIt != v1.end () ; ++idsIt)
183 itrechit = EBhits->
find ((*idsIt).first) ;
184 if (itrechit == EBhits->
end () )
187 <<
"[findMaxHit] rechit not found! " ;
191 if (itrechit->energy () > currEnergy)
193 currEnergy = itrechit->energy () ;
194 maxHit= (*idsIt).first ;
200 itrechit = EEhits->
find ((*idsIt).first) ;
201 if (itrechit == EEhits->
end () )
204 <<
"[findMaxHit] rechit not found! " ;
209 if (itrechit->energy () > currEnergy)
211 currEnergy=itrechit->energy () ;
212 maxHit= (*idsIt).first ;
251 elementId.
ix () - ics ,
252 elementId.
iy () - ips ,
MonitorElement * ESCoP_
ESCoP.
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void analyze(const edm::Event &e, const edm::EventSetup &c) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * LocalOccupancyEE_
std::vector< EcalRecHit >::const_iterator const_iterator
std::string fileName_
Output file name if required.
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.
MonitorElement * book1D(Args &&...args)
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.
def elem(elemtype, innerHTML='', html_class='', kwargs)
const_iterator end() const
unsigned int prescaleFactor_
Monitor every prescaleFactor_ events.
void fillAroundBarrel(const EcalRecHitCollection *, int, int)
fills local occupancy graphs
void setCurrentFolder(const std::string &fullpath)
T const * product() const
MonitorElement * OccupancyEB_
Occupancy.
MonitorElement * book2D(Args &&...args)
DetId findMaxHit(const std::vector< std::pair< DetId, float > > &, const EcalRecHitCollection *, const EcalRecHitCollection *)
find the MOX
return(e1-e2)*(e1-e2)+dp *dp
iterator find(key_type k)
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context) override
MonitorElement * ElectronsNumber_
Number of electrons.
Detector det() const
get the detector field from this detid
const_iterator begin() const
MonitorElement * LocalOccupancyEB_
edm::EDGetTokenT< reco::GsfElectronCollection > productMonitoredElectrons_
electrons to monitor
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override