CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
CentralitypADQM Class Reference

#include <CentralitypADQM.h>

Inheritance diagram for CentralitypADQM:
DQMEDAnalyzer edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 CentralitypADQM (const edm::ParameterSet &ps)
 
virtual ~CentralitypADQM ()
 
- Public Member Functions inherited from DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer (void)
 
virtual void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
virtual void endRunSummary (edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
uint32_t streamId () const
 
- Public Member Functions inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Protected Member Functions

virtual void analyze (edm::Event const &e, edm::EventSetup const &eSetup) 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 Member Functions

virtual void bookHistograms (DQMStore::IBooker &bei, edm::Run const &, edm::EventSetup const &) override
 

Private Attributes

edm::Handle< reco::Centralitycentrality_
 
edm::Handle< int > centralityBin_
 
edm::InputTag centralityBinTag_
 
edm::EDGetTokenT< int > centralityBinToken
 
edm::InputTag centralityTag_
 
edm::EDGetTokenT
< reco::Centrality
centralityToken
 
edm::InputTag eventplaneTag_
 
edm::EDGetTokenT
< reco::EvtPlaneCollection
eventplaneToken
 
MonitorElementh_cent_bin
 
MonitorElementh_ep_castor1
 
MonitorElementh_ep_castor2
 
MonitorElementh_ep_HFm1
 
MonitorElementh_ep_HFm2
 
MonitorElementh_ep_HFm3
 
MonitorElementh_ep_HFp1
 
MonitorElementh_ep_HFp2
 
MonitorElementh_ep_HFp3
 
MonitorElementh_ep_trackm1
 
MonitorElementh_ep_trackm2
 
MonitorElementh_ep_trackmid2
 
MonitorElementh_ep_trackmid3
 
MonitorElementh_ep_trackp1
 
MonitorElementh_ep_trackp2
 
MonitorElementh_hiEB
 
MonitorElementh_hiEE
 
MonitorElementh_hiEEminus
 
MonitorElementh_hiEEplus
 
MonitorElementh_hiET
 
MonitorElementh_hiHF
 
MonitorElementh_hiHFhit
 
MonitorElementh_hiHFhitMinus
 
MonitorElementh_hiHFhitPlus
 
MonitorElementh_hiHFminus
 
MonitorElementh_hiHFminusEta4
 
MonitorElementh_hiHFplus
 
MonitorElementh_hiHFplusEta4
 
MonitorElementh_hiNpix
 
MonitorElementh_hiNpixelTracks
 
MonitorElementh_hiNtracks
 
MonitorElementh_hiNtracksEtaCut
 
MonitorElementh_hiNtracksEtaPtCut
 
MonitorElementh_hiNtracksPtCut
 
MonitorElementh_hiZDC
 
MonitorElementh_hiZDCminus
 
MonitorElementh_hiZDCplus
 
MonitorElementh_vertex_x
 
MonitorElementh_vertex_y
 
MonitorElementh_vertex_z
 
edm::Handle< std::vector
< reco::Vertex > > 
vertex_
 
edm::InputTag vertexTag_
 
edm::EDGetTokenT< std::vector
< reco::Vertex > > 
vertexToken
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static std::shared_ptr
< dqmDetails::NoCache
globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr
< dqmDetails::NoCache
globalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *)
 
static void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
 
static void globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
 
- Static Public Member Functions inherited from edm::stream::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Detailed Description

Definition at line 22 of file CentralitypADQM.h.

Constructor & Destructor Documentation

CentralitypADQM::CentralitypADQM ( const edm::ParameterSet ps)
explicit

Definition at line 29 of file CentralitypADQM.cc.

References edm::ParameterSet::getParameter().

29  {
30 
31  edm::LogInfo("CentralitypADQM") << " Starting CentralitypADQM " << "\n";
32 
33  centralityTag_ = ps.getParameter<InputTag>("centralitycollection");
34  centralityToken = consumes<reco::Centrality>(centralityTag_);
35 
36  vertexTag_ = ps.getParameter<InputTag>("vertexcollection");
37  vertexToken = consumes<std::vector<reco::Vertex> >(vertexTag_);
38  // just to initialize
39 }
T getParameter(std::string const &) const
edm::InputTag centralityTag_
edm::InputTag vertexTag_
edm::EDGetTokenT< reco::Centrality > centralityToken
edm::EDGetTokenT< std::vector< reco::Vertex > > vertexToken
CentralitypADQM::~CentralitypADQM ( )
virtual

