CMS 3D CMS Logo

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

#include <myTKAnalyses/DigiInvestigator/src/MultiplicityInvestigator.cc>

Inheritance diagram for MultiplicityInvestigator:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 MultiplicityInvestigator (const edm::ParameterSet &)
 
 ~MultiplicityInvestigator () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () 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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
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::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginJob () override
 
void beginRun (const edm::Run &, const edm::EventSetup &) override
 
void endJob () override
 

Private Attributes

DigiInvestigatorHistogramMaker m_digiinvesthmevent
 
DigiLumiCorrHistogramMaker m_digilumicorrhmevent
 
DigiPileupCorrHistogramMaker m_digipileupcorrhmevent
 
DigiVertexCorrHistogramMaker m_digivtxcorrhmevent
 
DigiVtxPosCorrHistogramMaker m_digivtxposcorrhmevent
 
edm::EDGetTokenT< std::map< unsigned int, int > > m_multiplicityMapToken
 
edm::EDGetTokenT< reco::VertexCollectionm_vertexCollectionToken
 
const bool m_wantInvestHist
 
const bool m_wantLumiCorrHist
 
const bool m_wantPileupCorrHist
 
const bool m_wantVtxCorrHist
 
const bool m_wantVtxPosCorrHist
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 51 of file MultiplicityInvestigator.cc.

Constructor & Destructor Documentation

◆ MultiplicityInvestigator()

MultiplicityInvestigator::MultiplicityInvestigator ( const edm::ParameterSet iConfig)
explicit

Definition at line 90 of file MultiplicityInvestigator.cc.

91  : // m_digiinvesthmevent(iConfig.getParameter<edm::ParameterSet>("digiInvestConfig")),
92  m_wantInvestHist(iConfig.getParameter<bool>("wantInvestHist")),
93  m_wantVtxCorrHist(iConfig.getParameter<bool>("wantVtxCorrHist")),
94  m_wantLumiCorrHist(iConfig.getParameter<bool>("wantLumiCorrHist")),
95  m_wantPileupCorrHist(iConfig.getParameter<bool>("wantPileupCorrHist")),
96  m_wantVtxPosCorrHist(iConfig.getParameter<bool>("wantVtxPosCorrHist")),
107  ? DigiPileupCorrHistogramMaker(iConfig.getParameter<edm::ParameterSet>("digiPileupCorrConfig"),
112  ? DigiVtxPosCorrHistogramMaker(iConfig.getParameter<edm::ParameterSet>("digiVtxPosCorrConfig"),
116  consumes<std::map<unsigned int, int> >(iConfig.getParameter<edm::InputTag>("multiplicityMap"))),
118  mayConsume<reco::VertexCollection>(iConfig.getParameter<edm::InputTag>("vertexCollection"))) {
119  //now do what ever initialization is needed
120 
121  if (m_wantInvestHist) {
122  m_digiinvesthmevent.book("EventProcs");
123  }
124  if (m_wantVtxCorrHist) {
126  }
127  if (m_wantLumiCorrHist) {
129  }
130  if (m_wantPileupCorrHist) {
131  m_digipileupcorrhmevent.book("PileupCorr");
132  }
133  if (m_wantVtxPosCorrHist) {
134  m_digivtxposcorrhmevent.book("VtxPosCorr");
135  }
136 }

References DigiInvestigatorHistogramMaker::book(), DigiVtxPosCorrHistogramMaker::book(), DigiVertexCorrHistogramMaker::book(), DigiPileupCorrHistogramMaker::book(), DigiLumiCorrHistogramMaker::book(), edm::EDConsumerBase::consumesCollector(), m_digiinvesthmevent, m_digilumicorrhmevent, m_digipileupcorrhmevent, m_digivtxcorrhmevent, m_digivtxposcorrhmevent, m_wantInvestHist, m_wantLumiCorrHist, m_wantPileupCorrHist, m_wantVtxCorrHist, and m_wantVtxPosCorrHist.

◆ ~MultiplicityInvestigator()

MultiplicityInvestigator::~MultiplicityInvestigator ( )
override

Definition at line 138 of file MultiplicityInvestigator.cc.

138  {
139  // do anything here that needs to be done at desctruction time
140  // (e.g. close files, deallocate resources etc.)
141 }

Member Function Documentation

◆ analyze()

void MultiplicityInvestigator::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

◆ beginJob()

void MultiplicityInvestigator::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 172 of file MultiplicityInvestigator.cc.

172 {}

◆ beginRun()

void MultiplicityInvestigator::beginRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

◆ endJob()

