|
|
Go to the documentation of this file.
61 OccupancyEB_ = ibooker.
book2D(
"OccupancyEB_",
"OccupancyEB", 360, 1, 361, 171, -85, 86);
62 OccupancyEEP_ = ibooker.
book2D(
"OccupancyEEP_",
"Occupancy EE Plus", 100, 1, 101, 100, 1, 101);
63 OccupancyEEM_ = ibooker.
book2D(
"OccupancyEEM_",
"Occupancy EE Minus", 100, 1, 101, 100, 1, 101);
77 int numberOfElectrons = 0;
78 int numberOfAssociatedHits = 0;
94 numberOfElectrons = pElectrons->size();
95 for (reco::GsfElectronCollection::const_iterator eleIt = pElectrons->begin(); eleIt != pElectrons->end(); ++eleIt) {
97 numberOfAssociatedHits += eleIt->superCluster()->size();
114 numberOfHits += rhEB->
size();
115 for (itb = rhEB->
begin(); itb != rhEB->
end(); ++itb) {
121 numberOfHits += rhEE->
size();
122 for (itb = rhEE->
begin(); itb != rhEE->
end(); ++itb) {
124 if (
id.
zside() > 0) {
127 else if (
id.
zside() < 0) {
133 if (numberOfElectrons)
146 double currEnergy = 0.;
148 for (
std::vector<std::pair<DetId, float>>::const_iterator idsIt = v1.begin(); idsIt != v1.end(); ++idsIt) {
151 itrechit = EBhits->
find((*idsIt).first);
152 if (itrechit == EBhits->
end()) {
153 edm::LogInfo(
"reading") <<
"[findMaxHit] rechit not found! ";
157 if (itrechit->energy() > currEnergy) {
158 currEnergy = itrechit->energy();
163 itrechit = EEhits->
find((*idsIt).first);
164 if (itrechit == EEhits->
end()) {
165 edm::LogInfo(
"reading") <<
"[findMaxHit] rechit not found! ";
170 if (itrechit->energy() > currEnergy) {
171 currEnergy = itrechit->energy();
181 EBDetId elementId = elem->id();
191 EEDetId elementId = elem->id();
std::string fileName_
Output file name if required.
DetId findMaxHit(const std::vector< std::pair< DetId, float >> &, const EcalRecHitCollection *, const EcalRecHitCollection *)
find the MOX
MonitorElement * LocalOccupancyEE_
MonitorElement * ElectronsNumber_
Number of electrons.
int ieta() const
get the crystal ieta
std::vector< EcalRecHit >::const_iterator const_iterator
~DQMSourceEleCalib() override
T const * product() const
MonitorElement * LocalOccupancyEB_
edm::EDGetTokenT< EcalRecHitCollection > productMonitoredEE_
object to monitor
MonitorElement * OccupancyEEM_
bool saveToFile_
Write to file.
virtual void setCurrentFolder(std::string const &fullpath)
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< EcalRecHitCollection > productMonitoredEB_
object to monitor
Log< level::Info, false > LogInfo
MonitorElement * HitsVsAssociatedHits_
recHits over associated recHits
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void analyze(const edm::Event &e, const edm::EventSetup &c) override
const_iterator begin() const
MonitorElement * recHitsPerElectron_
Number of recHits per electron.
MonitorElement * OccupancyEB_
Occupancy.
const_iterator end() const
iterator find(key_type k)
edm::EDGetTokenT< reco::GsfElectronCollection > productMonitoredElectrons_
electrons to monitor
std::string folderName_
DQM folder name.
DQMSourceEleCalib(const edm::ParameterSet &)
void fillAroundEndcap(const EcalRecHitCollection *, int, int)
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
unsigned int prescaleFactor_
Monitor every prescaleFactor_ events.
MonitorElement * OccupancyEEP_
T getParameter(std::string const &) const
MonitorElement * ESCoP_
ESCoP.
void fillAroundBarrel(const EcalRecHitCollection *, int, int)
fills local occupancy graphs
int iphi() const
get the crystal iphi
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())