Definition at line 44 of file CentralitypADQM.cc.

44  {
45  edm::LogInfo("CentralitypADQM") << " Deleting CentralitypADQM " << "\n";
46 }

Member Function Documentation

void CentralitypADQM::analyze ( edm::Event const &  e,
edm::EventSetup const &  eSetup 
)
overrideprotectedvirtual

Implements edm::stream::EDAnalyzerBase.

Definition at line 95 of file CentralitypADQM.cc.

References edm::Event::getByToken().

95  {
96 
97  using namespace edm;
99  iEvent.getByToken(centralityToken, cent); //_centralitytag comes from the cfg
100 
101  if(cent.isValid()){
102  h_hiNpix->Fill(cent->multiplicityPixel());
103  h_hiNtracks->Fill(cent->Ntracks());
104 
105  h_hiNtracksPtCut->Fill(cent->NtracksPtCut());
106  h_hiNtracksEtaCut->Fill(cent->NtracksEtaCut());
107  h_hiNtracksEtaPtCut->Fill(cent->NtracksEtaPtCut());
108 
109  h_hiHF->Fill(cent->EtHFtowerSum());
110  h_hiHFplus->Fill(cent->EtHFtowerSumPlus());
111  h_hiHFminus->Fill(cent->EtHFtowerSumMinus());
112  h_hiHFplusEta4->Fill(cent->EtHFtruncatedPlus());
113  h_hiHFminusEta4->Fill(cent->EtHFtruncatedMinus());
114 
115  h_hiHFhit->Fill(cent->EtHFhitSum());
116  h_hiHFhitPlus->Fill(cent->EtHFhitSumPlus());
117  h_hiHFhitMinus->Fill(cent->EtHFhitSumMinus());
118 
119  h_hiZDC->Fill(cent->zdcSum());
120  h_hiZDCplus->Fill(cent->zdcSumPlus());
121  h_hiZDCminus->Fill(cent->zdcSumMinus());
122 
123  h_hiEEplus->Fill(cent->EtEESumPlus());
124  h_hiEEminus->Fill(cent->EtEESumMinus());
125  h_hiEE->Fill(cent->EtEESum());
126  h_hiEB->Fill(cent->EtEBSum());
127  h_hiET->Fill(cent->EtMidRapiditySum());
128 
130  iEvent.getByToken(vertexToken, vertex);
131  h_vertex_x->Fill(vertex->begin()->x());
132  h_vertex_y->Fill(vertex->begin()->y());
133  h_vertex_z->Fill(vertex->begin()->z());
134  }
135 }
MonitorElement * h_hiNtracksEtaCut
MonitorElement * h_hiHF
MonitorElement * h_hiNtracks
MonitorElement * h_hiEB
MonitorElement * h_hiZDC
MonitorElement * h_hiHFhitMinus
MonitorElement * h_hiHFplusEta4
MonitorElement * h_vertex_y
MonitorElement * h_hiHFhit
MonitorElement * h_hiEE
MonitorElement * h_hiEEminus
MonitorElement * h_hiNpix
MonitorElement * h_hiHFminusEta4
MonitorElement * h_hiEEplus
void Fill(long long x)
int iEvent
Definition: GenABIO.cc:230
MonitorElement * h_hiNtracksPtCut
MonitorElement * h_hiHFhitPlus
edm::EDGetTokenT< reco::Centrality > centralityToken
MonitorElement * h_hiZDCminus
MonitorElement * h_hiET
MonitorElement * h_hiHFminus
MonitorElement * h_hiNtracksEtaPtCut
MonitorElement * h_hiHFplus
MonitorElement * h_vertex_x
MonitorElement * h_vertex_z
MonitorElement * h_hiZDCplus
edm::EDGetTokenT< std::vector< reco::Vertex > > vertexToken
void CentralitypADQM::bookHistograms ( DQMStore::IBooker bei,
edm::Run const &  ,
edm::EventSetup const &   
)
overrideprivatevirtual