void MultiplicityInvestigator::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 180 of file MultiplicityInvestigator.cc.

180 {}

Member Data Documentation

◆ m_digiinvesthmevent

DigiInvestigatorHistogramMaker MultiplicityInvestigator::m_digiinvesthmevent
private

Definition at line 69 of file MultiplicityInvestigator.cc.

Referenced by analyze(), beginRun(), and MultiplicityInvestigator().

◆ m_digilumicorrhmevent

DigiLumiCorrHistogramMaker MultiplicityInvestigator::m_digilumicorrhmevent
private

Definition at line 71 of file MultiplicityInvestigator.cc.

Referenced by analyze(), beginRun(), and MultiplicityInvestigator().

◆ m_digipileupcorrhmevent

DigiPileupCorrHistogramMaker MultiplicityInvestigator::m_digipileupcorrhmevent
private

Definition at line 72 of file MultiplicityInvestigator.cc.

Referenced by analyze(), and MultiplicityInvestigator().

◆ m_digivtxcorrhmevent

DigiVertexCorrHistogramMaker MultiplicityInvestigator::m_digivtxcorrhmevent
private

Definition at line 70 of file MultiplicityInvestigator.cc.

Referenced by analyze(), beginRun(), and MultiplicityInvestigator().

◆ m_digivtxposcorrhmevent

DigiVtxPosCorrHistogramMaker MultiplicityInvestigator::m_digivtxposcorrhmevent
private

Definition at line 73 of file MultiplicityInvestigator.cc.

Referenced by analyze(), and MultiplicityInvestigator().

◆ m_multiplicityMapToken

edm::EDGetTokenT<std::map<unsigned int, int> > MultiplicityInvestigator::m_multiplicityMapToken
private

Definition at line 75 of file MultiplicityInvestigator.cc.

Referenced by analyze().

◆ m_vertexCollectionToken

edm::EDGetTokenT<reco::VertexCollection> MultiplicityInvestigator::m_vertexCollectionToken
private

Definition at line 76 of file MultiplicityInvestigator.cc.

Referenced by analyze().

◆ m_wantInvestHist

const bool MultiplicityInvestigator::m_wantInvestHist
private

Definition at line 64 of file MultiplicityInvestigator.cc.

Referenced by analyze(), and MultiplicityInvestigator().

◆ m_wantLumiCorrHist

const bool MultiplicityInvestigator::m_wantLumiCorrHist
private

Definition at line 66 of file MultiplicityInvestigator.cc.

Referenced by analyze(), and MultiplicityInvestigator().

◆ m_wantPileupCorrHist

const bool MultiplicityInvestigator::m_wantPileupCorrHist
private

Definition at line 67 of file MultiplicityInvestigator.cc.

Referenced by analyze(), and MultiplicityInvestigator().

◆ m_wantVtxCorrHist

const bool MultiplicityInvestigator::m_wantVtxCorrHist
private

Definition at line 65 of file MultiplicityInvestigator.cc.

Referenced by analyze(), and MultiplicityInvestigator().

◆ m_wantVtxPosCorrHist

const bool MultiplicityInvestigator::m_wantVtxPosCorrHist
private

Definition at line 68 of file MultiplicityInvestigator.cc.

Referenced by analyze(), and MultiplicityInvestigator().

