CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Attributes
EcalPileUpDepMonitor Class Reference

#include <EcalPileUpDepMonitor.h>

Inheritance diagram for EcalPileUpDepMonitor:
DQMEDAnalyzer edm::one::EDProducer< edm::Accumulator, edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 EcalPileUpDepMonitor (const edm::ParameterSet &ps)
 Constructor. More...
 
 ~EcalPileUpDepMonitor () override
 Destructor. More...
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &ev, edm::EventSetup const &es) final
 
virtual void analyze (edm::Event const &, edm::EventSetup const &)
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
 DQMEDAnalyzer (DQMEDAnalyzer const &)=delete
 
 DQMEDAnalyzer (DQMEDAnalyzer &&)=delete
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) override
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) override
 
 ~DQMEDAnalyzer () override=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::Accumulator, edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
 ~ProducerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Protected Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 Analyze. More...
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void endLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &) override
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Private Attributes

edm::EDGetTokenT< edm::View< reco::CaloCluster > > basicClusterCollection_
 
edm::EDGetTokenT< edm::View< reco::CaloCluster > > basicClusterCollection_EB_
 
edm::EDGetTokenT< edm::View< reco::CaloCluster > > basicClusterCollection_EE_
 
MonitorElementbcEB_PV
 
MonitorElementbcEE_PV
 
edm::ESHandle< CaloTopologycaloTop
 
edm::EDGetTokenT< reco::GsfElectronCollectionEleTag_
 
MonitorElementemIso
 
MonitorElementemIso_PV
 
edm::ESHandle< CaloGeometrygeomH
 
MonitorElementr9_EB
 
MonitorElementr9_EE
 
edm::EDGetTokenT< EcalRecHitCollectionRecHitCollection_EB_
 
edm::EDGetTokenT< EcalRecHitCollectionRecHitCollection_EE_
 
MonitorElementrecHitEtEB
 
MonitorElementrecHitEtEB_PV
 
MonitorElementrecHitEtEE
 
MonitorElementrecHitEtEE_PV
 
MonitorElementscEB_PV
 
MonitorElementscEE_PV
 
MonitorElementscEtEB_PV
 
MonitorElementscEtEE_PV
 
MonitorElementscHitEtEB
 
MonitorElementscHitEtEE
 
MonitorElementscSigmaIetaIeta_EB
 
MonitorElementscSigmaIetaIeta_EE
 
MonitorElementscSigmaIetaIphi_EB
 
MonitorElementscSigmaIetaIphi_EE
 
edm::EDGetTokenT< reco::SuperClusterCollectionsuperClusterCollection_EB_
 
edm::EDGetTokenT< reco::SuperClusterCollectionsuperClusterCollection_EE_
 
edm::EDGetTokenT< reco::VertexCollectionVertexCollection_
 

Additional Inherited Members

- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >>
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 26 of file EcalPileUpDepMonitor.h.

Constructor & Destructor Documentation

EcalPileUpDepMonitor::EcalPileUpDepMonitor ( const edm::ParameterSet ps)

Constructor.

Definition at line 33 of file EcalPileUpDepMonitor.cc.

References basicClusterCollection_, basicClusterCollection_EB_, basicClusterCollection_EE_, edm::EDConsumerBase::consumes(), EleTag_, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), edm::InputTag::label(), RecHitCollection_EB_, RecHitCollection_EE_, superClusterCollection_EB_, superClusterCollection_EE_, and VertexCollection_.

