CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
AlignmentProducerAsAnalyzer.h
Go to the documentation of this file.
1 #ifndef Alignment_CommonAlignmentProducer_AlignmentProducerAsAnalyzer_h
2 #define Alignment_CommonAlignmentProducer_AlignmentProducerAsAnalyzer_h
3 
27 
29  public edm::one::EDProducer<edm::EndProcessBlockProducer,
30  edm::one::WatchLuminosityBlocks,
31  edm::one::WatchRuns,
32  edm::one::SharedResources,
33  edm::Accumulator> {
34  //========================== PUBLIC METHODS ==================================
35 public: //====================================================================
38 
40  ~AlignmentProducerAsAnalyzer() override = default;
41 
42  /*** Code which implements the interface
43  Called from outside ***/
44 
45  void beginJob() override;
46  void endJob() override;
47 
48  void beginRun(const edm::Run&, const edm::EventSetup&) override;
49  void endRun(const edm::Run&, const edm::EventSetup&) override;
50 
51  void beginLuminosityBlock(const edm::LuminosityBlock&, const edm::EventSetup&) override;
52  void endLuminosityBlock(const edm::LuminosityBlock&, const edm::EventSetup&) override;
53  void endProcessBlockProduce(edm::ProcessBlock& processBlock) override;
54 
55  void accumulate(const edm::Event&, const edm::EventSetup&) override;
56 
57 private:
60  bool getBeamSpot(const edm::Event&, edm::Handle<reco::BeamSpot>&) override;
64 
70 };
71 
72 //------------------------------------------------------------------------------
75  return event.getByToken(tjTkAssociationMapToken_, result);
76 }
77 
78 //------------------------------------------------------------------------------
80  return event.getByToken(beamSpotToken_, result);
81 }
82 
83 //------------------------------------------------------------------------------
86  return run.getByToken(tkLasBeamToken_, result);
87 }
88 
89 //------------------------------------------------------------------------------
92  return run.getByToken(tsosVectorToken_, result);
93 }
94 
95 //------------------------------------------------------------------------------
98  return event.getByToken(clusterValueMapToken_, result);
99 }
100 
101 #endif
bool getTkFittedLasBeamCollection(const edm::Run &, edm::Handle< TkFittedLasBeamCollection > &) override
Alignment producer base class.
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
void accumulate(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< TkFittedLasBeamCollection > tkLasBeamToken_
tuple result
Definition: mps_fire.py:311
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
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Run.h:318
void endProcessBlockProduce(edm::ProcessBlock &processBlock) override
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.
edm::EDPutTokenT< AlignmentToken > token_
~AlignmentProducerAsAnalyzer() override=default
Destructor.
void beginRun(const edm::Run &, const edm::EventSetup &) override
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
Definition: Run.h:45
edm::EDGetTokenT< TsosVectorCollection > tsosVectorToken_