CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 public:
16  TrajAnnealing(const Trajectory&, float);
17 
18  float getAnnealing() const { return annealing_; }
19  Trajectory const& getTraj() const { return traj_; }
20 
21  //vector of weights
22  std::vector<float> const& weights() const { return theWeights; }
23  std::vector<float>& weights() { return theWeights; }
24 
25 private:
27  float annealing_ = 0;
28  std::vector<float> theWeights;
30 
31  std::pair<float, std::vector<float> > getAnnealingWeight(const TrackingRecHit& aRecHit) const;
32 };
33 
34 // this is our new product, it is simply a
35 // collection of TrajAnnealing held in an std::vector
36 using TrajAnnealingCollection = std::vector<TrajAnnealing>;
37 
38 #endif
Trajectory traj_
Definition: TrajAnnealing.h:26
std::pair< float, std::vector< float > > getAnnealingWeight(const TrackingRecHit &aRecHit) const
Trajectory const & getTraj() const
Definition: TrajAnnealing.h:19
std::vector< TrajAnnealing > TrajAnnealingCollection
Definition: TrajAnnealing.h:36
std::vector< ConstRecHitPointer > RecHitContainer
std::vector< float > theWeights
Definition: TrajAnnealing.h:28
std::vector< float > & weights()
Definition: TrajAnnealing.h:23
TrackingRecHit::RecHitContainer theHits_
Definition: TrajAnnealing.h:29
std::vector< float > const & weights() const
Definition: TrajAnnealing.h:22
float getAnnealing() const
Definition: TrajAnnealing.h:18