CMS 3D CMS Logo

FastMatchedTrackerRecHit.h
Go to the documentation of this file.
1 #ifndef FastMatchedTrackerRecHit_H
2 #define FastMatchedTrackerRecHit_H
3 
6 
8 public:
10 
12 
14  const LocalError& err,
15  const GeomDet& idet,
16  const FastSingleTrackerRecHit& rMono,
17  const FastSingleTrackerRecHit& rStereo,
18  bool stereoHitFirst = false)
20  stereoHitFirst_(stereoHitFirst),
21  componentMono_(rMono),
22  componentStereo_(rStereo){};
23 
24  FastMatchedTrackerRecHit* clone() const override {
26  p->load();
27  return p;
28  }
29 
30  size_t nIds() const override { return 2; }
31  int32_t id(size_t i = 0) const override { return i == 0 ? monoHit().id() : stereoHit().id(); }
32  int32_t eventId(size_t i = 0) const override { return i == 0 ? monoHit().eventId() : stereoHit().eventId(); }
33 
34  size_t nSimTrackIds() const override {
36  }
37  int32_t simTrackId(size_t i) const override {
40  }
41  int32_t simTrackEventId(size_t i) const override {
44  }
45 
46  const FastSingleTrackerRecHit& monoHit() const { return componentMono_; }
50 
51  void setStereoLayerFirst(bool stereoHitFirst = true) { stereoHitFirst_ = stereoHitFirst; }
52  void setEventId(int32_t eventId) override {
55  }
56 
61  }
62 
63 private:
67 };
68 
69 #endif
FastMatchedTrackerRecHit
Definition: FastMatchedTrackerRecHit.h:7
FastTrackerRecHit::setRecHitCombinationIndex
virtual void setRecHitCombinationIndex(int32_t recHitCombinationIndex)
Definition: FastTrackerRecHit.h:112
FastMatchedTrackerRecHit::id
int32_t id(size_t i=0) const override
Definition: FastMatchedTrackerRecHit.h:31
FastMatchedTrackerRecHit::~FastMatchedTrackerRecHit
~FastMatchedTrackerRecHit() override
Definition: FastMatchedTrackerRecHit.h:11
FastMatchedTrackerRecHit::FastMatchedTrackerRecHit
FastMatchedTrackerRecHit(const LocalPoint &pos, const LocalError &err, const GeomDet &idet, const FastSingleTrackerRecHit &rMono, const FastSingleTrackerRecHit &rStereo, bool stereoHitFirst=false)
Definition: FastMatchedTrackerRecHit.h:13
mps_fire.i
i
Definition: mps_fire.py:355
FastMatchedTrackerRecHit::FastMatchedTrackerRecHit
FastMatchedTrackerRecHit()
Definition: FastMatchedTrackerRecHit.h:9
FastSingleTrackerRecHit::simTrackEventId
int32_t simTrackEventId(size_t i) const override
see addSimTrackId(int32_t simTrackId)
Definition: FastSingleTrackerRecHit.h:31
funct::false
false
Definition: Factorize.h:34
GeomDet
Definition: GeomDet.h:27
FastMatchedTrackerRecHit::clone
FastMatchedTrackerRecHit * clone() const override
Definition: FastMatchedTrackerRecHit.h:24
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
pos
Definition: PixelAliasList.h:18
FastMatchedTrackerRecHit::simTrackId
int32_t simTrackId(size_t i) const override
Definition: FastMatchedTrackerRecHit.h:37
FastSingleTrackerRecHit::id
int32_t id(size_t i=0) const override
Definition: FastSingleTrackerRecHit.h:25
fastTrackerRecHitType::siStripMatched2D
Definition: FastTrackerRecHit.h:20
FastMatchedTrackerRecHit::monoHit
const FastSingleTrackerRecHit & monoHit() const
Definition: FastMatchedTrackerRecHit.h:46
FastTrackerRecHit
Definition: FastTrackerRecHit.h:40
FastSingleTrackerRecHit::simTrackId
int32_t simTrackId(size_t i) const override
see addSimTrackId(int32_t simTrackId)
Definition: FastSingleTrackerRecHit.h:28
FastMatchedTrackerRecHit::stereoHit
const FastSingleTrackerRecHit & stereoHit() const
Definition: FastMatchedTrackerRecHit.h:47
fastTrackerRecHitType
Definition: FastTrackerRecHit.h:15
FastMatchedTrackerRecHit::componentMono_
FastSingleTrackerRecHit componentMono_
Definition: FastMatchedTrackerRecHit.h:65
FastMatchedTrackerRecHit::nIds
size_t nIds() const override
Definition: FastMatchedTrackerRecHit.h:30
FastMatchedTrackerRecHit::firstHit
const FastSingleTrackerRecHit & firstHit() const
Definition: FastMatchedTrackerRecHit.h:48
FastMatchedTrackerRecHit::componentStereo_
FastSingleTrackerRecHit componentStereo_
Definition: FastMatchedTrackerRecHit.h:66
FastSingleTrackerRecHit::nSimTrackIds
size_t nSimTrackIds() const override
see addSimTrackId(int32_t simTrackId)
Definition: FastSingleTrackerRecHit.h:27
Point3DBase< float, LocalTag >
FastMatchedTrackerRecHit::setRecHitCombinationIndex
void setRecHitCombinationIndex(int32_t recHitCombinationIndex) override
Definition: FastMatchedTrackerRecHit.h:57
FastMatchedTrackerRecHit::stereoHitFirst_
bool stereoHitFirst_
Definition: FastMatchedTrackerRecHit.h:64
FastMatchedTrackerRecHit::nSimTrackIds
size_t nSimTrackIds() const override
see addSimTrackId(int32_t simTrackId)
Definition: FastMatchedTrackerRecHit.h:34
runTheMatrix.err
err
Definition: runTheMatrix.py:288
LocalError
Definition: LocalError.h:12
FastSingleTrackerRecHit.h
FastSingleTrackerRecHit
Definition: FastSingleTrackerRecHit.h:7
FastTrackerRecHit::recHitCombinationIndex
virtual int32_t recHitCombinationIndex() const
Definition: FastTrackerRecHit.h:102
FastMatchedTrackerRecHit::setStereoLayerFirst
void setStereoLayerFirst(bool stereoHitFirst=true)
Definition: FastMatchedTrackerRecHit.h:51
FastSingleTrackerRecHit::eventId
int32_t eventId(size_t i=0) const override
Definition: FastSingleTrackerRecHit.h:26
FastTrackerRecHit.h
FastSingleTrackerRecHit::setEventId
void setEventId(int32_t eventId) override
Definition: FastSingleTrackerRecHit.h:47
FastMatchedTrackerRecHit::simTrackEventId
int32_t simTrackEventId(size_t i) const override
Definition: FastMatchedTrackerRecHit.h:41
FastMatchedTrackerRecHit::setEventId
void setEventId(int32_t eventId) override
Definition: FastMatchedTrackerRecHit.h:52
FastMatchedTrackerRecHit::secondHit
const FastSingleTrackerRecHit & secondHit() const
Definition: FastMatchedTrackerRecHit.h:49
FastMatchedTrackerRecHit::eventId
int32_t eventId(size_t i=0) const override
Definition: FastMatchedTrackerRecHit.h:32