CMS 3D CMS Logo

AlignmentProducerAsAnalyzer.h
Go to the documentation of this file.
1 #ifndef Alignment_CommonAlignmentProducer_AlignmentProducerAsAnalyzer_h
2 #define Alignment_CommonAlignmentProducer_AlignmentProducerAsAnalyzer_h
3 
25 
27  : public AlignmentProducerBase,
28  public edm::one::EDAnalyzer<edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources> {
29  //========================== PUBLIC METHODS ==================================
30 public: //====================================================================
33 
35  ~AlignmentProducerAsAnalyzer() override = default;
36 
37  /*** Code which implements the interface
38  Called from outside ***/
39 
40  void beginJob() override;
41  void endJob() override;
42 
43  void beginRun(const edm::Run&, const edm::EventSetup&) override;
44  void endRun(const edm::Run&, const edm::EventSetup&) override;
45 
46  void beginLuminosityBlock(const edm::LuminosityBlock&, const edm::EventSetup&) override;
47  void endLuminosityBlock(const edm::LuminosityBlock&, const edm::EventSetup&) override;
48 
49  void analyze(const edm::Event&, const edm::EventSetup&) override;
50 
51 private:
53  bool getBeamSpot(const edm::Event&, edm::Handle<reco::BeamSpot>&) override;
57 
63 };
64 
65 //------------------------------------------------------------------------------
68  return event.getByToken(tjTkAssociationMapToken_, result);
69 }
70 
71 //------------------------------------------------------------------------------
73  return event.getByToken(beamSpotToken_, result);
74 }
75 
76 //------------------------------------------------------------------------------
79  return run.getByToken(tkLasBeamToken_, result);
80 }
81 
82 //------------------------------------------------------------------------------
85  return run.getByToken(tsosVectorToken_, result);
86 }
87 
88 //------------------------------------------------------------------------------
91  return event.getByToken(clusterValueMapToken_, result);
92 }
93 
94 #endif
bool getTkFittedLasBeamCollection(const edm::Run &, edm::Handle< TkFittedLasBeamCollection > &) override
Alignment producer base class.
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
edm::EDGetTokenT< TkFittedLasBeamCollection > tkLasBeamToken_
edm::EDGetTokenT< AliClusterValueMap > clusterValueMapToken_
edm::EDGetTokenT< TrajTrackAssociationCollection > tjTkAssociationMapToken_
bool getAliClusterValueMap(const edm::Event &, edm::Handle< AliClusterValueMap > &) override
void endRun(const edm::Run &, const edm::EventSetup &) override
void analyze(const edm::Event &, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Run.h:315
bool getBeamSpot(const edm::Event &, edm::Handle< reco::BeamSpot > &) override
bool getTrajTrackAssociationCollection(const edm::Event &, edm::Handle< TrajTrackAssociationCollection > &) override
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
bool getTsosVectorCollection(const edm::Run &, edm::Handle< TsosVectorCollection > &) override
AlignmentProducerAsAnalyzer(const edm::ParameterSet &)
Constructor.
~AlignmentProducerAsAnalyzer() override=default
Destructor.
void beginRun(const edm::Run &, const edm::EventSetup &) override
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
Definition: event.py:1
Definition: Run.h:45
edm::EDGetTokenT< TsosVectorCollection > tsosVectorToken_