72 title=
"Basic Clusters EE vs. PV";
78 title=
"Super Clusters EB vs. PV";
84 title=
"Super Clusters EE vs. PV";
89 prof_name=
"scEtEB_PV";
90 title=
"Super Clusters Et EB vs. PV";
96 prof_name=
"scEtEE_PV";
97 title=
"Super Clusters Et EE vs. PV";
102 prof_name=
"recHitEtEB_PV";
103 title=
"Reconstructed Hit Et EB vs. PV";
108 prof_name=
"recHitEtEE_PV";
109 title=
"Reconstructed Hit Et EE vs. PV";
114 prof_name=
"emIso_PV";
115 title=
"EM Isolation vs. PV";
121 title=
"EM Isolation";
126 prof_name=
"scHitEtEB";
127 title=
"Super Cluster Hit Et EB";
132 prof_name=
"scHitEtEE";
133 title=
"Super Cluster Hit Et EE";
180 prof_name=
"scSigmaIetaIeta_EB";
181 title=
"Super Cluster sigmaIetaIeta EB";
186 prof_name=
"scSigmaIetaIeta_EE";
187 title=
"Super Cluster sigmaIetaIeta EE";
193 prof_name=
"scSigmaIetaIphi_EB";
194 title=
"Super Cluster sigmaIetaIphi EB";
199 prof_name=
"scSigmaIetaIphi_EE";
200 title=
"Super Cluster sigmaIetaIphi EE";
220 prof_name=
"recHitEtEB";
221 title=
"RecHit Et EB";
226 prof_name=
"recHitEtEE";
227 title=
"RecHit Et EE";
241 if ( ! PVCollection_h.
isValid() ) {
247 if( !electronCollection_h.
isValid()){
255 if ( ! basicClusters_EB_h.
isValid() ) {
259 bcEB_PV->
Fill(PVCollection_h->size(), basicClusters_EB_h->size());
265 if ( ! basicClusters_EE_h.
isValid() ) {
269 bcEE_PV->
Fill(PVCollection_h->size(), basicClusters_EE_h->size());
275 if ( ! basicClusters_h.
isValid() ) {
309 if ( ! superClusters_EE_h.
isValid() ) {
315 if(electronCollection_h.
isValid()){
316 for (reco::GsfElectronCollection::const_iterator recoElectron = electronCollection_h->begin ();
317 recoElectron != electronCollection_h->end ();
319 double IsoEcal =recoElectron->dr03EcalRecHitSumEt();
326 scEE_PV->
Fill(PVCollection_h->size(), superClusters_EE_h->size());
328 for (reco::SuperClusterCollection::const_iterator itSC = superClusters_EE_h->begin();
329 itSC != superClusters_EE_h->end();
331 double scEE_Et= itSC -> energy() *
sin(2.*atan(
exp(- itSC->position().eta() )));
344 std::vector<float> cov = EcalClusterTools::localCovariances(seedCluster, eeRecHits, p_topology);
346 float sigmaIetaIphi = cov[1];
349 float e3x3 = EcalClusterTools::e3x3(seedCluster, eeRecHits, p_topology);
350 float r9 = e3x3 / itSC->rawEnergy();
368 if ( ! superClusters_EB_h.
isValid() ) {
371 scEB_PV->
Fill(PVCollection_h->size(), superClusters_EB_h->size());
373 for (reco::SuperClusterCollection::const_iterator itSC = superClusters_EB_h->begin();
374 itSC != superClusters_EB_h->end();
376 double scEB_Et= itSC -> energy() *
sin(2.*atan(
exp(- itSC->position().eta() )));
389 std::vector<float> cov = EcalClusterTools::localCovariances(seedCluster, ebRecHits, p_topology);
391 float sigmaIetaIphi = cov[1];
394 float e3x3 = EcalClusterTools::e3x3(seedCluster, ebRecHits, p_topology);
395 float r9 = e3x3 / itSC->rawEnergy();
408 double RecHitEt_EB=0;
411 itr != RecHitsEB->
end () ;
416 RecHitEt_EB += itr -> energy() *
sin(position.
theta()) ;
424 double RecHitEt_EE=0;
427 itr != RecHitsEE->
end () ;
430 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_
#define DEFINE_FWK_MODULE(type)
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
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::EDGetTokenT< reco::SuperClusterCollection > superClusterCollection_EB_
Geom::Theta< T > theta() const
void analyze(const edm::Event &, const edm::EventSetup &) override
Analyze.
MonitorElement * emIso_PV
EcalPileUpDepMonitor(const edm::ParameterSet &ps)
Constructor.
MonitorElement * recHitEtEB_PV
MonitorElement * scSigmaIetaIphi_EE
MonitorElement * book1D(Args &&...args)
const_iterator end() const
void setCurrentFolder(const std::string &fullpath)
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_