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  virtual ~TrackCandidate(){}
31 
33  rh_(), seed_(), state_(), seedRef_(), nLoops_(0) {rh_.swap(rh);}
34 
36  TrajectorySeed const & s,
37  PTrajectoryStateOnDet const & st,
38  signed char nLoops=0):
39  rh_(), seed_(s), state_(st), seedRef_(),nLoops_(nLoops) {rh_.swap(rh);}
40 
41 
43  TrajectorySeed const & s,
44  PTrajectoryStateOnDet const & st,
46  signed char nLoops=0) :
47  rh_(), seed_(s), state_(st), seedRef_(seedRef),nLoops_(nLoops) {rh_.swap(rh);}
48 
49 
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 
62  void setNLoops(signed char value) {nLoops_=value;}
63 
70 
72 
73 private:
78  signed char nLoops_;
79 };
80 #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:227
PTrajectoryStateOnDet const & trajectoryStateOnDet() const
TrajectorySeed seed_
iterator end()
Definition: OwnVector.h:232
virtual ~TrackCandidate()
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:400
PTrajectoryStateOnDet state_
edm::RefToBase< TrajectorySeed > seedRef() const
edm::RefToBase< TrajectorySeed > seedRef_