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_() {rh_.swap(rh);}
34 
36  TrajectorySeed const & s,
37  PTrajectoryStateOnDet const & st):
38  rh_(), seed_(s), state_(st), seedRef_() {rh_.swap(rh);}
39 
40 
42  TrajectorySeed const & s,
43  PTrajectoryStateOnDet const & st,
45  rh_(), seed_(s), state_(st), seedRef_(seedRef) {rh_.swap(rh);}
46 
47 
48 
49 
51 
52  range recHits() const {return std::make_pair(rh_.begin(), rh_.end());}
53 
54  TrajectorySeed const & seed() const {return seed_;}
55 
62 
64 
65 private:
70 };
71 #endif
range recHits() const
TrackCandidate(RecHitContainer &rh)
TrajectorySeed const & seed() const
std::pair< const_iterator, const_iterator > range
iterator begin()
Definition: OwnVector.h:236
PTrajectoryStateOnDet const & trajectoryStateOnDet() const
TrajectorySeed seed_
iterator end()
Definition: OwnVector.h:243
virtual ~TrackCandidate()
TrackCandidate(RecHitContainer &rh, TrajectorySeed const &s, PTrajectoryStateOnDet const &st, const edm::RefToBase< TrajectorySeed > &seedRef)
RecHitContainer rh_
TrackCandidate(RecHitContainer &rh, TrajectorySeed const &s, PTrajectoryStateOnDet const &st)
void setSeedRef(edm::RefToBase< TrajectorySeed > &seedRef)
string s
Definition: asciidump.py:422
edm::OwnVector< TrackingRecHit > RecHitContainer
RecHitContainer::const_iterator const_iterator
void swap(OwnVector< T, P > &other)
Definition: OwnVector.h:433
PTrajectoryStateOnDet state_
edm::RefToBase< TrajectorySeed > seedRef() const
edm::RefToBase< TrajectorySeed > seedRef_