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
edm::EDLooperBase::Status
Status
Definition: EDLooperBase.h:79
ESProducerLooper.h
AlignmentProducer::maxLoops_
const unsigned int maxLoops_
Definition: AlignmentProducer.h:66
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
AlignmentProducer::duringLoop
Status duringLoop(const edm::Event &, const edm::EventSetup &) override
Called at each event.
Definition: AlignmentProducer.cc:93
edm::Run
Definition: Run.h:45
AlignmentProducerBase.h
Alignment producer base class.
AlignmentProducer::getTrajTrackAssociationCollection
bool getTrajTrackAssociationCollection(const edm::Event &, edm::Handle< TrajTrackAssociationCollection > &) override
Definition: AlignmentProducer.h:70
AlignmentProducer
Definition: AlignmentProducer.h:15
edm::Handle
Definition: AssociativeIterator.h:50
AlignmentProducer::startingNewLoop
void startingNewLoop(unsigned int iLoop) override
Called at beginning of loop.
Definition: AlignmentProducer.cc:62
AlignmentProducerBase::beamSpotTag_
const edm::InputTag beamSpotTag_
BeamSpot.
Definition: AlignmentProducerBase.h:123
AlignmentProducer::getAliClusterValueMap
bool getAliClusterValueMap(const edm::Event &, edm::Handle< AliClusterValueMap > &) override
Definition: AlignmentProducer.h:92
AlignmentProducerBase::tjTkAssociationMapTag_
const edm::InputTag tjTkAssociationMapTag_
Map with tracks/trajectories.
Definition: AlignmentProducerBase.h:120
AlignmentProducer::AlignmentProducer
AlignmentProducer(const edm::ParameterSet &)
Constructor.
Definition: AlignmentProducer.cc:13
AlignmentProducer::beginLuminosityBlock
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
Called at lumi block start, calling algorithm's beginLuminosityBlock.
Definition: AlignmentProducer.cc:107
TrackerDigiGeometryRecord
Definition: TrackerDigiGeometryRecord.h:15
Run.h
AlignmentProducerBase
Definition: AlignmentProducerBase.h:69
edm::ESProducerLooper
Definition: ESProducerLooper.h:33
edm::ParameterSet
Definition: ParameterSet.h:36
AlignmentProducer::endOfLoop
Status endOfLoop(const edm::EventSetup &, unsigned int iLoop) override
Called at end of loop.
Definition: AlignmentProducer.cc:69
AlignmentProducer::~AlignmentProducer
~AlignmentProducer() override=default
Destructor.
AlignmentProducer::getTkFittedLasBeamCollection
bool getTkFittedLasBeamCollection(const edm::Run &, edm::Handle< TkFittedLasBeamCollection > &) override
Definition: AlignmentProducer.h:81
AlignmentProducer::endLuminosityBlock
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
Called at lumi block end, calling algorithm's endLuminosityBlock.
Definition: AlignmentProducer.cc:112
edm::EventSetup
Definition: EventSetup.h:57
AlignmentProducerBase::tkLasBeamTag_
const edm::InputTag tkLasBeamTag_
LAS beams in edm::Run (ignore if empty)
Definition: AlignmentProducerBase.h:126
AlignmentProducer::produceTracker
virtual std::shared_ptr< TrackerGeometry > produceTracker(const TrackerDigiGeometryRecord &)
Produce the tracker geometry.
Definition: AlignmentProducer.cc:28
writedatasetfile.run
run
Definition: writedatasetfile.py:27
AlignmentProducerBase::clusterValueMapTag_
const edm::InputTag clusterValueMapTag_
ValueMap containing associtaion cluster-flag.
Definition: AlignmentProducerBase.h:129
AlignmentProducer::endRun
void endRun(const edm::Run &, const edm::EventSetup &) override
Called at run end - currently reading TkFittedLasBeam if an InpuTag is given for that.
Definition: AlignmentProducer.cc:104
AlignmentProducer::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &) override
Called at run start and calling algorithms beginRun.
Definition: AlignmentProducer.cc:101
mps_fire.result
result
Definition: mps_fire.py:303
AlignmentProducer::getBeamSpot
bool getBeamSpot(const edm::Event &, edm::Handle< reco::BeamSpot > &) override
Definition: AlignmentProducer.h:76
AlignmentProducer::produceCSC
virtual std::shared_ptr< CSCGeometry > produceCSC(const MuonGeometryRecord &)
Produce the muon CSC geometry.
Definition: AlignmentProducer.cc:40
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
MuonGeometryRecord
Definition: MuonGeometryRecord.h:34
AlignmentProducer::endOfJob
void endOfJob() override
Called at end of job.
Definition: AlignmentProducer.cc:52
AlignmentProducer::produceDT
virtual std::shared_ptr< DTGeometry > produceDT(const MuonGeometryRecord &)
Produce the muon DT geometry.
Definition: AlignmentProducer.cc:34
AlignmentProducer::getTsosVectorCollection
bool getTsosVectorCollection(const edm::Run &, edm::Handle< TsosVectorCollection > &) override
Definition: AlignmentProducer.h:87
edm::EDLooperBase::beginOfJob
virtual void beginOfJob()
Definition: EDLooperBase.cc:88