CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
AlignmentProducer.h
Go to the documentation of this file.
1 #ifndef Alignment_CommonAlignmentAlgorithm_TrackerAlignmentProducer_h
2 #define Alignment_CommonAlignmentAlgorithm_TrackerAlignmentProducer_h
3 
10 
14 
16 public:
19 
21  ~AlignmentProducer() override = default;
22 
24  virtual std::shared_ptr<TrackerGeometry> produceTracker(const TrackerDigiGeometryRecord&);
25 
27  void beginOfJob(const edm::EventSetup&) override;
28 
30  void endOfJob() override;
31 
33  void startingNewLoop(unsigned int iLoop) override;
34 
36  Status endOfLoop(const edm::EventSetup&, unsigned int iLoop) override;
37 
39  void beginRun(const edm::Run&, const edm::EventSetup&) override;
40 
42  void endRun(const edm::Run&, const edm::EventSetup&) override;
43 
45  void beginLuminosityBlock(const edm::LuminosityBlock&, const edm::EventSetup&) override;
46 
48  void endLuminosityBlock(const edm::LuminosityBlock&, const edm::EventSetup&) override;
49 
51  Status duringLoop(const edm::Event&, const edm::EventSetup&) override;
52 
53 private:
55  bool getBeamSpot(const edm::Event&, edm::Handle<reco::BeamSpot>&) override;
59 
60  const unsigned int maxLoops_;
61 
67 };
68 
69 //------------------------------------------------------------------------------
72  return event.getByToken(trajTrackAssociationCollectionToken_, result);
73 }
74 
75 //------------------------------------------------------------------------------
77  return event.getByToken(bsToken_, result);
78 }
79 
80 //------------------------------------------------------------------------------
83  return run.getByToken(tkFittedLasBeamCollectionToken_, result);
84 }
85 
86 //------------------------------------------------------------------------------
88  return run.getByToken(tsosVectorCollectionToken_, result);
89 }
90 
91 //------------------------------------------------------------------------------
93  return event.getByToken(aliClusterValueMapToken_, result);
94 }
95 
96 #endif
void endOfJob() override
Called at end of job.
bool getTsosVectorCollection(const edm::Run &, edm::Handle< TsosVectorCollection > &) override
edm::EDGetTokenT< reco::BeamSpot > bsToken_
Alignment producer base class.
const unsigned int maxLoops_
bool getTrajTrackAssociationCollection(const edm::Event &, edm::Handle< TrajTrackAssociationCollection > &) override
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
Called at lumi block start, calling algorithm&#39;s beginLuminosityBlock.
void startingNewLoop(unsigned int iLoop) override
Called at beginning of loop.
bool getAliClusterValueMap(const edm::Event &, edm::Handle< AliClusterValueMap > &) override
AlignmentProducer(const edm::ParameterSet &)
Constructor.
Status endOfLoop(const edm::EventSetup &, unsigned int iLoop) override
Called at end of loop.
edm::EDGetTokenT< TkFittedLasBeamCollection > tkFittedLasBeamCollectionToken_
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
Called at lumi block end, calling algorithm&#39;s endLuminosityBlock.
virtual void beginOfJob()
bool getTkFittedLasBeamCollection(const edm::Run &, edm::Handle< TkFittedLasBeamCollection > &) override
bool getBeamSpot(const edm::Event &, edm::Handle< reco::BeamSpot > &) override
edm::EDGetTokenT< TsosVectorCollection > tsosVectorCollectionToken_
~AlignmentProducer() override=default
Destructor.
edm::EDGetTokenT< AliClusterValueMap > aliClusterValueMapToken_
virtual std::shared_ptr< TrackerGeometry > produceTracker(const TrackerDigiGeometryRecord &)
Produce the tracker geometry.
Definition: event.py:1
Definition: Run.h:45
Status duringLoop(const edm::Event &, const edm::EventSetup &) override
Called at each event.
void endRun(const edm::Run &, const edm::EventSetup &) override
Called at run end - currently reading TkFittedLasBeam if an InpuTag is given for that.
edm::EDGetTokenT< TrajTrackAssociationCollection > trajTrackAssociationCollectionToken_
Number of loops to loop.
void beginRun(const edm::Run &, const edm::EventSetup &) override
Called at run start and calling algorithms beginRun.