1 #ifndef CommonDet_Trajectory_H
2 #define CommonDet_Trajectory_H
13 #include <boost/shared_ptr.hpp>
97 #if defined( __GXX_EXPERIMENTAL_CXX0X__)
185 else throw cms::Exception(
"TrajectoryMeasurement::lastMeasurement - Too few measurements in trajectory");
198 else throw cms::Exception(
"TrajectoryMeasurement::firstMeasurement - Too few measurements in trajectory");
247 int ndof(
bool bon =
true)
const;
286 if (
theData.back().recHit()->hit()!=0)
return theData.back().layer();
288 else throw cms::Exception(
"TrajectoryMeasurement::lastMeasurement - Too few measurements in trajectory");
326 boost::shared_ptr<const TrajectorySeed>
theSeed;
float dPhiCacheForLoopersReconstruction() const
nocap nocap const skelname & operator=(const skelname &)
bool empty() const
True if trajectory has no measurements.
void swap(ora::Record &rh, ora::Record &lh)
Trajectory(const TrajectorySeed &seed, PropagationDirection dir)
signed short theNumberOfFoundHits
bool theDirectionValidity
static bool lost(const TransientTrackingRecHit &hit)
TrajectorySeed const & seed() const
Access to the seed used to reconstruct the Trajectory.
signed short theNumberOfLostHits
void setNLoops(signed char value)
void invalidate()
Method to invalidate a trajectory. Useful during ambiguity resolution.
void reserve(unsigned int n)
const boost::shared_ptr< const TrajectorySeed > & sharedSeed() const
TrajectoryMeasurement const & closestMeasurement(GlobalPoint) const
TrajectoryStateOnSurface geometricalInnermostState() const
void recHitsV(ConstRecHitContainer &cont, bool splitting=false) const
signed char nLoops() const
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
ConstRecHitContainer recHits(bool splitting=false) const
PropagationDirection const & direction() const
DataContainer const & measurements() const
std::vector< TrajectoryMeasurement > DataContainer
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
TrajectoryMeasurement const & lastMeasurement() const
void validRecHits(ConstRecHitContainer &cont) const
edm::RefToBase< TrajectorySeed > seedRef(void) const
Trajectory(const TrajectorySeed &seed)
PropagationDirection theDirection
std::vector< ConstRecHitPointer > ConstRecHitContainer
boost::shared_ptr< const TrajectorySeed > theSeed
int ndof(bool bon=true) const
static bool isBad(const TransientTrackingRecHit &hit)
TrajectoryMeasurement const & firstMeasurement() const
ConstRecHitContainer RecHitContainer
Trajectory(const boost::shared_ptr< const TrajectorySeed > &seed, PropagationDirection dir)
void setSeedRef(const edm::RefToBase< TrajectorySeed > &seedRef)
edm::RefToBase< TrajectorySeed > seedRef_
void setDPhiCacheForLoopersReconstruction(float dphi)
DataContainer const & data() const
obsolete name, use measurements() instead.
const DetLayer * lastLayer() const
Redundant method, returns the layer of lastMeasurement() .
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
void push(const TrajectoryMeasurement &tm)
double chiSquared() const