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() = 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  virtual void beginOfJob(const edm::EventSetup&) override;
39 
41  virtual void endOfJob() override;
42 
44  virtual void startingNewLoop(unsigned int iLoop) override;
45 
47  virtual Status endOfLoop(const edm::EventSetup&, unsigned int iLoop) override;
48 
50  virtual void beginRun(const edm::Run&, const edm::EventSetup&) override;
51 
53  virtual void endRun(const edm::Run&, const edm::EventSetup&) override;
54 
56  virtual void beginLuminosityBlock(const edm::LuminosityBlock&,
57  const edm::EventSetup&) override;
58 
60  virtual void endLuminosityBlock(const edm::LuminosityBlock&,
61  const edm::EventSetup&) override;
62 
64  virtual Status duringLoop(const edm::Event&, const edm::EventSetup&) override;
65 
66 private:
69  virtual bool getBeamSpot(const edm::Event&, edm::Handle<reco::BeamSpot>&) override;
70  virtual bool getTkFittedLasBeamCollection(const edm::Run&,
72  virtual bool getTsosVectorCollection(const edm::Run&,
74  virtual bool getAliClusterValueMap(const edm::Event&,
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:201
virtual void endOfJob() override
Called at end of job.
virtual 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_
virtual bool getTrajTrackAssociationCollection(const edm::Event &, edm::Handle< TrajTrackAssociationCollection > &) override
virtual void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
Called at lumi block start, calling algorithm&#39;s beginLuminosityBlock.
~AlignmentProducer()=default
Destructor.
virtual void startingNewLoop(unsigned int iLoop) override
Called at beginning of loop.
virtual bool getAliClusterValueMap(const edm::Event &, edm::Handle< AliClusterValueMap > &) override
AlignmentProducer(const edm::ParameterSet &)
Constructor.
const edm::InputTag beamSpotTag_
BeamSpot.
virtual Status endOfLoop(const edm::EventSetup &, unsigned int iLoop) override
Called at end of loop.
virtual 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
virtual bool getTkFittedLasBeamCollection(const edm::Run &, edm::Handle< TkFittedLasBeamCollection > &) override
virtual bool getBeamSpot(const edm::Event &, edm::Handle< reco::BeamSpot > &) override
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:42
virtual Status duringLoop(const edm::Event &, const edm::EventSetup &) override
Called at each event.
virtual void endRun(const edm::Run &, const edm::EventSetup &) override
Called at run end - currently reading TkFittedLasBeam if an InpuTag is given for that.
virtual void beginRun(const edm::Run &, const edm::EventSetup &) override
Called at run start and calling algorithms beginRun.