CMS 3D CMS Logo

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

List of all members.

Public Member Functions

 AnotherBeamSpotAnalyzer (const edm::ParameterSet &)
 ~AnotherBeamSpotAnalyzer ()

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

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().

                                                                              :
  _bshm(iConfig.getParameter<edm::ParameterSet>("bsHistogramMakerPSet")),
  _bscollection(iConfig.getParameter<edm::InputTag>("bsCollection"))
{
   //now do what ever initialization is needed

  //

  _bshm.book();

}
AnotherBeamSpotAnalyzer::~AnotherBeamSpotAnalyzer ( )

Definition at line 94 of file BeamSpotAnalyzer.cc.

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

}

Member Function Documentation

void AnotherBeamSpotAnalyzer::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
) [private, virtual]

Implements edm::EDAnalyzer.

Definition at line 109 of file BeamSpotAnalyzer.cc.

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

{
  using namespace edm;
  
  // get BS

  Handle<reco::BeamSpot> bs;
  iEvent.getByLabel(_bscollection,bs);
  _bshm.fill(iEvent.orbitNumber(),*bs);

}
void AnotherBeamSpotAnalyzer::beginJob ( void  ) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 124 of file BeamSpotAnalyzer.cc.

{ }
void AnotherBeamSpotAnalyzer::beginRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 128 of file BeamSpotAnalyzer.cc.

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

                                                                                 {

  _bshm.beginRun(iRun.run());

}
void AnotherBeamSpotAnalyzer::endJob ( void  ) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 140 of file BeamSpotAnalyzer.cc.

                                {
}
void AnotherBeamSpotAnalyzer::endRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 135 of file BeamSpotAnalyzer.cc.

                                                                               {

}

Member Data Documentation

Definition at line 65 of file BeamSpotAnalyzer.cc.

Referenced by analyze().

Definition at line 64 of file BeamSpotAnalyzer.cc.

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