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 
67 };
68 
69 //------------------------------------------------------------------------------
72  return event.getByToken(trajTrackAssociationCollectionToken_, result);
73 }
74 
75 //------------------------------------------------------------------------------
77  return event.getByToken(bsToken_, result);
78 }
79 
80 //------------------------------------------------------------------------------
83  return run.getByToken(tkFittedLasBeamCollectionToken_, result);
84 }
85 
86 //------------------------------------------------------------------------------
88  return run.getByToken(tsosVectorCollectionToken_, result);
89 }
90 
91 //------------------------------------------------------------------------------
93  return event.getByToken(aliClusterValueMapToken_, result);
94 }
95 
96 #endif
edm::EDLooperBase::Status
Status
Definition: EDLooperBase.h:82
ESProducerLooper.h
AlignmentProducer::maxLoops_
const unsigned int maxLoops_
Definition: AlignmentProducer.h:60
AlignmentProducer::aliClusterValueMapToken_
edm::EDGetTokenT< AliClusterValueMap > aliClusterValueMapToken_
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:85
edm::Run
Definition: Run.h:45
edm::EDGetTokenT
Definition: EDGetToken.h:33
AlignmentProducer::trajTrackAssociationCollectionToken_
edm::EDGetTokenT< TrajTrackAssociationCollection > trajTrackAssociationCollectionToken_
Number of loops to loop.
Definition: AlignmentProducer.h:62
AlignmentProducer::bsToken_
edm::EDGetTokenT< reco::BeamSpot > bsToken_
Definition: AlignmentProducer.h:63
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:54
AlignmentProducer::getAliClusterValueMap
bool getAliClusterValueMap(const edm::Event &, edm::Handle< AliClusterValueMap > &) override
Definition: AlignmentProducer.h:92
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:99
TrackerDigiGeometryRecord
Definition: TrackerDigiGeometryRecord.h:16
Run.h
AlignmentProducer::tkFittedLasBeamCollectionToken_
edm::EDGetTokenT< TkFittedLasBeamCollection > tkFittedLasBeamCollectionToken_
Definition: AlignmentProducer.h:64
AlignmentProducerBase
Definition: AlignmentProducerBase.h:75
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:61
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:104
edm::EventSetup
Definition: EventSetup.h:58
AlignmentProducer::produceTracker
virtual std::shared_ptr< TrackerGeometry > produceTracker(const TrackerDigiGeometryRecord &)
Produce the tracker geometry.
Definition: AlignmentProducer.cc:32
writedatasetfile.run
run
Definition: writedatasetfile.py:27
AlignmentProducer::tsosVectorCollectionToken_
edm::EDGetTokenT< TsosVectorCollection > tsosVectorCollectionToken_
Definition: AlignmentProducer.h:65
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:96
AlignmentProducer::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &) override
Called at run start and calling algorithms beginRun.
Definition: AlignmentProducer.cc:93
mps_fire.result
result
Definition: mps_fire.py:311
AlignmentProducer::getBeamSpot
bool getBeamSpot(const edm::Event &, edm::Handle< reco::BeamSpot > &) override
Definition: AlignmentProducer.h:76
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
AlignmentProducer::endOfJob
void endOfJob() override
Called at end of job.
Definition: AlignmentProducer.cc:44
AlignmentProducer::getTsosVectorCollection
bool getTsosVectorCollection(const edm::Run &, edm::Handle< TsosVectorCollection > &) override
Definition: AlignmentProducer.h:87
edm::EDLooperBase::beginOfJob
virtual void beginOfJob()
Definition: EDLooperBase.cc:105