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  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 };
62 
63 //------------------------------------------------------------------------------
66  return event.getByLabel(tjTkAssociationMapTag_, result);
67 }
68 
69 //------------------------------------------------------------------------------
71  return event.getByLabel(beamSpotTag_, result);
72 }
73 
74 //------------------------------------------------------------------------------
77  return run.getByLabel(tkLasBeamTag_, result);
78 }
79 
80 //------------------------------------------------------------------------------
82  return run.getByLabel(tkLasBeamTag_, result);
83 }
84 
85 //------------------------------------------------------------------------------
87  return event.getByLabel(clusterValueMapTag_, result);
88 }
89 
90 #endif
edm::EDLooperBase::Status
Status
Definition: EDLooperBase.h:80
ESProducerLooper.h
AlignmentProducer::maxLoops_
const unsigned int maxLoops_
Definition: AlignmentProducer.h:60
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
AlignmentProducer::duringLoop
Status duringLoop(const edm::Event &, const edm::EventSetup &) override
Called at each event.
Definition: AlignmentProducer.cc:77
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:64
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:46
AlignmentProducerBase::beamSpotTag_
const edm::InputTag beamSpotTag_
BeamSpot.
Definition: AlignmentProducerBase.h:125
AlignmentProducer::getAliClusterValueMap
bool getAliClusterValueMap(const edm::Event &, edm::Handle< AliClusterValueMap > &) override
Definition: AlignmentProducer.h:86
AlignmentProducerBase::tjTkAssociationMapTag_
const edm::InputTag tjTkAssociationMapTag_
Map with tracks/trajectories.
Definition: AlignmentProducerBase.h:122
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:91
TrackerDigiGeometryRecord
Definition: TrackerDigiGeometryRecord.h:15
Run.h
AlignmentProducerBase
Definition: AlignmentProducerBase.h:70
edm::ESProducerLooper
Definition: ESProducerLooper.h:33
edm::ParameterSet
Definition: ParameterSet.h:47
AlignmentProducer::endOfLoop
Status endOfLoop(const edm::EventSetup &, unsigned int iLoop) override
Called at end of loop.
Definition: AlignmentProducer.cc:53
AlignmentProducer::~AlignmentProducer
~AlignmentProducer() override=default
Destructor.
AlignmentProducer::getTkFittedLasBeamCollection
bool getTkFittedLasBeamCollection(const edm::Run &, edm::Handle< TkFittedLasBeamCollection > &) override
Definition: AlignmentProducer.h:75
AlignmentProducer::endLuminosityBlock
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
Called at lumi block end, calling algorithm's endLuminosityBlock.
Definition: AlignmentProducer.cc:96
edm::EventSetup
Definition: EventSetup.h:58
AlignmentProducerBase::tkLasBeamTag_
const edm::InputTag tkLasBeamTag_
LAS beams in edm::Run (ignore if empty)
Definition: AlignmentProducerBase.h:128
AlignmentProducer::produceTracker
virtual std::shared_ptr< TrackerGeometry > produceTracker(const TrackerDigiGeometryRecord &)
Produce the tracker geometry.
Definition: AlignmentProducer.cc:24
writedatasetfile.run
run
Definition: writedatasetfile.py:27
AlignmentProducerBase::clusterValueMapTag_
const edm::InputTag clusterValueMapTag_
ValueMap containing associtaion cluster-flag.
Definition: AlignmentProducerBase.h:131
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:88
AlignmentProducer::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &) override
Called at run start and calling algorithms beginRun.
Definition: AlignmentProducer.cc:85
mps_fire.result
result
Definition: mps_fire.py:311
AlignmentProducer::getBeamSpot
bool getBeamSpot(const edm::Event &, edm::Handle< reco::BeamSpot > &) override
Definition: AlignmentProducer.h:70
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
AlignmentProducer::endOfJob
void endOfJob() override
Called at end of job.
Definition: AlignmentProducer.cc:36
AlignmentProducer::getTsosVectorCollection
bool getTsosVectorCollection(const edm::Run &, edm::Handle< TsosVectorCollection > &) override
Definition: AlignmentProducer.h:81
edm::EDLooperBase::beginOfJob
virtual void beginOfJob()
Definition: EDLooperBase.cc:99