CMS 3D CMS Logo

TrackCandidate.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_TRACKCANDIDATE_TRACKCANDIDATE_H
2 #define DATAFORMATS_TRACKCANDIDATE_TRACKCANDIDATE_H
3 
10 
11 #include <utility>
12 
25 public:
27 
29  : rh_(), seed_(), state_(), seedRef_(), nLoops_(0), stopReason_((uint8_t)StopReason::UNINITIALIZED) {}
30 
32  : rh_(), seed_(), state_(), seedRef_(), nLoops_(0), stopReason_((uint8_t)StopReason::UNINITIALIZED) {
33  rh_.swap(rh);
34  }
35 
37  TrajectorySeed const& s,
38  PTrajectoryStateOnDet const& st,
39  signed char nLoops = 0,
40  uint8_t stopReason = (uint8_t)StopReason::UNINITIALIZED)
42  rh_.swap(rh);
43  }
44 
46  TrajectorySeed const& s,
47  PTrajectoryStateOnDet const& st,
49  signed char nLoops = 0,
50  uint8_t stopReason = (uint8_t)StopReason::UNINITIALIZED)
52  rh_.swap(rh);
53  }
54 
56 
58  auto nRecHits() const { return rh_.size(); }
59 
60  TrajectorySeed const& seed() const { return seed_; }
61 
62  bool isLooper() const { return (nLoops_ > 0); }
63  signed char nLoops() const { return nLoops_; }
64  uint8_t stopReason() const { return stopReason_; }
65 
66  void setNLoops(signed char value) { nLoops_ = value; }
67  void setStopReason(uint8_t value) { stopReason_ = value; }
68 
75 
77 
78 private:
83  signed char nLoops_;
84  uint8_t stopReason_;
85 };
86 #endif
TrackCandidate::trajectoryStateOnDet
PTrajectoryStateOnDet const & trajectoryStateOnDet() const
Definition: TrackCandidate.h:55
TrackCandidate::nLoops
signed char nLoops() const
Definition: TrackCandidate.h:63
edm::OwnVector::end
iterator end()
Definition: OwnVector.h:285
Range.h
TrackCandidate::TrackCandidate
TrackCandidate(RecHitContainer &rh, TrajectorySeed const &s, PTrajectoryStateOnDet const &st, const edm::RefToBase< TrajectorySeed > &seedRef, signed char nLoops=0, uint8_t stopReason=(uint8_t) StopReason::UNINITIALIZED)
Definition: TrackCandidate.h:45
TrackCandidate::recHits
edm::Range< RecHitContainer::const_iterator > recHits() const
Definition: TrackCandidate.h:57
TrackCandidate::setSeedRef
void setSeedRef(edm::RefToBase< TrajectorySeed > &seedRef)
Definition: TrackCandidate.h:76
TrackCandidate::TrackCandidate
TrackCandidate()
Definition: TrackCandidate.h:28
TrackCandidate::seedRef_
edm::RefToBase< TrajectorySeed > seedRef_
Definition: TrackCandidate.h:82
TrackCandidate::setNLoops
void setNLoops(signed char value)
Definition: TrackCandidate.h:66
edm::Range
Definition: Range.h:11
alignCSCRings.s
s
Definition: alignCSCRings.py:92
TrackingRecHit.h
TrackCandidate::rh_
RecHitContainer rh_
Definition: TrackCandidate.h:79
TrajectoryStopReasons.h
TrackCandidate::seedRef
edm::RefToBase< TrajectorySeed > seedRef() const
Definition: TrackCandidate.h:74
TrackCandidate::isLooper
bool isLooper() const
Definition: TrackCandidate.h:62
TrajectorySeed.h
RefToBase.h
TrackCandidate::state_
PTrajectoryStateOnDet state_
Definition: TrackCandidate.h:81
TrackCandidate
Definition: TrackCandidate.h:24
TrackCandidate::seed
TrajectorySeed const & seed() const
Definition: TrackCandidate.h:60
TrackCandidate::RecHitContainer
edm::OwnVector< TrackingRecHit > RecHitContainer
Definition: TrackCandidate.h:26
value
Definition: value.py:1
TrackCandidate::nLoops_
signed char nLoops_
Definition: TrackCandidate.h:83
TrackCandidate::nRecHits
auto nRecHits() const
Definition: TrackCandidate.h:58
TrackCandidate::TrackCandidate
TrackCandidate(RecHitContainer &rh)
Definition: TrackCandidate.h:31
StopReason::UNINITIALIZED
relativeConstraints.value
value
Definition: relativeConstraints.py:53
TrackCandidate::stopReason
uint8_t stopReason() const
Definition: TrackCandidate.h:64
TrackCandidate::TrackCandidate
TrackCandidate(RecHitContainer &rh, TrajectorySeed const &s, PTrajectoryStateOnDet const &st, signed char nLoops=0, uint8_t stopReason=(uint8_t) StopReason::UNINITIALIZED)
Definition: TrackCandidate.h:36
TrajectorySeed
Definition: TrajectorySeed.h:18
edm::RefToBase< TrajectorySeed >
edm::OwnVector::swap
void swap(OwnVector< T, P > &other) noexcept
Definition: OwnVector.h:512
PTrajectoryStateOnDet
Definition: PTrajectoryStateOnDet.h:10
TrackCandidate::stopReason_
uint8_t stopReason_
Definition: TrackCandidate.h:84
edm::OwnVector::begin
iterator begin()
Definition: OwnVector.h:280
OwnVector.h
StopReason
StopReason
Definition: TrajectoryStopReasons.h:6
edm::OwnVector::size
size_type size() const
Definition: OwnVector.h:300
TrackCandidate::seed_
TrajectorySeed seed_
Definition: TrackCandidate.h:80
edm::OwnVector< TrackingRecHit >
TrackCandidate::setStopReason
void setStopReason(uint8_t value)
Definition: TrackCandidate.h:67