73 prof_name =
"bcEE_PV";
74 title =
"Basic Clusters EE vs. PV";
79 prof_name =
"scEB_PV";
80 title =
"Super Clusters EB vs. PV";
85 prof_name =
"scEE_PV";
86 title =
"Super Clusters EE vs. PV";
91 prof_name =
"scEtEB_PV";
92 title =
"Super Clusters Et EB vs. PV";
97 prof_name =
"scEtEE_PV";
98 title =
"Super Clusters Et EE vs. PV";
103 prof_name =
"recHitEtEB_PV";
104 title =
"Reconstructed Hit Et EB vs. PV";
109 prof_name =
"recHitEtEE_PV";
110 title =
"Reconstructed Hit Et EE vs. PV";
115 prof_name =
"emIso_PV";
116 title =
"EM Isolation vs. PV";
122 title =
"EM Isolation";
123 emIso = ibooker.
book1D(prof_name, title, 50, 0, 50);
127 prof_name =
"scHitEtEB";
128 title =
"Super Cluster Hit Et EB";
133 prof_name =
"scHitEtEE";
134 title =
"Super Cluster Hit Et EE";
179 prof_name =
"scSigmaIetaIeta_EB";
180 title =
"Super Cluster sigmaIetaIeta EB";
185 prof_name =
"scSigmaIetaIeta_EE";
186 title =
"Super Cluster sigmaIetaIeta EE";
192 prof_name =
"scSigmaIetaIphi_EB";
193 title =
"Super Cluster sigmaIetaIphi EB";
198 prof_name =
"scSigmaIetaIphi_EE";
199 title =
"Super Cluster sigmaIetaIphi EE";
207 r9_EB = ibooker.
book1D(prof_name, title, 50, 0, 1.5);
213 r9_EE = ibooker.
book1D(prof_name, title, 50, 0, 1.5);
219 prof_name =
"recHitEtEB";
220 title =
"RecHit Et EB";
225 prof_name =
"recHitEtEE";
226 title =
"RecHit Et EE";
238 if (!PVCollection_h.
isValid()) {
244 if (!electronCollection_h.
isValid()) {
252 if (!basicClusters_EB_h.
isValid()) {
256 bcEB_PV->
Fill(PVCollection_h->size(), basicClusters_EB_h->size());
262 if (!basicClusters_EE_h.
isValid()) {
266 bcEE_PV->
Fill(PVCollection_h->size(), basicClusters_EE_h->size());
271 if (!basicClusters_h.
isValid()) {
308 if (!superClusters_EE_h.
isValid()) {
314 if (electronCollection_h.
isValid()) {
315 for (reco::GsfElectronCollection::const_iterator recoElectron = electronCollection_h->begin();
316 recoElectron != electronCollection_h->end();
318 double IsoEcal = recoElectron->dr03EcalRecHitSumEt();
325 scEE_PV->
Fill(PVCollection_h->size(), superClusters_EE_h->size());
327 for (reco::SuperClusterCollection::const_iterator itSC = superClusters_EE_h->begin();
328 itSC != superClusters_EE_h->end();
330 double scEE_Et = itSC->energy() *
sin(2. * atan(
exp(-itSC->position().eta())));
343 std::vector<float> cov = EcalClusterTools::localCovariances(seedCluster, eeRecHits, p_topology);
345 float sigmaIetaIphi = cov[1];
347 float e3x3 = EcalClusterTools::e3x3(seedCluster, eeRecHits, p_topology);
348 float r9 = e3x3 / itSC->rawEnergy();
365 if (!superClusters_EB_h.
isValid()) {
368 scEB_PV->
Fill(PVCollection_h->size(), superClusters_EB_h->size());
370 for (reco::SuperClusterCollection::const_iterator itSC = superClusters_EB_h->begin();
371 itSC != superClusters_EB_h->end();
373 double scEB_Et = itSC->energy() *
sin(2. * atan(
exp(-itSC->position().eta())));
386 std::vector<float> cov = EcalClusterTools::localCovariances(seedCluster, ebRecHits, p_topology);
388 float sigmaIetaIphi = cov[1];
390 float e3x3 = EcalClusterTools::e3x3(seedCluster, ebRecHits, p_topology);
391 float r9 = e3x3 / itSC->rawEnergy();
403 double RecHitEt_EB = 0;
409 RecHitEt_EB += itr->energy() *
sin(position.
theta());
416 double RecHitEt_EE = 0;
420 RecHitEt_EE += itr->energy() *
sin(position.
theta());
MonitorElement * recHitEtEE_PV
MonitorElement * recHitEtEB
~EcalPileUpDepMonitor() override
Destructor.
T getParameter(std::string const &) const
MonitorElement * scEtEB_PV
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
edm::EDGetTokenT< reco::GsfElectronCollection > EleTag_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > basicClusterCollection_
MonitorElement * bookProfile(Args &&...args)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * scHitEtEE
edm::EDGetTokenT< EcalRecHitCollection > RecHitCollection_EE_
MonitorElement * scSigmaIetaIphi_EB
Sin< T >::type sin(const T &t)
MonitorElement * recHitEtEE
std::vector< EcalRecHit >::const_iterator const_iterator
edm::EDGetTokenT< EcalRecHitCollection > RecHitCollection_EB_
edm::EDGetTokenT< reco::VertexCollection > VertexCollection_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > basicClusterCollection_EB_
edm::ESHandle< CaloTopology > caloTop
MonitorElement * scHitEtEB
edm::EDGetTokenT< reco::SuperClusterCollection > superClusterCollection_EB_
Geom::Theta< T > theta() const
void analyze(const edm::Event &, const edm::EventSetup &) override
Analyze.
MonitorElement * emIso_PV
#define DEFINE_FWK_MODULE(type)
void setCurrentFolder(std::string const &fullpath)
EcalPileUpDepMonitor(const edm::ParameterSet &ps)
Constructor.
MonitorElement * recHitEtEB_PV
MonitorElement * scSigmaIetaIphi_EE
MonitorElement * book1D(Args &&...args)
const_iterator end() const
T const * product() const
MonitorElement * scSigmaIetaIeta_EE
edm::ESHandle< CaloGeometry > geomH
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * scEtEE_PV
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
static int position[264][3]
MonitorElement * scSigmaIetaIeta_EB
std::shared_ptr< const CaloCellGeometry > getGeometry(const DetId &id) const
Get the cell geometry of a given detector id.
bool isUninitialized() const
edm::EDGetTokenT< reco::SuperClusterCollection > superClusterCollection_EE_
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
T const * product() const
const_iterator begin() const
edm::EDGetTokenT< edm::View< reco::CaloCluster > > basicClusterCollection_EE_