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";
239 if ( ! PVCollection_h.
isValid() ) {
245 if( !electronCollection_h.
isValid()){
253 if ( ! basicClusters_EB_h.
isValid() ) {
257 bcEB_PV->
Fill(PVCollection_h->size(), basicClusters_EB_h->size());
263 if ( ! basicClusters_EE_h.
isValid() ) {
267 bcEE_PV->
Fill(PVCollection_h->size(), basicClusters_EE_h->size());
273 if ( ! basicClusters_h.
isValid() ) {
307 if ( ! superClusters_EE_h.
isValid() ) {
313 if(electronCollection_h.
isValid()){
314 for (reco::GsfElectronCollection::const_iterator recoElectron = electronCollection_h->begin ();
315 recoElectron != electronCollection_h->end ();
317 double IsoEcal =recoElectron->dr03EcalRecHitSumEt();
324 scEE_PV->
Fill(PVCollection_h->size(), superClusters_EE_h->size());
326 for (reco::SuperClusterCollection::const_iterator itSC = superClusters_EE_h->begin();
327 itSC != superClusters_EE_h->end();
329 double scEE_Et= itSC -> energy() *
sin(2.*atan(
exp(- itSC->position().eta() )));
342 std::vector<float> cov = EcalClusterTools::localCovariances(seedCluster, eeRecHits, p_topology);
344 float sigmaIetaIphi = cov[1];
347 float e3x3 = EcalClusterTools::e3x3(seedCluster, eeRecHits, p_topology);
348 float r9 = e3x3 / itSC->rawEnergy();
366 if ( ! superClusters_EB_h.
isValid() ) {
369 scEB_PV->
Fill(PVCollection_h->size(), superClusters_EB_h->size());
371 for (reco::SuperClusterCollection::const_iterator itSC = superClusters_EB_h->begin();
372 itSC != superClusters_EB_h->end();
374 double scEB_Et= itSC -> energy() *
sin(2.*atan(
exp(- itSC->position().eta() )));
387 std::vector<float> cov = EcalClusterTools::localCovariances(seedCluster, ebRecHits, p_topology);
389 float sigmaIetaIphi = cov[1];
392 float e3x3 = EcalClusterTools::e3x3(seedCluster, ebRecHits, p_topology);
393 float r9 = e3x3 / itSC->rawEnergy();
406 double RecHitEt_EB=0;
409 itr != RecHitsEB->
end () ;
414 RecHitEt_EB += itr -> energy() *
sin(position.
theta()) ;
422 double RecHitEt_EE=0;
425 itr != RecHitsEE->
end () ;
428 RecHitEt_EE += itr -> energy() *
sin(position.
theta()) ;
MonitorElement * recHitEtEE_PV
MonitorElement * recHitEtEB
~EcalPileUpDepMonitor() override
Destructor.
T getParameter(std::string const &) const
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
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]
const CaloCellGeometry * getGeometry(const DetId &id) const
Get the cell geometry of a given detector id.
MonitorElement * scSigmaIetaIeta_EB
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_