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 
8 
9 
10 #include <utility>
11 
24 public:
26  typedef RecHitContainer::const_iterator const_iterator;
27  typedef std::pair<const_iterator,const_iterator> range;
28 
30 
32  rh_(), seed_(), state_(), seedRef_(), nLoops_(0) {rh_.swap(rh);}
33 
35  TrajectorySeed const & s,
36  PTrajectoryStateOnDet const & st,
37  signed char nLoops=0):
38  rh_(), seed_(s), state_(st), seedRef_(),nLoops_(nLoops) {rh_.swap(rh);}
39 
40 
42  TrajectorySeed const & s,
43  PTrajectoryStateOnDet const & st,
45  signed char nLoops=0) :
46  rh_(), seed_(s), state_(st), seedRef_(seedRef),nLoops_(nLoops) {rh_.swap(rh);}
47 
48 
50 
51  range recHits() const {return std::make_pair(rh_.begin(), rh_.end());}
52 
53  TrajectorySeed const & seed() const {return seed_;}
54 
55 
56  bool isLooper() const {return (nLoops_>0);}
57  signed char nLoops() const {return nLoops_;}
58 
59  void setNLoops(signed char value) {nLoops_=value;}
60 
67 
69 
70 private:
75  signed char nLoops_;
76 };
77 #endif
bool isLooper() const
range recHits() const
signed char nLoops_
TrackCandidate(RecHitContainer &rh)
TrajectorySeed const & seed() const
std::pair< const_iterator, const_iterator > range
iterator begin()
Definition: OwnVector.h:228
PTrajectoryStateOnDet const & trajectoryStateOnDet() const
TrajectorySeed seed_
iterator end()
Definition: OwnVector.h:233
TrackCandidate(RecHitContainer &rh, TrajectorySeed const &s, PTrajectoryStateOnDet const &st, const edm::RefToBase< TrajectorySeed > &seedRef, signed char nLoops=0)
TrackCandidate(RecHitContainer &rh, TrajectorySeed const &s, PTrajectoryStateOnDet const &st, signed char nLoops=0)
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:401
PTrajectoryStateOnDet state_
edm::RefToBase< TrajectorySeed > seedRef() const
edm::RefToBase< TrajectorySeed > seedRef_