60 OccupancyEB_ = ibooker.
book2D(
"OccupancyEB_",
"OccupancyEB", 360, 1, 361, 171, -85, 86);
61 OccupancyEEP_ = ibooker.
book2D(
"OccupancyEEP_",
"Occupancy EE Plus", 100, 1, 101, 100, 1, 101);
62 OccupancyEEM_ = ibooker.
book2D(
"OccupancyEEM_",
"Occupancy EE Minus", 100, 1, 101, 100, 1, 101);
76 int numberOfElectrons = 0;
77 int numberOfAssociatedHits = 0;
93 numberOfElectrons = pElectrons->size();
94 for (reco::GsfElectronCollection::const_iterator eleIt = pElectrons->begin(); eleIt != pElectrons->end(); ++eleIt) {
96 numberOfAssociatedHits += eleIt->superCluster()->size();
113 numberOfHits += rhEB->
size();
114 for (itb = rhEB->
begin(); itb != rhEB->
end(); ++itb) {
120 numberOfHits += rhEE->
size();
121 for (itb = rhEE->
begin(); itb != rhEE->
end(); ++itb) {
123 if (
id.
zside() > 0) {
126 else if (
id.
zside() < 0) {
132 if (numberOfElectrons)
145 double currEnergy = 0.;
147 for (std::vector<std::pair<DetId, float>>::const_iterator idsIt = v1.begin(); idsIt != v1.end(); ++idsIt) {
150 itrechit = EBhits->
find((*idsIt).first);
151 if (itrechit == EBhits->
end()) {
152 edm::LogInfo(
"reading") <<
"[findMaxHit] rechit not found! ";
156 if (itrechit->energy() > currEnergy) {
157 currEnergy = itrechit->energy();
158 maxHit = (*idsIt).first;
162 itrechit = EEhits->
find((*idsIt).first);
163 if (itrechit == EEhits->
end()) {
164 edm::LogInfo(
"reading") <<
"[findMaxHit] rechit not found! ";
169 if (itrechit->energy() > currEnergy) {
170 currEnergy = itrechit->energy();
171 maxHit = (*idsIt).first;
MonitorElement * ESCoP_
ESCoP.
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX)
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
void setCurrentFolder(std::string const &fullpath)
MonitorElement * LocalOccupancyEE_
DetId findMaxHit(const std::vector< std::pair< DetId, float >> &, const EcalRecHitCollection *, const EcalRecHitCollection *)
find the MOX
std::vector< EcalRecHit >::const_iterator const_iterator
std::string fileName_
Output file name if required.
~DQMSourceEleCalib() override
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.
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
int ieta() const
get the crystal ieta
MonitorElement * OccupancyEEP_
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
T const * product() const
MonitorElement * OccupancyEB_
Occupancy.
iterator find(key_type k)
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
MonitorElement * ElectronsNumber_
Number of electrons.
const_iterator begin() const
MonitorElement * LocalOccupancyEB_
constexpr Detector det() const
get the detector field from this detid
edm::EDGetTokenT< reco::GsfElectronCollection > productMonitoredElectrons_
electrons to monitor