Implements DQMEDAnalyzer.

Definition at line 51 of file CentralitypADQM.cc.

References DQMStore::IBooker::book1D(), and DQMStore::IBooker::setCurrentFolder().

52  {
53  // void CentralitypADQM::bookHistograms(DQMStore* bei){
54 
55  bei.setCurrentFolder("Physics/CentralitypA/");
56 
57  h_hiNpix = bei.book1D("h_hiNpix", "h_hiNpix", 750, 0, 75000);
58  // h_hiNpixelTracks = bei.book1D("h_hiNpixelTracks", "hiNpixelTracks", 500, 0, 5000);
59  h_hiNtracks = bei.book1D("h_hiNtracks", "h_hiNtracks", 500, 0, 5000);
61  bei.book1D("h_hiNtracksPtCut", "h_hiNtracksPtCut", 500, 0, 5000);
63  bei.book1D("h_hiNtracksEtaCut", "h_hiNtracksEtaCut", 500, 0, 5000);
65  bei.book1D("h_hiNtracksEtaPtCut", "h_hiNtracksEtaPtCut", 500, 0, 5000);
66 
67  h_hiHF = bei.book1D("h_hiHF", "h_hiHF", 900, 0, 9000);
68  h_hiHFplus = bei.book1D("h_hiHFplus", "h_hiHFplus", 900, 0, 9000);
69  h_hiHFminus = bei.book1D("h_hiHFminus", "h_hiHFminus", 900, 0, 9000);
70  h_hiHFplusEta4 = bei.book1D("h_hiHFplusEta4", "h_hiHFplusEta4", 900, 0, 9000);
72  bei.book1D("h_hiHFminusEta4", "h_hiHFminusEta4", 900, 0, 9000);
73 
74  h_hiHFhit = bei.book1D("h_hiHFhit", "h_hiHFhit", 3000, 0, 300000);
75  h_hiHFhitPlus = bei.book1D("h_hiHFhitPlus", "h_hiHFhitPlus", 2000, 0, 200000);
77  bei.book1D("h_hiHFhitMinus", "h_hiHFhitMinus", 2000, 0, 200000);
78 
79  h_hiEB = bei.book1D("h_hiEB", "h_hiEB", 600, 0, 6000);
80  h_hiET = bei.book1D("h_hiET", "h_hiET", 600, 0, 6000);
81  h_hiEE = bei.book1D("h_hiEE", "h_hiEE", 600, 0, 6000);
82  h_hiEEplus = bei.book1D("h_hiEEplus", "h_hiEEplus", 600, 0, 6000);
83  h_hiEEminus = bei.book1D("h_hiEEminus", "h_hiEEminus", 600, 0, 6000);
84  h_hiZDC = bei.book1D("h_hiZDC", "h_hiZDC", 600, 0, 6000);
85  h_hiZDCplus = bei.book1D("h_hiZDCplus", "h_hiZDCplus", 600, 0, 6000);
86  h_hiZDCminus = bei.book1D("h_hiZDCminus", "h_hiZDCminus", 600, 0, 6000);
87 
88  h_vertex_x = bei.book1D("h_vertex_x", "h_vertex_x", 400, -4, 4);
89  h_vertex_y = bei.book1D("h_vertex_y", "h_vertex_y", 400, -4, 4);
90  h_vertex_z = bei.book1D("h_vertex_z", "h_vertex_z", 400, -40, 40);
91  }
MonitorElement * h_hiNtracksEtaCut
MonitorElement * h_hiHF
MonitorElement * h_hiNtracks
MonitorElement * h_hiEB
MonitorElement * h_hiZDC
MonitorElement * h_hiHFhitMinus
MonitorElement * h_hiHFplusEta4
MonitorElement * h_vertex_y
MonitorElement * h_hiHFhit
MonitorElement * h_hiEE
MonitorElement * h_hiEEminus
MonitorElement * h_hiNpix
MonitorElement * h_hiHFminusEta4
MonitorElement * h_hiEEplus
MonitorElement * h_hiNtracksPtCut
MonitorElement * h_hiHFhitPlus
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
MonitorElement * h_hiZDCminus
MonitorElement * h_hiET
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:276
MonitorElement * h_hiHFminus
MonitorElement * h_hiNtracksEtaPtCut
MonitorElement * h_hiHFplus
MonitorElement * h_vertex_x
MonitorElement * h_vertex_z
MonitorElement * h_hiZDCplus