34 {
35  VertexCollection_ = consumes<reco::VertexCollection>(ps.getParameter<edm::InputTag>("VertexCollection"));
36 
37  if(ps.existsAs<edm::InputTag>("basicClusterCollection") && ps.getParameter<edm::InputTag>("basicClusterCollection").label() != "")
39  else{
40  basicClusterCollection_EE_ = consumes<edm::View<reco::CaloCluster> >(ps.getParameter<edm::InputTag>("basicClusterCollection_EE"));
41  basicClusterCollection_EB_ = consumes<edm::View<reco::CaloCluster> >(ps.getParameter<edm::InputTag>("basicClusterCollection_EB"));
42  }
43  superClusterCollection_EB_ = consumes<reco::SuperClusterCollection>(ps.getParameter<edm::InputTag>("superClusterCollection_EB"));
44  superClusterCollection_EE_ = consumes<reco::SuperClusterCollection>(ps.getParameter<edm::InputTag>("superClusterCollection_EE"));
45 
46  RecHitCollection_EB_ = consumes<EcalRecHitCollection>(ps.getParameter<edm::InputTag>("RecHitCollection_EB"));
47  RecHitCollection_EE_ = consumes<EcalRecHitCollection>(ps.getParameter<edm::InputTag>("RecHitCollection_EE"));
48  EleTag_ = consumes<reco::GsfElectronCollection>(ps.getParameter<edm::InputTag>("EleTag"));
49 }
T getParameter(std::string const &) const
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:186
edm::EDGetTokenT< reco::GsfElectronCollection > EleTag_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > basicClusterCollection_
edm::EDGetTokenT< EcalRecHitCollection > RecHitCollection_EE_
edm::EDGetTokenT< EcalRecHitCollection > RecHitCollection_EB_
edm::EDGetTokenT< reco::VertexCollection > VertexCollection_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > basicClusterCollection_EB_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::EDGetTokenT< reco::SuperClusterCollection > superClusterCollection_EB_
std::string const & label() const
Definition: InputTag.h:36
edm::EDGetTokenT< reco::SuperClusterCollection > superClusterCollection_EE_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > basicClusterCollection_EE_
EcalPileUpDepMonitor::~EcalPileUpDepMonitor ( )
override

Destructor.

Definition at line 51 of file EcalPileUpDepMonitor.cc.

52 {
53 }

Member Function Documentation

void EcalPileUpDepMonitor::analyze ( const edm::Event e,
const edm::EventSetup  
)
overrideprotected

Analyze.

recoElectron->et()

Definition at line 233 of file EcalPileUpDepMonitor.cc.

References basicClusterCollection_, basicClusterCollection_EB_, basicClusterCollection_EE_, bcEB_PV, bcEE_PV, edm::SortedCollection< T, SORT >::begin(), caloTop, reco::CaloID::DET_ECAL_BARREL, reco::CaloID::DET_ECAL_ENDCAP, EleTag_, emIso, emIso_PV, edm::SortedCollection< T, SORT >::end(), JetChargeProducer_cfi::exp, MonitorElement::Fill(), relativeConstraints::geom, geomH, edm::Event::getByToken(), CaloGeometry::getGeometry(), edm::EDGetTokenT< T >::isUninitialized(), edm::HandleBase::isValid(), position, edm::Handle< T >::product(), edm::ESHandle< T >::product(), electrons_cff::r9, r9_EB, r9_EE, RecHitCollection_EB_, RecHitCollection_EE_, recHitEtEB, recHitEtEB_PV, recHitEtEE, recHitEtEE_PV, scEB_PV, scEE_PV, scEtEB_PV, scEtEE_PV, scHitEtEB, scHitEtEE, scSigmaIetaIeta_EB, scSigmaIetaIeta_EE, scSigmaIetaIphi_EB, scSigmaIetaIphi_EE, funct::sin(), mathSSE::sqrt(), superClusterCollection_EB_, superClusterCollection_EE_, PV3DBase< T, PVType, FrameType >::theta(), and VertexCollection_.

