121 OccupancyEB_ = ibooker.
book2D(
"OccupancyEB_",
"OccupancyEB", 360, 1, 361, 171, -85, 86);
122 OccupancyEEP_ = ibooker.
book2D(
"OccupancyEEP_",
"Occupancy EE Plus", 100, 1, 101, 100, 1, 101);
123 OccupancyEEM_ = ibooker.
book2D(
"OccupancyEEM_",
"Occupancy EE Minus", 100, 1, 101, 100, 1, 101);
136 int numberOfHits = 0;
137 int numberOfElectrons = 0;
138 int numberOfAssociatedHits = 0;
154 numberOfElectrons = pElectrons->size();
155 for (reco::GsfElectronCollection::const_iterator eleIt = pElectrons->begin(); eleIt != pElectrons->end(); ++eleIt) {
157 numberOfAssociatedHits += eleIt->superCluster()->size();
174 numberOfHits += rhEB->
size();
175 for (itb = rhEB->
begin(); itb != rhEB->
end(); ++itb) {
181 numberOfHits += rhEE->
size();
182 for (itb = rhEE->
begin(); itb != rhEE->
end(); ++itb) {
184 if (
id.
zside() > 0) {
187 else if (
id.
zside() < 0) {
193 if (numberOfElectrons)
206 double currEnergy = 0.;
208 for (
std::vector<std::pair<DetId, float>>::const_iterator idsIt = v1.begin(); idsIt != v1.end(); ++idsIt) {
211 itrechit = EBhits->
find((*idsIt).first);
212 if (itrechit == EBhits->
end()) {
213 edm::LogInfo(
"reading") <<
"[findMaxHit] rechit not found! ";
217 if (itrechit->energy() > currEnergy) {
218 currEnergy = itrechit->energy();
223 itrechit = EEhits->
find((*idsIt).first);
224 if (itrechit == EEhits->
end()) {
225 edm::LogInfo(
"reading") <<
"[findMaxHit] rechit not found! ";
230 if (itrechit->energy() > currEnergy) {
231 currEnergy = itrechit->energy();
241 EBDetId elementId = elem->id();
251 EEDetId elementId = elem->id();
MonitorElement * ESCoP_
ESCoP.
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
T getParameter(std::string const &) const
virtual void setCurrentFolder(std::string const &fullpath)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
int iphi() const
get the crystal iphi
T const * product() const
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 ieta() const
get the crystal ieta
T getUntrackedParameter(std::string const &, T const &) const
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.
#define DEFINE_FWK_MODULE(type)
const_iterator begin() const
MonitorElement * OccupancyEEP_
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.
Log< level::Info, false > LogInfo
void fillAroundBarrel(const EcalRecHitCollection *, int, int)
fills local occupancy graphs
MonitorElement * OccupancyEB_
Occupancy.
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
iterator find(key_type k)
MonitorElement * ElectronsNumber_
Number of electrons.
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * LocalOccupancyEB_
edm::EDGetTokenT< reco::GsfElectronCollection > productMonitoredElectrons_
electrons to monitor