CMS 3D CMS Logo

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

#include <Validation/RecoVertex/plugins/BeamSpotAnalyzer.cc>

Inheritance diagram for AnotherBeamSpotAnalyzer:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 AnotherBeamSpotAnalyzer (const edm::ParameterSet &)
 
 ~AnotherBeamSpotAnalyzer ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

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

Private Attributes

edm::InputTag _bscollection
 
BeamSpotHistogramMaker _bshm
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
CurrentProcessingContext const * currentContext () const
 
- 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)
 

Detailed Description

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

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

Definition at line 49 of file BeamSpotAnalyzer.cc.

Constructor & Destructor Documentation

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

Definition at line 81 of file BeamSpotAnalyzer.cc.

References _bshm, and BeamSpotHistogramMaker::book().

81  :
82  _bshm(iConfig.getParameter<edm::ParameterSet>("bsHistogramMakerPSet")),
83  _bscollection(iConfig.getParameter<edm::InputTag>("bsCollection"))
84 {
85  //now do what ever initialization is needed
86 
87  //
88 
89  _bshm.book();
90 
91 }
T getParameter(std::string const &) const
void book(const std::string dirname="")
BeamSpotHistogramMaker _bshm
AnotherBeamSpotAnalyzer::~AnotherBeamSpotAnalyzer ( )

Definition at line 94 of file BeamSpotAnalyzer.cc.

95 {
96 
97  // do anything here that needs to be done at desctruction time
98  // (e.g. close files, deallocate resources etc.)
99 
100 }

Member Function Documentation

void AnotherBeamSpotAnalyzer::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
privatevirtual

Implements edm::EDAnalyzer.

Definition at line 109 of file BeamSpotAnalyzer.cc.

References _bscollection, _bshm, BeamSpotHistogramMaker::fill(), edm::Event::getByLabel(), and edm::EventBase::orbitNumber().

110 {
111  using namespace edm;
112 
113  // get BS
114 
116  iEvent.getByLabel(_bscollection,bs);
117  _bshm.fill(iEvent.orbitNumber(),*bs);
118 
119 }
void fill(const unsigned int orbit, const reco::BeamSpot &bs)
BeamSpotHistogramMaker _bshm
int orbitNumber() const
Definition: EventBase.h:63
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:361
void AnotherBeamSpotAnalyzer::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 124 of file BeamSpotAnalyzer.cc.

125 { }
void AnotherBeamSpotAnalyzer::beginRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 128 of file BeamSpotAnalyzer.cc.

References _bshm, BeamSpotHistogramMaker::beginRun(), and edm::RunBase::run().

128  {
129 
130  _bshm.beginRun(iRun.run());
131 
132 }
RunNumber_t run() const
Definition: RunBase.h:42
void beginRun(const unsigned int nrun)
BeamSpotHistogramMaker _bshm
void AnotherBeamSpotAnalyzer::endJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 140 of file BeamSpotAnalyzer.cc.

140  {
141 }
void AnotherBeamSpotAnalyzer::endRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 135 of file BeamSpotAnalyzer.cc.

135  {
136 
137 }

Member Data Documentation

edm::InputTag AnotherBeamSpotAnalyzer::_bscollection
private

Definition at line 65 of file BeamSpotAnalyzer.cc.

Referenced by analyze().

BeamSpotHistogramMaker AnotherBeamSpotAnalyzer::_bshm
private

Definition at line 64 of file BeamSpotAnalyzer.cc.

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