234 {
235 
236  const CaloGeometry* geom = geomH.product();
237  //Vertex collection:
238  //-----------------------------------------
240  e.getByToken(VertexCollection_,PVCollection_h);
241  if ( ! PVCollection_h.isValid() ) {
242  edm::LogWarning("VertexCollection") << "VertexCollection not found";
243  }
244  //-----------------gsfElectrons -------------------------
245  edm::Handle<reco::GsfElectronCollection> electronCollection_h;
246  e.getByToken(EleTag_, electronCollection_h);
247  if( !electronCollection_h.isValid()){
248  edm::LogWarning("EBRecoSummary") << "Electrons not found";
249  }
250 
252  //----------------- Basic Cluster Collection Ecal Barrel ---------
253  edm::Handle<edm::View<reco::CaloCluster> > basicClusters_EB_h;
254  e.getByToken( basicClusterCollection_EB_, basicClusters_EB_h );
255  if ( ! basicClusters_EB_h.isValid() ) {
256  edm::LogWarning("EBRecoSummary") << "basicClusters_EB_h not found";
257  }
258 
259  bcEB_PV->Fill(PVCollection_h->size(), basicClusters_EB_h->size());
260 
261  //----------------- Basic Cluster Collection Ecal Endcal ---------
262 
263  edm::Handle<edm::View<reco::CaloCluster> > basicClusters_EE_h;
264  e.getByToken( basicClusterCollection_EE_, basicClusters_EE_h );
265  if ( ! basicClusters_EE_h.isValid() ) {
266  edm::LogWarning("EERecoSummary") << "basicClusters_EE_h not found";
267  }
268 
269  bcEE_PV->Fill(PVCollection_h->size(), basicClusters_EE_h->size());
270  }
271  else{
272  //----------------- Basic Cluster Collection Ecal Barrel ---------
274  e.getByToken( basicClusterCollection_, basicClusters_h );
275  if ( ! basicClusters_h.isValid() ) {
276  edm::LogWarning("EBRecoSummary") << "basicClusters_h not found";
277  }
278 
279  int nBarrel(0);
280  int nEndcap(0);
281  for(edm::View<reco::CaloCluster>::const_iterator bcItr(basicClusters_h->begin()); bcItr != basicClusters_h->end(); ++bcItr){
282  if(bcItr->caloID().detector(reco::CaloID::DET_ECAL_BARREL)) ++nBarrel;
283  if(bcItr->caloID().detector(reco::CaloID::DET_ECAL_ENDCAP)) ++nEndcap;
284  }
285 
286  bcEB_PV->Fill(PVCollection_h->size(), nBarrel);
287  bcEE_PV->Fill(PVCollection_h->size(), nEndcap);
288  }
289 
290  //----------------- Reconstructed Hit Ecal barrel
291 
293  e.getByToken( RecHitCollection_EB_,RecHitsEB );
294  if ( ! RecHitsEB.isValid() ) {
295  edm::LogWarning("EBRecoSummary") << "RecHitsEB not found";
296  }
297 
298  //----------------- Reconstructed Hit Ecal Endcap
299 
301  e.getByToken( RecHitCollection_EE_, RecHitsEE );
302  if ( ! RecHitsEE.isValid() ) {
303  edm::LogWarning("EBRecoSummary") << "RecHitsEB not found";
304  }
305  //----------------- Super Cluster Collection Ecal Endcap ---------
306 
308  e.getByToken( superClusterCollection_EE_, superClusters_EE_h );
309  if ( ! superClusters_EE_h.isValid() ) {
310  edm::LogWarning("EERecoSummary") << "superClusters_EE_h not found";
311  }
312 
313  //--------- Fill Isolation -----------------
314 
315  if(electronCollection_h.isValid()){
316  for (reco::GsfElectronCollection::const_iterator recoElectron = electronCollection_h->begin ();
317  recoElectron != electronCollection_h->end ();
318  recoElectron++) {
319  double IsoEcal =recoElectron->dr03EcalRecHitSumEt();
320  emIso_PV->Fill(PVCollection_h->size(),IsoEcal);
321  emIso->Fill(IsoEcal);
322  }
323  }
324 
325  //fill super clusters EE
326  scEE_PV->Fill(PVCollection_h->size(), superClusters_EE_h->size());
327 
328  for (reco::SuperClusterCollection::const_iterator itSC = superClusters_EE_h->begin();
329  itSC != superClusters_EE_h->end();
330  ++itSC ) {
331  double scEE_Et= itSC -> energy() * sin(2.*atan( exp(- itSC->position().eta() )));
332  // double scEE_E=itSC->energy();
333 
334  //fill super cluster endcap eta/phi
335 // scEta_EE->Fill(itSC->position().eta());
336 // scPhi_EE->Fill(itSC->position().phi());
337 
338  //get sigma eta_eta etc
339 
340  CaloTopology const* p_topology = caloTop.product();//get calo topology
341  const EcalRecHitCollection* eeRecHits = RecHitsEE.product();
342 
343  reco::BasicCluster const& seedCluster(*itSC->seed());
344  std::vector<float> cov = EcalClusterTools::localCovariances(seedCluster, eeRecHits, p_topology);
345  float sigmaIetaIeta = std::sqrt(cov[0]);
346  float sigmaIetaIphi = cov[1];
347 
348 
349  float e3x3 = EcalClusterTools::e3x3(seedCluster, eeRecHits, p_topology);
350  float r9 = e3x3 / itSC->rawEnergy();
351 
352  r9_EE->Fill(r9);
353  scSigmaIetaIeta_EE->Fill(sigmaIetaIeta);
354  scSigmaIetaIphi_EE->Fill(sigmaIetaIphi);
355 
356  //std::cout << " sigmaIetaIeta: " << sigmaIetaIeta << std::endl;
357  scEtEE_PV->Fill(PVCollection_h->size(),scEE_Et);
358  scHitEtEE->Fill(scEE_Et); //super cluster Et historam
359  // scHitE_EE->Fill(scEE_E); //super cluster energy histogram
360 
361  }//sc-EE loop
362 
363 
364  //----------------- Super Cluster Collection Ecal Barrel ---------
365 
367  e.getByToken( superClusterCollection_EB_, superClusters_EB_h );
368  if ( ! superClusters_EB_h.isValid() ) {
369  edm::LogWarning("EBRecoSummary") << "superClusters_EB_h not found";
370  }
371  scEB_PV->Fill(PVCollection_h->size(), superClusters_EB_h->size());
372 
373  for (reco::SuperClusterCollection::const_iterator itSC = superClusters_EB_h->begin();
374  itSC != superClusters_EB_h->end();
375  ++itSC ) {
376  double scEB_Et= itSC -> energy() * sin(2.*atan( exp(- itSC->position().eta() ))); // super cluster transverse energy
377  // double scEB_E= itSC->energy(); // super cluster energy
378 
379  //fill super cluster Barrel eta/phi
380 // scEta_EB->Fill(itSC->position().eta()); //super cluster eta
381 // scPhi_EB->Fill(itSC->position().phi()); // super cluster phi
382 
383  //sigma ietaieta etc
384 
385  CaloTopology const* p_topology = caloTop.product();//get calo topology
386  const EcalRecHitCollection* ebRecHits = RecHitsEB.product();
387 
388  reco::BasicCluster const& seedCluster(*itSC->seed());
389  std::vector<float> cov = EcalClusterTools::localCovariances(seedCluster, ebRecHits, p_topology);
390  float sigmaIetaIeta = std::sqrt(cov[0]);
391  float sigmaIetaIphi = cov[1];
392 
393 
394  float e3x3 = EcalClusterTools::e3x3(seedCluster, ebRecHits, p_topology);
395  float r9 = e3x3 / itSC->rawEnergy();
396 
397  r9_EB->Fill(r9);
398  scSigmaIetaIeta_EB->Fill(sigmaIetaIeta);
399  scSigmaIetaIphi_EB->Fill(sigmaIetaIphi);
400 
401  scEtEB_PV->Fill(PVCollection_h->size(),scEB_Et);
402  scHitEtEB->Fill(scEB_Et);
403  // scHitE_EB->Fill(scEB_E);
404  }//sc-EB loop
405 
406 
407  //-------------------Compute scalar sum of reconstructed hit Et
408  double RecHitEt_EB=0;
409 
410  for ( EcalRecHitCollection::const_iterator itr = RecHitsEB->begin () ;
411  itr != RecHitsEB->end () ;
412  ++itr) {
413  //RecHitEt_EB +=itr->energy();
414 
415  GlobalPoint const& position = geom->getGeometry(itr->detid())->getPosition();
416  RecHitEt_EB += itr -> energy() * sin(position.theta()) ;
417  }//EB Rec Hit
418 
419  recHitEtEB->Fill(RecHitEt_EB);
420  recHitEtEB_PV->Fill(PVCollection_h->size(),RecHitEt_EB);
421 
422 
423  //-------------------Compute scalar sum of reconstructed hit Et
424  double RecHitEt_EE=0;
425 
426  for ( EcalRecHitCollection::const_iterator itr = RecHitsEE->begin () ;
427  itr != RecHitsEE->end () ;
428  ++itr) {
429  GlobalPoint const& position = geom->getGeometry(itr->detid())->getPosition();
430  RecHitEt_EE += itr -> energy() * sin(position.theta()) ;
431  }//EB Rec Hit
432 
433  recHitEtEE->Fill(RecHitEt_EE);
434  recHitEtEE_PV->Fill(PVCollection_h->size(),RecHitEt_EE);
435 }
MonitorElement * recHitEtEE_PV
MonitorElement * recHitEtEB
MonitorElement * scEtEB_PV
edm::EDGetTokenT< reco::GsfElectronCollection > EleTag_
edm::EDGetTokenT< edm::View< reco::CaloCluster > > basicClusterCollection_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:519
MonitorElement * scHitEtEE
edm::EDGetTokenT< EcalRecHitCollection > RecHitCollection_EE_
MonitorElement * scSigmaIetaIphi_EB
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
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 * scEB_PV
MonitorElement * scHitEtEB
void Fill(long long x)
edm::EDGetTokenT< reco::SuperClusterCollection > superClusterCollection_EB_
Geom::Theta< T > theta() const
Definition: PV3DBase.h:75
MonitorElement * bcEE_PV
MonitorElement * emIso_PV
T sqrt(T t)
Definition: SSEVec.h:18
MonitorElement * recHitEtEB_PV
MonitorElement * scSigmaIetaIphi_EE
MonitorElement * scEE_PV
bool isValid() const
Definition: HandleBase.h:74
const_iterator end() const
T const * product() const
Definition: Handle.h:81
MonitorElement * scSigmaIetaIeta_EE
edm::ESHandle< CaloGeometry > geomH
MonitorElement * bcEB_PV
MonitorElement * scEtEE_PV
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
Definition: View.h:86
static int position[264][3]
Definition: ReadPGInfo.cc:509
MonitorElement * scSigmaIetaIeta_EB
std::shared_ptr< const CaloCellGeometry > getGeometry(const DetId &id) const
Get the cell geometry of a given detector id.
Definition: CaloGeometry.cc:80
bool isUninitialized() const
Definition: EDGetToken.h:73
edm::EDGetTokenT< reco::SuperClusterCollection > superClusterCollection_EE_
T const * product() const
Definition: ESHandle.h:86
const_iterator begin() const
edm::EDGetTokenT< edm::View< reco::CaloCluster > > basicClusterCollection_EE_
void EcalPileUpDepMonitor::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  ,
edm::EventSetup const &  eventSetup 
)
overrideprotectedvirtual

