CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackCandidate.h
Go to the documentation of this file.
1 #ifndef DATAFORMATS_TRACKCANDIDATE_TRACKCANDIDATE_H
2 #define DATAFORMATS_TRACKCANDIDATE_TRACKCANDIDATE_H
3 
9 
10 
11 #include <utility>
12 
25 public:
27  typedef RecHitContainer::const_iterator const_iterator;
28  typedef std::pair<const_iterator,const_iterator> range;
29 
31 
33  rh_(), seed_(), state_(), seedRef_(), nLoops_(0), stopReason_((uint8_t)StopReason::UNINITIALIZED) {rh_.swap(rh);}
34 
36  TrajectorySeed const & s,
37  PTrajectoryStateOnDet const & st,
38  signed char nLoops=0,
39  uint8_t stopReason=(uint8_t)StopReason::UNINITIALIZED):
41 
42 
44  TrajectorySeed const & s,
45  PTrajectoryStateOnDet const & st,
47  signed char nLoops=0,
48  uint8_t stopReason=(uint8_t)StopReason::UNINITIALIZED) :
49  rh_(), seed_(s), state_(st), seedRef_(seedRef),nLoops_(nLoops), stopReason_(stopReason) {rh_.swap(rh);}
50 
51 
53 
54  range recHits() const {return std::make_pair(rh_.begin(), rh_.end());}
55 
56  TrajectorySeed const & seed() const {return seed_;}
57 
58 
59  bool isLooper() const {return (nLoops_>0);}
60  signed char nLoops() const {return nLoops_;}
61  uint8_t stopReason() const {return stopReason_;}
62 
63 
64  void setNLoops(signed char value) {nLoops_=value;}
65  void setStopReason(uint8_t value) {stopReason_ = value;}
66 
73 
75 
76 private:
81  signed char nLoops_;
82  uint8_t stopReason_;
83 };
84 #endif
bool isLooper() const
range recHits() const
signed char nLoops_
TrackCandidate(RecHitContainer &rh)
TrajectorySeed const & seed() const
std::pair< const_iterator, const_iterator > range
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)
iterator begin()
Definition: OwnVector.h:244
PTrajectoryStateOnDet const & trajectoryStateOnDet() const
TrajectorySeed seed_
uint8_t stopReason_
void setStopReason(uint8_t value)
TrackCandidate(RecHitContainer &rh, TrajectorySeed const &s, PTrajectoryStateOnDet const &st, signed char nLoops=0, uint8_t stopReason=(uint8_t) StopReason::UNINITIALIZED)
iterator end()
Definition: OwnVector.h:249
RecHitContainer rh_
signed char nLoops() const
void setNLoops(signed char value)
void setSeedRef(edm::RefToBase< TrajectorySeed > &seedRef)
edm::OwnVector< TrackingRecHit > RecHitContainer
RecHitContainer::const_iterator const_iterator
void swap(OwnVector< T, P > &other)
Definition: OwnVector.h:475
PTrajectoryStateOnDet state_
edm::RefToBase< TrajectorySeed > seedRef() const
uint8_t stopReason() const
edm::RefToBase< TrajectorySeed > seedRef_