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 
14 
16 public:
19 
21  ~AlignmentProducer() override = default;
22 
24  virtual std::shared_ptr<TrackerGeometry> produceTracker(const TrackerDigiGeometryRecord&);
25 
27  virtual std::shared_ptr<DTGeometry> produceDT(const MuonGeometryRecord&);
28 
30  virtual std::shared_ptr<CSCGeometry> produceCSC(const MuonGeometryRecord&);
31 
33  void beginOfJob(const edm::EventSetup&) override;
34 
36  void endOfJob() override;
37 
39  void startingNewLoop(unsigned int iLoop) override;
40 
42  Status endOfLoop(const edm::EventSetup&, unsigned int iLoop) override;
43 
45  void beginRun(const edm::Run&, const edm::EventSetup&) override;
46 
48  void endRun(const edm::Run&, const edm::EventSetup&) override;
49 
51  void beginLuminosityBlock(const edm::LuminosityBlock&, const edm::EventSetup&) override;
52 
54  void endLuminosityBlock(const edm::LuminosityBlock&, const edm::EventSetup&) override;
55 
57  Status duringLoop(const edm::Event&, const edm::EventSetup&) override;
58 
59 private:
61  bool getBeamSpot(const edm::Event&, edm::Handle<reco::BeamSpot>&) override;
65 
66  const unsigned int maxLoops_;
67 };
68 
69 //------------------------------------------------------------------------------
72  return event.getByLabel(tjTkAssociationMapTag_, result);
73 }
74 
75 //------------------------------------------------------------------------------
77  return event.getByLabel(beamSpotTag_, result);
78 }
79 
80 //------------------------------------------------------------------------------
83  return run.getByLabel(tkLasBeamTag_, result);
84 }
85 
86 //------------------------------------------------------------------------------
88  return run.getByLabel(tkLasBeamTag_, result);
89 }
90 
91 //------------------------------------------------------------------------------
93  return event.getByLabel(clusterValueMapTag_, result);
94 }
95 
96 #endif
bool getByLabel(std::string const &label, Handle< PROD > &result) const
Definition: Run.h:280
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: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.
void beginRun(const edm::Run &, const edm::EventSetup &) override
Called at run start and calling algorithms beginRun.