Implements DQMEDAnalyzer.

Definition at line 55 of file EcalPileUpDepMonitor.cc.

References bcEB_PV, bcEE_PV, DQMStore::IBooker::book1D(), DQMStore::IBooker::bookProfile(), caloTop, DQMStore::IBooker::cd(), MillePedeFileConverter_cfg::e, emIso, emIso_PV, geomH, edm::EventSetup::get(), r9_EB, r9_EE, recHitEtEB, recHitEtEB_PV, recHitEtEE, recHitEtEE_PV, scEB_PV, scEE_PV, scEtEB_PV, scEtEE_PV, scHitEtEB, scHitEtEE, scSigmaIetaIeta_EB, scSigmaIetaIeta_EE, scSigmaIetaIphi_EB, scSigmaIetaIphi_EE, MonitorElement::setAxisTitle(), DQMStore::IBooker::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, and fftjetcommon_cfi::title.

58 {
59  eventSetup.get<CaloGeometryRecord>().get(geomH);
60  eventSetup.get<CaloTopologyRecord>().get(caloTop);
61 
62  ibooker.cd();
63  ibooker.setCurrentFolder("Ecal/EcalPileUpDepMonitor");
64 
65  std::string prof_name="bcEB_PV";
66  std::string title="Basic clusters EB vs. PV";
67  bcEB_PV=ibooker.bookProfile(prof_name,title,50,0.,50.,50,0.,350.);
68  bcEB_PV->setAxisTitle("N_{pv}",1);
69  bcEB_PV->setAxisTitle("Basic Clusters", 2);
70 
71  prof_name="bcEE_PV";
72  title="Basic Clusters EE vs. PV";
73  bcEE_PV=ibooker.bookProfile(prof_name,title,50,0.,50.,50,0.,350.);
74  bcEE_PV->setAxisTitle("N_{pv}",1);
75  bcEE_PV->setAxisTitle("Basic Clusters", 2);
76 
77  prof_name="scEB_PV";
78  title="Super Clusters EB vs. PV";
79  scEB_PV=ibooker.bookProfile(prof_name,title,50,0.,50.,50,0.,350.);
80  scEB_PV->setAxisTitle("N_{pv}",1);
81  scEB_PV->setAxisTitle("Super Clusters", 2);
82 
83  prof_name="scEE_PV";
84  title="Super Clusters EE vs. PV";
85  scEE_PV=ibooker.bookProfile(prof_name,title,50,0.,50.,50,0.,350.);
86  scEE_PV->setAxisTitle("N_{pv}",1);
87  scEE_PV->setAxisTitle("Super Clusters", 2);
88 
89  prof_name="scEtEB_PV";
90  title="Super Clusters Et EB vs. PV";
91  scEtEB_PV=ibooker.bookProfile(prof_name,title,50,0.,50.,50,0.,350.);
92  scEtEB_PV->setAxisTitle("N_{pv}",1);
93  scEtEB_PV->setAxisTitle("Super Cluster E_{T} [GeV]", 2);
94 
95 
96  prof_name="scEtEE_PV";
97  title="Super Clusters Et EE vs. PV";
98  scEtEE_PV=ibooker.bookProfile(prof_name,title,50,0.,50.,50,0.,350.);
99  scEtEE_PV->setAxisTitle("N_{pv}",1);
100  scEtEE_PV->setAxisTitle("Super Cluster E_{T} [GeV]", 2);
101 
102  prof_name="recHitEtEB_PV";
103  title="Reconstructed Hit Et EB vs. PV";
104  recHitEtEB_PV=ibooker.bookProfile(prof_name,title,50,0.,50.,50,0.,350.);
105  recHitEtEB_PV->setAxisTitle("N_{pv}",1);
106  recHitEtEB_PV->setAxisTitle("Reconstructed hit E_{T} [GeV]", 2);
107 
108  prof_name="recHitEtEE_PV";
109  title="Reconstructed Hit Et EE vs. PV";
110  recHitEtEE_PV=ibooker.bookProfile(prof_name,title,50,0.,50.,50,0.,350.);
111  recHitEtEE_PV->setAxisTitle("N_{pv}",1);
112  recHitEtEE_PV->setAxisTitle("Reconstructed hit E_{T} [GeV]", 2);
113 
114  prof_name="emIso_PV";
115  title="EM Isolation vs. PV";
116  emIso_PV=ibooker.bookProfile(prof_name,title,50,0.,50.,50,0.,350);
117  emIso_PV->setAxisTitle("N_{pv}",1);
118  emIso_PV->setAxisTitle("EM_{Isolation} [GeV]", 2);
119 
120  prof_name="emIso";
121  title="EM Isolation";
122  emIso=ibooker.book1D(prof_name,title,50,0,50);
123  emIso->setAxisTitle("EM_{Isolation} [GeV]",1);
124  emIso->setAxisTitle("Events",2);
125 
126  prof_name="scHitEtEB";
127  title="Super Cluster Hit Et EB";
128  scHitEtEB=ibooker.book1D(prof_name,title,50,0,100);
129  scHitEtEB->setAxisTitle("super cluster hit E_{T} [GeV]",1);
130  scHitEtEB->setAxisTitle("Events",2);
131 
132  prof_name="scHitEtEE";
133  title="Super Cluster Hit Et EE";
134  scHitEtEE=ibooker.book1D(prof_name,title,50,0,100);
135  scHitEtEE->setAxisTitle("super cluster hit E_{T} [GeV]",1);
136  scHitEtEE->setAxisTitle("Events",2);
137 
138 
139 // prof_name="scHitE_EB";
140 // title="Super Cluster Hit E EB";
141 // scHitE_EB=ibooker.book1D(prof_name,title,50,0,100);
142 // scHitE_EB->setAxisTitle("super cluster hit E [GeV]",1);
143 // scHitE_EB->setAxisTitle("Events",2);
144 
145 
146 // prof_name="scHitE_EE";
147 // title="Super Cluster Hit E EE";
148 // scHitE_EE=ibooker.book1D(prof_name,title,50,0,100);
149 // scHitE_EE->setAxisTitle("super cluster hit E [GeV]",1);
150 // scHitE_EE->setAxisTitle("Events",2);
151 
152  //SC eta
153 // prof_name="scEta_EB";
154 // title="Super Cluster #eta EB";
155 // scEta_EB=ibooker.book1D(prof_name,title,50,-6,6);
156 // scEta_EB->setAxisTitle("#eta",1);
157 // scEta_EB->setAxisTitle("Events",2);
158 
159 // prof_name="scEta_EE";
160 // title="Super Cluster #eta EE";
161 // scEta_EE=ibooker.book1D(prof_name,title,50,-6,6);
162 // scEta_EE->setAxisTitle("#eta",1);
163 // scEta_EE->setAxisTitle("Events",2);
164 
165  //SC phi
166 // prof_name="scPhi_EB";
167 // title="Super Cluster #phi EB";
168 // scPhi_EB=ibooker.book1D(prof_name,title,50,-3.14,3.14);
169 // scPhi_EB->setAxisTitle("super cluster #phi",1);
170 // scPhi_EB->setAxisTitle("Events",2);
171 
172 // prof_name="scPhi_EE";
173 // title="Super Cluster #phi EE";
174 // scPhi_EE=ibooker.book1D(prof_name,title,50,-3.14,3.14);
175 // scPhi_EE->setAxisTitle("super cluster #phi",1);
176 // scPhi_EE->setAxisTitle("Events",2);
177 
178  //sc sigma eta eta / eta phi
179 
180  prof_name="scSigmaIetaIeta_EB";
181  title="Super Cluster sigmaIetaIeta EB";
182  scSigmaIetaIeta_EB=ibooker.book1D(prof_name,title,50,0,0.03);
183  scSigmaIetaIeta_EB->setAxisTitle("#sigma_{i#etai#eta}",1);
184  scSigmaIetaIeta_EB->setAxisTitle("Events",2);
185 
186  prof_name="scSigmaIetaIeta_EE";
187  title="Super Cluster sigmaIetaIeta EE";
188  scSigmaIetaIeta_EE=ibooker.book1D(prof_name,title,50,0,0.1);
189  scSigmaIetaIeta_EE->setAxisTitle("#sigma_{i#etai#eta}",1);
190  scSigmaIetaIeta_EE->setAxisTitle("Events",2);
191 
192  //phi
193  prof_name="scSigmaIetaIphi_EB";
194  title="Super Cluster sigmaIetaIphi EB";
195  scSigmaIetaIphi_EB=ibooker.book1D(prof_name,title,50,-5.e-4,5.e-4);
196  scSigmaIetaIphi_EB->setAxisTitle("#sigma_{i#etai#phi}",1);
197  scSigmaIetaIphi_EB->setAxisTitle("Events",2);
198 
199  prof_name="scSigmaIetaIphi_EE";
200  title="Super Cluster sigmaIetaIphi EE";
201  scSigmaIetaIphi_EE=ibooker.book1D(prof_name,title,50,-2.5e-3,2.5e-3);
202  scSigmaIetaIphi_EE->setAxisTitle("#sigma_{i#etai#phi}",1);
203  scSigmaIetaIphi_EE->setAxisTitle("Events",2);
204 
205  //R9
206  prof_name="r9_EB";
207  title="r9 EB";
208  r9_EB=ibooker.book1D(prof_name,title,50,0,1.5);
209  r9_EB->setAxisTitle("R_{9}",1);
210  r9_EB->setAxisTitle("Events",2);
211 
212  prof_name="r9_EE";
213  title="r9 EE";
214  r9_EE=ibooker.book1D(prof_name,title,50,0,1.5);
215  r9_EE->setAxisTitle("R_{9}",1);
216  r9_EE->setAxisTitle("Events",2);
217 
218  //Rec Hit
219 
220  prof_name="recHitEtEB";
221  title="RecHit Et EB";
222  recHitEtEB=ibooker.book1D(prof_name,title,50,0,400);
223  recHitEtEB->setAxisTitle("Reconstructed Hit E_{T} [GeV]",1);
224  recHitEtEB->setAxisTitle("Events",2);
225 
226  prof_name="recHitEtEE";
227  title="RecHit Et EE";
228  recHitEtEE=ibooker.book1D(prof_name,title,50,0,400);
229  recHitEtEE->setAxisTitle("Reconstructed Hit E_{T} [GeV]",1);
230  recHitEtEE->setAxisTitle("Events",2);
231 }
MonitorElement * recHitEtEE_PV
MonitorElement * recHitEtEB
MonitorElement * scEtEB_PV
MonitorElement * bookProfile(Args &&...args)
Definition: DQMStore.h:160
MonitorElement * scHitEtEE
MonitorElement * scSigmaIetaIphi_EB
MonitorElement * recHitEtEE
edm::ESHandle< CaloTopology > caloTop
MonitorElement * scEB_PV
MonitorElement * scHitEtEB
MonitorElement * bcEE_PV
MonitorElement * emIso_PV
MonitorElement * recHitEtEB_PV
MonitorElement * scSigmaIetaIphi_EE
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:118
MonitorElement * scEE_PV
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:279
MonitorElement * scSigmaIetaIeta_EE
edm::ESHandle< CaloGeometry > geomH
MonitorElement * bcEB_PV
MonitorElement * scEtEE_PV
MonitorElement * scSigmaIetaIeta_EB
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void EcalPileUpDepMonitor::endLuminosityBlock ( const edm::LuminosityBlock ,
const edm::EventSetup  
)
overrideprotected

