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
EDAnalyzer.h
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
edm::EDGetTokenT
Definition: EDGetToken.h:33
AlignmentProducerAsAnalyzer::tjTkAssociationMapToken_
edm::EDGetTokenT< TrajTrackAssociationCollection > tjTkAssociationMapToken_
Definition: AlignmentProducerAsAnalyzer.h:58
AlignmentProducerAsAnalyzer::~AlignmentProducerAsAnalyzer
~AlignmentProducerAsAnalyzer() override=default
Destructor.
AlignmentProducerAsAnalyzer::getBeamSpot
bool getBeamSpot(const edm::Event &, edm::Handle< reco::BeamSpot > &) override
Definition: AlignmentProducerAsAnalyzer.h:72
AlignmentProducerBase.h
Alignment producer base class.
AlignmentProducerAsAnalyzer::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &) override
Definition: AlignmentProducerAsAnalyzer.cc:44
AlignmentProducerAsAnalyzer::tkLasBeamToken_
edm::EDGetTokenT< TkFittedLasBeamCollection > tkLasBeamToken_
Definition: AlignmentProducerAsAnalyzer.h:60
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
AlignmentProducerAsAnalyzer::tsosVectorToken_
edm::EDGetTokenT< TsosVectorCollection > tsosVectorToken_
Definition: AlignmentProducerAsAnalyzer.h:61
edm::Handle
Definition: AssociativeIterator.h:50
AlignmentProducerAsAnalyzer::getTkFittedLasBeamCollection
bool getTkFittedLasBeamCollection(const edm::Run &, edm::Handle< TkFittedLasBeamCollection > &) override
Definition: AlignmentProducerAsAnalyzer.h:77
AlignmentProducerAsAnalyzer::beginJob
void beginJob() override
Definition: AlignmentProducerAsAnalyzer.cc:28
AlignmentProducerAsAnalyzer::getTrajTrackAssociationCollection
bool getTrajTrackAssociationCollection(const edm::Event &, edm::Handle< TrajTrackAssociationCollection > &) override
Definition: AlignmentProducerAsAnalyzer.h:66
AlignmentProducerAsAnalyzer
Definition: AlignmentProducerAsAnalyzer.h:26
Run.h
AlignmentProducerAsAnalyzer::beamSpotToken_
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
Definition: AlignmentProducerAsAnalyzer.h:59
AlignmentProducerAsAnalyzer::endLuminosityBlock
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
Definition: AlignmentProducerAsAnalyzer.cc:58
AlignmentProducerBase
Definition: AlignmentProducerBase.h:69
AlignmentProducerAsAnalyzer::beginLuminosityBlock
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
Definition: AlignmentProducerAsAnalyzer.cc:52
AlignmentProducerAsAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: AlignmentProducerAsAnalyzer.cc:64
edm::ParameterSet
Definition: ParameterSet.h:36
AlignmentProducerAsAnalyzer::getTsosVectorCollection
bool getTsosVectorCollection(const edm::Run &, edm::Handle< TsosVectorCollection > &) override
Definition: AlignmentProducerAsAnalyzer.h:83
edm::EventSetup
Definition: EventSetup.h:57
AlignmentProducerAsAnalyzer::endRun
void endRun(const edm::Run &, const edm::EventSetup &) override
Definition: AlignmentProducerAsAnalyzer.cc:49
writedatasetfile.run
run
Definition: writedatasetfile.py:27
AlignmentProducerAsAnalyzer::clusterValueMapToken_
edm::EDGetTokenT< AliClusterValueMap > clusterValueMapToken_
Definition: AlignmentProducerAsAnalyzer.h:62
mps_fire.result
result
Definition: mps_fire.py:303
AlignmentProducerAsAnalyzer::endJob
void endJob() override
Definition: AlignmentProducerAsAnalyzer.cc:31
AlignmentProducerAsAnalyzer::AlignmentProducerAsAnalyzer
AlignmentProducerAsAnalyzer(const edm::ParameterSet &)
Constructor.
Definition: AlignmentProducerAsAnalyzer.cc:16
event
Definition: event.py:1
AlignmentProducerAsAnalyzer::getAliClusterValueMap
bool getAliClusterValueMap(const edm::Event &, edm::Handle< AliClusterValueMap > &) override
Definition: AlignmentProducerAsAnalyzer.h:89
edm::Event
Definition: Event.h:73