MultiplicityInvestigator::m_digiinvesthmevent
DigiInvestigatorHistogramMaker m_digiinvesthmevent
Definition: MultiplicityInvestigator.cc:69
DigiVertexCorrHistogramMaker::book
void book(const std::string dirname, const std::map< unsigned int, std::string > &labels, edm::ConsumesCollector &&iC)
Definition: DigiVertexCorrHistogramMaker.cc:57
DigiVtxPosCorrHistogramMaker
Definition: DigiVtxPosCorrHistogramMaker.h:18
DigiLumiCorrHistogramMaker
Definition: DigiLumiCorrHistogramMaker.h:21
MultiplicityInvestigator::m_digipileupcorrhmevent
DigiPileupCorrHistogramMaker m_digipileupcorrhmevent
Definition: MultiplicityInvestigator.cc:72
MultiplicityInvestigator::m_digilumicorrhmevent
DigiLumiCorrHistogramMaker m_digilumicorrhmevent
Definition: MultiplicityInvestigator.cc:71
MultiplicityInvestigator::m_digivtxcorrhmevent
DigiVertexCorrHistogramMaker m_digivtxcorrhmevent
Definition: MultiplicityInvestigator.cc:70
edm
HLT enums.
Definition: AlignableModifier.h:19
DigiInvestigatorHistogramMaker::beginRun
void beginRun(const edm::Run &iRun)
Definition: DigiInvestigatorHistogramMaker.cc:128
MultiplicityInvestigator::m_wantVtxCorrHist
const bool m_wantVtxCorrHist
Definition: MultiplicityInvestigator.cc:65
MultiplicityInvestigator::m_wantLumiCorrHist
const bool m_wantLumiCorrHist
Definition: MultiplicityInvestigator.cc:66
MultiplicityInvestigator::m_wantPileupCorrHist
const bool m_wantPileupCorrHist
Definition: MultiplicityInvestigator.cc:67
DigiLumiCorrHistogramMaker::book
void book(const std::string dirname, const std::map< unsigned int, std::string > &labels, edm::ConsumesCollector &&iC)
Definition: DigiLumiCorrHistogramMaker.cc:59
edm::EDConsumerBase::consumesCollector
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
Definition: EDConsumerBase.cc:47
MultiplicityInvestigator::m_wantInvestHist
const bool m_wantInvestHist
Definition: MultiplicityInvestigator.cc:64
edm::Handle
Definition: AssociativeIterator.h:50
DigiVtxPosCorrHistogramMaker::book
void book(const std::string dirname, const std::map< unsigned int, std::string > &labels)
Definition: DigiVtxPosCorrHistogramMaker.cc:54
DigiInvestigatorHistogramMaker
Definition: DigiInvestigatorHistogramMaker.h:18
DigiLumiCorrHistogramMaker::fill
void fill(const edm::Event &iEvent, const std::map< unsigned int, int > &ndigi)
Definition: DigiLumiCorrHistogramMaker.cc:136
DigiInvestigatorHistogramMaker::fill
void fill(const edm::Event &iEvent, const std::map< unsigned int, int > &ndigi)
Definition: DigiInvestigatorHistogramMaker.cc:172
DigiPileupCorrHistogramMaker::fill
void fill(const edm::Event &iEvent, const std::map< unsigned int, int > &ndigi)
Definition: DigiPileupCorrHistogramMaker.cc:139
edm::ParameterSet
Definition: ParameterSet.h:47
MultiplicityInvestigator::m_digivtxposcorrhmevent
DigiVtxPosCorrHistogramMaker m_digivtxposcorrhmevent
Definition: MultiplicityInvestigator.cc:73
MultiplicityInvestigator::m_vertexCollectionToken
edm::EDGetTokenT< reco::VertexCollection > m_vertexCollectionToken
Definition: MultiplicityInvestigator.cc:76
MultiplicityInvestigator::m_wantVtxPosCorrHist
const bool m_wantVtxPosCorrHist
Definition: MultiplicityInvestigator.cc:68
iEvent
int iEvent
Definition: GenABIO.cc:224
DigiInvestigatorHistogramMaker::book
void book(const std::string dirname, const std::map< unsigned int, std::string > &labels)
Definition: DigiInvestigatorHistogramMaker.cc:64
DigiVtxPosCorrHistogramMaker::fill
void fill(const edm::Event &iEvent, const std::map< unsigned int, int > &ndigi)
Definition: DigiVtxPosCorrHistogramMaker.cc:108
DigiVertexCorrHistogramMaker
Definition: DigiVertexCorrHistogramMaker.h:19
DigiVertexCorrHistogramMaker::beginRun
void beginRun(const edm::Run &iRun)
Definition: DigiVertexCorrHistogramMaker.cc:127
DigiVertexCorrHistogramMaker::fill
void fill(const edm::Event &iEvent, const unsigned int nvtx, const std::map< unsigned int, int > &ndigi)
Definition: DigiVertexCorrHistogramMaker.cc:141
DigiPileupCorrHistogramMaker
Definition: DigiPileupCorrHistogramMaker.h:19
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
DigiPileupCorrHistogramMaker::book
void book(const std::string dirname, const std::map< unsigned int, std::string > &labels)
Definition: DigiPileupCorrHistogramMaker.cc:67
edm::EDConsumerBase::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: EDConsumerBase.h:155
edm::InputTag
Definition: InputTag.h:15
MultiplicityInvestigator::m_multiplicityMapToken
edm::EDGetTokenT< std::map< unsigned int, int > > m_multiplicityMapToken
Definition: MultiplicityInvestigator.cc:75
DigiLumiCorrHistogramMaker::beginRun
void beginRun(const edm::Run &iRun)
Definition: DigiLumiCorrHistogramMaker.cc:122
pwdgSkimBPark_cfi.vertices
vertices
Definition: pwdgSkimBPark_cfi.py:7