Definition at line 438 of file EcalPileUpDepMonitor.cc.

References DEFINE_FWK_MODULE.

439 {
440 }

Member Data Documentation

edm::EDGetTokenT<edm::View<reco::CaloCluster> > EcalPileUpDepMonitor::basicClusterCollection_
private

Definition at line 100 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and EcalPileUpDepMonitor().

edm::EDGetTokenT<edm::View<reco::CaloCluster> > EcalPileUpDepMonitor::basicClusterCollection_EB_
private

Definition at line 98 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and EcalPileUpDepMonitor().

edm::EDGetTokenT<edm::View<reco::CaloCluster> > EcalPileUpDepMonitor::basicClusterCollection_EE_
private

Definition at line 99 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and EcalPileUpDepMonitor().

MonitorElement* EcalPileUpDepMonitor::bcEB_PV
private

Definition at line 46 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* EcalPileUpDepMonitor::bcEE_PV
private

Definition at line 47 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

edm::ESHandle<CaloTopology> EcalPileUpDepMonitor::caloTop
private

Definition at line 94 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

edm::EDGetTokenT<reco::GsfElectronCollection> EcalPileUpDepMonitor::EleTag_
private

Definition at line 104 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and EcalPileUpDepMonitor().

MonitorElement* EcalPileUpDepMonitor::emIso
private

