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 
26 
27 
29  public AlignmentProducerBase,
30  public edm::one::EDAnalyzer<edm::one::WatchRuns,
31  edm::one::WatchLuminosityBlocks,
32  edm::one::SharedResources>
33 {
34  //========================== PUBLIC METHODS ==================================
35 public: //====================================================================
36 
39 
41  ~AlignmentProducerAsAnalyzer() override = default;
42 
43  /*** Code which implements the interface
44  Called from outside ***/
45 
46  void beginJob() override;
47  void endJob() override;
48 
49  void beginRun(const edm::Run&, const edm::EventSetup&) override;
50  void endRun(const edm::Run&, const edm::EventSetup&) override;
51 
53  const edm::EventSetup&) override;
55  const edm::EventSetup&) override;
56 
57  void analyze(const edm::Event&, const edm::EventSetup&) override;
58 
59 private:
62  bool getBeamSpot(const edm::Event&, edm::Handle<reco::BeamSpot>&) override;
69 
75 
76 };
77 
78 
79 //------------------------------------------------------------------------------
80 inline
81 bool
84  return event.getByToken(tjTkAssociationMapToken_, result);
85 }
86 
87 
88 //------------------------------------------------------------------------------
89 inline
90 bool
93  return event.getByToken(beamSpotToken_, result);
94 }
95 
96 
97 //------------------------------------------------------------------------------
98 inline
99 bool
102  return run.getByToken(tkLasBeamToken_, result);
103 }
104 
105 
106 //------------------------------------------------------------------------------
107 inline
108 bool
111  return run.getByToken(tsosVectorToken_, result);
112 }
113 
114 
115 //------------------------------------------------------------------------------
116 inline
117 bool
120  return event.getByToken(clusterValueMapToken_, result);
121 }
122 
123 #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:342
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:44
edm::EDGetTokenT< TsosVectorCollection > tsosVectorToken_