Member Data Documentation

edm::Handle<reco::Centrality> CentralitypADQM::centrality_
private

Definition at line 40 of file CentralitypADQM.h.

edm::Handle<int> CentralitypADQM::centralityBin_
private

Definition at line 51 of file CentralitypADQM.h.

edm::InputTag CentralitypADQM::centralityBinTag_
private

Definition at line 49 of file CentralitypADQM.h.

edm::EDGetTokenT<int> CentralitypADQM::centralityBinToken
private

Definition at line 50 of file CentralitypADQM.h.

edm::InputTag CentralitypADQM::centralityTag_
private

Definition at line 38 of file CentralitypADQM.h.

edm::EDGetTokenT<reco::Centrality> CentralitypADQM::centralityToken
private

Definition at line 39 of file CentralitypADQM.h.

edm::InputTag CentralitypADQM::eventplaneTag_
private

Definition at line 46 of file CentralitypADQM.h.

edm::EDGetTokenT<reco::EvtPlaneCollection> CentralitypADQM::eventplaneToken
private

Definition at line 47 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_cent_bin
private

Definition at line 86 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_ep_castor1
private

Definition at line 92 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_ep_castor2
private

Definition at line 99 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_ep_HFm1
private

Definition at line 88 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_ep_HFm2
private

Definition at line 94 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_ep_HFm3
private

Definition at line 101 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_ep_HFp1
private

Definition at line 89 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_ep_HFp2
private

Definition at line 95 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_ep_HFp3
private

Definition at line 102 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_ep_trackm1
private

Definition at line 90 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_ep_trackm2
private

Definition at line 97 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_ep_trackmid2
private

Definition at line 96 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_ep_trackmid3
private

Definition at line 103 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_ep_trackp1
private

Definition at line 91 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_ep_trackp2
private

Definition at line 98 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiEB
private

Definition at line 73 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiEE
private

Definition at line 75 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiEEminus
private

Definition at line 77 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiEEplus
private

Definition at line 76 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiET
private

Definition at line 74 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiHF
private

Definition at line 65 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiHFhit
private

Definition at line 70 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiHFhitMinus
private

Definition at line 72 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiHFhitPlus
private

Definition at line 71 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiHFminus
private

Definition at line 67 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiHFminusEta4
private

Definition at line 69 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiHFplus
private

Definition at line 66 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiHFplusEta4
private

Definition at line 68 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiNpix
private

Definition at line 59 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiNpixelTracks
private

Definition at line 60 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiNtracks
private

Definition at line 61 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiNtracksEtaCut
private

Definition at line 63 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiNtracksEtaPtCut
private

Definition at line 64 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiNtracksPtCut
private

Definition at line 62 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiZDC
private

Definition at line 78 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiZDCminus
private

Definition at line 80 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_hiZDCplus
private

Definition at line 79 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_vertex_x
private

Definition at line 82 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_vertex_y
private

Definition at line 83 of file CentralitypADQM.h.

MonitorElement* CentralitypADQM::h_vertex_z
private

Definition at line 84 of file CentralitypADQM.h.

edm::Handle<std::vector<reco::Vertex> > CentralitypADQM::vertex_
private

Definition at line 44 of file CentralitypADQM.h.

edm::InputTag CentralitypADQM::vertexTag_
private

Definition at line 42 of file CentralitypADQM.h.

edm::EDGetTokenT<std::vector<reco::Vertex> > CentralitypADQM::vertexToken
private

Definition at line 43 of file CentralitypADQM.h.