CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrajAnnealing.h
Go to the documentation of this file.
1 #ifndef TrackingTools_PatternTools_TrajAnnealing_h
2 #define TrackingTools_PatternTools_TrajAnnealing_h
3 
4 #include <vector>
5 
13 {
14 public:
16  traj_(),
17  annealing_(0),
18  theWeights(){}
19  virtual ~TrajAnnealing(){}
20 
21  TrajAnnealing( const Trajectory&, float );
22 
23  float getAnnealing() const { return annealing_; }
24  Trajectory getTraj() const { return traj_; }
25 
26  //vector of weights
27  std::vector<float> const & weights() const {return theWeights;}
28  std::vector<float> & weights() {return theWeights;}
29 
30 private:
31 
33  float annealing_;
34  std::vector<float> theWeights;
36 
37  std::pair<float, std::vector<float> > getAnnealingWeight( const TrackingRecHit& aRecHit ) const ;
38 };
39 
40 // this is our new product, it is simply a
41 // collection of TrajAnnealing held in an std::vector
42 typedef std::vector<TrajAnnealing> TrajAnnealingCollection;
43 
44 #endif
Trajectory traj_
Definition: TrajAnnealing.h:32
std::pair< float, std::vector< float > > getAnnealingWeight(const TrackingRecHit &aRecHit) const
std::vector< ConstRecHitPointer > RecHitContainer
std::vector< TrajAnnealing > TrajAnnealingCollection
Definition: TrajAnnealing.h:42
std::vector< float > theWeights
Definition: TrajAnnealing.h:34
std::vector< float > & weights()
Definition: TrajAnnealing.h:28
TrackingRecHit::RecHitContainer theHits_
Definition: TrajAnnealing.h:35
Trajectory getTraj() const
Definition: TrajAnnealing.h:24
std::vector< float > const & weights() const
Definition: TrajAnnealing.h:27
float getAnnealing() const
Definition: TrajAnnealing.h:23
virtual ~TrajAnnealing()
Definition: TrajAnnealing.h:19