Definition at line 60 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* EcalPileUpDepMonitor::emIso_PV
private

Definition at line 57 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

edm::ESHandle<CaloGeometry> EcalPileUpDepMonitor::geomH
private

Definition at line 93 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* EcalPileUpDepMonitor::r9_EB
private

Definition at line 90 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* EcalPileUpDepMonitor::r9_EE
private

Definition at line 91 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

edm::EDGetTokenT<EcalRecHitCollection> EcalPileUpDepMonitor::RecHitCollection_EB_
private

Definition at line 106 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and EcalPileUpDepMonitor().

edm::EDGetTokenT<EcalRecHitCollection> EcalPileUpDepMonitor::RecHitCollection_EE_
private

Definition at line 107 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and EcalPileUpDepMonitor().

MonitorElement* EcalPileUpDepMonitor::recHitEtEB
private

Definition at line 61 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* EcalPileUpDepMonitor::recHitEtEB_PV
private

Definition at line 54 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* EcalPileUpDepMonitor::recHitEtEE
private

Definition at line 62 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* EcalPileUpDepMonitor::recHitEtEE_PV
private

Definition at line 55 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* EcalPileUpDepMonitor::scEB_PV
private

Definition at line 48 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* EcalPileUpDepMonitor::scEE_PV
private

Definition at line 49 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* EcalPileUpDepMonitor::scEtEB_PV
private

