CMS 3D CMS Logo

AlignmentProducer.h
Go to the documentation of this file.
1 #ifndef Alignment_CommonAlignmentAlgorithm_TrackerAlignmentProducer_h
2 #define Alignment_CommonAlignmentAlgorithm_TrackerAlignmentProducer_h
3 
10 
11 
15 
16 
18 {
19 
20 public:
21 
24 
26  ~AlignmentProducer() override = default;
27 
29  virtual std::shared_ptr<TrackerGeometry> produceTracker(const TrackerDigiGeometryRecord&);
30 
32  virtual std::shared_ptr<DTGeometry> produceDT(const MuonGeometryRecord&);
33 
35  virtual std::shared_ptr<CSCGeometry> produceCSC(const MuonGeometryRecord&);
36 
38  void beginOfJob(const edm::EventSetup&) override;
39 
41  void endOfJob() override;
42 
44  void startingNewLoop(unsigned int iLoop) override;
45 
47  Status endOfLoop(const edm::EventSetup&, unsigned int iLoop) override;
48 
50  void beginRun(const edm::Run&, const edm::EventSetup&) override;
51 
53  void endRun(const edm::Run&, const edm::EventSetup&) override;
54 
57  const edm::EventSetup&) override;
58 
61  const edm::EventSetup&) override;
62 
64  Status duringLoop(const edm::Event&, const edm::EventSetup&) override;
65 
66 private:
69  bool getBeamSpot(const edm::Event&, edm::Handle<reco::BeamSpot>&) override;
76 
77  const unsigned int maxLoops_;
78 
79 };
80 
81 
82 //------------------------------------------------------------------------------
83 inline
84 bool
87  return event.getByLabel(tjTkAssociationMapTag_, result);
88 }
89 
90 
91 //------------------------------------------------------------------------------
92 inline
93 bool
96  return event.getByLabel(beamSpotTag_, result);
97 }
98 
99 
100 //------------------------------------------------------------------------------
101 inline
102 bool
105  return run.getByLabel(tkLasBeamTag_, result);
106 }
107 
108 
109 //------------------------------------------------------------------------------
110 inline
111 bool
114  return run.getByLabel(tkLasBeamTag_, result);
115 }
116 
117 
118 //------------------------------------------------------------------------------
119 inline
120 bool
123  return event.getByLabel(clusterValueMapTag_, result);
124 }
125 
126 #endif
bool getByLabel(std::string const &label, Handle< PROD > &result) const
Definition: Run.h:248
void endOfJob() override
Called at end of job.
bool getTsosVectorCollection(const edm::Run &, edm::Handle< TsosVectorCollection > &) override
const edm::InputTag tjTkAssociationMapTag_
Map with tracks/trajectories.
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.
const edm::InputTag beamSpotTag_
BeamSpot.
Status endOfLoop(const edm::EventSetup &, unsigned int iLoop) override
Called at end of loop.
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
Called at lumi block end, calling algorithm&#39;s endLuminosityBlock.
virtual void beginOfJob()
Definition: EDLooperBase.cc:88
bool getTkFittedLasBeamCollection(const edm::Run &, edm::Handle< TkFittedLasBeamCollection > &) override
bool getBeamSpot(const edm::Event &, edm::Handle< reco::BeamSpot > &) override
~AlignmentProducer() override=default
Destructor.
const edm::InputTag tkLasBeamTag_
LAS beams in edm::Run (ignore if empty)
virtual std::shared_ptr< TrackerGeometry > produceTracker(const TrackerDigiGeometryRecord &)
Produce the tracker geometry.
virtual std::shared_ptr< DTGeometry > produceDT(const MuonGeometryRecord &)
Produce the muon DT geometry.
const edm::InputTag clusterValueMapTag_
ValueMap containing associtaion cluster-flag.
virtual std::shared_ptr< CSCGeometry > produceCSC(const MuonGeometryRecord &)
Produce the muon CSC geometry.
Definition: event.py:1
Definition: Run.h:43
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.
void beginRun(const edm::Run &, const edm::EventSetup &) override
Called at run start and calling algorithms beginRun.