CMS 3D CMS Logo

TrajAnnealing.h
Go to the documentation of this file.
1 #ifndef TrackingTools_PatternTools_TrajAnnealing_h
2 #define TrackingTools_PatternTools_TrajAnnealing_h
3 
5 #include <vector>
6 
14 {
15 public:
17  TrajAnnealing( const Trajectory&, float );
18 
19  float getAnnealing() const { return annealing_; }
20  Trajectory const & getTraj() const { return traj_; }
21 
22  //vector of weights
23  std::vector<float> const & weights() const {return theWeights;}
24  std::vector<float> & weights() {return theWeights;}
25 
26 private:
27 
29  float annealing_=0;
30  std::vector<float> theWeights;
32 
33  std::pair<float, std::vector<float> > getAnnealingWeight( const TrackingRecHit& aRecHit ) const ;
34 };
35 
36 // this is our new product, it is simply a
37 // collection of TrajAnnealing held in an std::vector
38 using TrajAnnealingCollection=std::vector<TrajAnnealing>;
39 
40 #endif
Trajectory traj_
Definition: TrajAnnealing.h:28
std::pair< float, std::vector< float > > getAnnealingWeight(const TrackingRecHit &aRecHit) const
Trajectory const & getTraj() const
Definition: TrajAnnealing.h:20
std::vector< TrajAnnealing > TrajAnnealingCollection
Definition: TrajAnnealing.h:38
std::vector< ConstRecHitPointer > RecHitContainer
std::vector< float > theWeights
Definition: TrajAnnealing.h:30
std::vector< float > & weights()
Definition: TrajAnnealing.h:24
TrackingRecHit::RecHitContainer theHits_
Definition: TrajAnnealing.h:31
std::vector< float > const & weights() const
Definition: TrajAnnealing.h:23
float getAnnealing() const
Definition: TrajAnnealing.h:19