Definition at line 51 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* EcalPileUpDepMonitor::scEtEE_PV
private

Definition at line 52 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* EcalPileUpDepMonitor::scHitEtEB
private

Definition at line 64 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* EcalPileUpDepMonitor::scHitEtEE
private

Definition at line 65 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* EcalPileUpDepMonitor::scSigmaIetaIeta_EB
private

Definition at line 83 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* EcalPileUpDepMonitor::scSigmaIetaIeta_EE
private

Definition at line 84 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* EcalPileUpDepMonitor::scSigmaIetaIphi_EB
private

Definition at line 86 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

MonitorElement* EcalPileUpDepMonitor::scSigmaIetaIphi_EE
private

Definition at line 87 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and bookHistograms().

edm::EDGetTokenT<reco::SuperClusterCollection> EcalPileUpDepMonitor::superClusterCollection_EB_
private

Definition at line 102 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and EcalPileUpDepMonitor().

edm::EDGetTokenT<reco::SuperClusterCollection> EcalPileUpDepMonitor::superClusterCollection_EE_
private

Definition at line 103 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and EcalPileUpDepMonitor().

edm::EDGetTokenT<reco::VertexCollection> EcalPileUpDepMonitor::VertexCollection_
private

Definition at line 96 of file EcalPileUpDepMonitor.h.

Referenced by analyze(), and EcalPileUpDepMonitor().