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 
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
EDProducer.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:65
AlignmentProducerAsAnalyzer::~AlignmentProducerAsAnalyzer
~AlignmentProducerAsAnalyzer() override=default
Destructor.
edm::EDPutTokenT< AlignmentToken >
ProcessBlock.h
AlignmentProducerAsAnalyzer::getBeamSpot
bool getBeamSpot(const edm::Event &, edm::Handle< reco::BeamSpot > &) override
Definition: AlignmentProducerAsAnalyzer.h:79
AlignmentProducerBase.h
Alignment producer base class.
AlignmentProducerAsAnalyzer::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &) override
Definition: AlignmentProducerAsAnalyzer.cc:34
edm::one::EDProducer
Definition: EDProducer.h:30
AlignmentProducerAsAnalyzer::tkLasBeamToken_
edm::EDGetTokenT< TkFittedLasBeamCollection > tkLasBeamToken_
Definition: AlignmentProducerAsAnalyzer.h:67
AlignmentProducerAsAnalyzer::endProcessBlockProduce
void endProcessBlockProduce(edm::ProcessBlock &processBlock) override
Definition: AlignmentProducerAsAnalyzer.cc:53
AlignmentProducerAsAnalyzer::tsosVectorToken_
edm::EDGetTokenT< TsosVectorCollection > tsosVectorToken_
Definition: AlignmentProducerAsAnalyzer.h:68
edm::Handle
Definition: AssociativeIterator.h:50
AlignmentProducerAsAnalyzer::token_
edm::EDPutTokenT< AlignmentToken > token_
Definition: AlignmentProducerAsAnalyzer.h:58
AlignmentToken.h
AlignmentProducerAsAnalyzer::getTkFittedLasBeamCollection
bool getTkFittedLasBeamCollection(const edm::Run &, edm::Handle< TkFittedLasBeamCollection > &) override
Definition: AlignmentProducerAsAnalyzer.h:84
AlignmentProducerAsAnalyzer::beginJob
void beginJob() override
Definition: AlignmentProducerAsAnalyzer.cc:28
AlignmentProducerAsAnalyzer::getTrajTrackAssociationCollection
bool getTrajTrackAssociationCollection(const edm::Event &, edm::Handle< TrajTrackAssociationCollection > &) override
Definition: AlignmentProducerAsAnalyzer.h:73
AlignmentProducerAsAnalyzer
Definition: AlignmentProducerAsAnalyzer.h:28
Run.h
AlignmentProducerAsAnalyzer::beamSpotToken_
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
Definition: AlignmentProducerAsAnalyzer.h:66
AlignmentProducerAsAnalyzer::endLuminosityBlock
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
Definition: AlignmentProducerAsAnalyzer.cc:48
AlignmentProducerBase
Definition: AlignmentProducerBase.h:69
AlignmentProducerAsAnalyzer::beginLuminosityBlock
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
Definition: AlignmentProducerAsAnalyzer.cc:42
edm::ParameterSet
Definition: ParameterSet.h:47
AlignmentProducerAsAnalyzer::getTsosVectorCollection
bool getTsosVectorCollection(const edm::Run &, edm::Handle< TsosVectorCollection > &) override
Definition: AlignmentProducerAsAnalyzer.h:90
edm::EventSetup
Definition: EventSetup.h:57
AlignmentProducerAsAnalyzer::endRun
void endRun(const edm::Run &, const edm::EventSetup &) override
Definition: AlignmentProducerAsAnalyzer.cc:39
writedatasetfile.run
run
Definition: writedatasetfile.py:27
AlignmentProducerAsAnalyzer::clusterValueMapToken_
edm::EDGetTokenT< AliClusterValueMap > clusterValueMapToken_
Definition: AlignmentProducerAsAnalyzer.h:69
mps_fire.result
result
Definition: mps_fire.py:311
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:96
edm::Event
Definition: Event.h:73
edm::ProcessBlock
Definition: ProcessBlock.h:36
AlignmentProducerAsAnalyzer::accumulate
void accumulate(const edm::Event &, const edm::EventSetup &) override
Definition: AlignmentProducerAsAnalyzer.cc:69