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  virtual ~AlignmentProducerAsAnalyzer() = default;
42 
43  /*** Code which implements the interface
44  Called from outside ***/
45 
46  virtual void beginJob() override;
47  virtual void endJob() override;
48 
49  virtual void beginRun(const edm::Run&, const edm::EventSetup&) override;
50  virtual void endRun(const edm::Run&, const edm::EventSetup&) override;
51 
52  virtual void beginLuminosityBlock(const edm::LuminosityBlock&,
53  const edm::EventSetup&) override;
54  virtual void endLuminosityBlock(const edm::LuminosityBlock&,
55  const edm::EventSetup&) override;
56 
57  virtual void analyze(const edm::Event&, const edm::EventSetup&) override;
58 
59 private:
62  virtual bool getBeamSpot(const edm::Event&, edm::Handle<reco::BeamSpot>&) override;
63  virtual bool getTkFittedLasBeamCollection(const edm::Run&,
65  virtual bool getTsosVectorCollection(const edm::Run&,
67  virtual bool getAliClusterValueMap(const edm::Event&,
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
virtual bool getTkFittedLasBeamCollection(const edm::Run &, edm::Handle< TkFittedLasBeamCollection > &) override
Alignment producer base class.
virtual void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
virtual ~AlignmentProducerAsAnalyzer()=default
Destructor.
edm::EDGetTokenT< TkFittedLasBeamCollection > tkLasBeamToken_
edm::EDGetTokenT< AliClusterValueMap > clusterValueMapToken_
edm::EDGetTokenT< TrajTrackAssociationCollection > tjTkAssociationMapToken_
virtual bool getAliClusterValueMap(const edm::Event &, edm::Handle< AliClusterValueMap > &) override
virtual void endRun(const edm::Run &, const edm::EventSetup &) override
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Run.h:240
virtual bool getBeamSpot(const edm::Event &, edm::Handle< reco::BeamSpot > &) override
virtual bool getTrajTrackAssociationCollection(const edm::Event &, edm::Handle< TrajTrackAssociationCollection > &) override
virtual void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
virtual bool getTsosVectorCollection(const edm::Run &, edm::Handle< TsosVectorCollection > &) override
AlignmentProducerAsAnalyzer(const edm::ParameterSet &)
Constructor.
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
Definition: event.py:1
Definition: Run.h:42
edm::EDGetTokenT< TsosVectorCollection > tsosVectorToken_