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 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
TrajAnnealing
Definition: TrajAnnealing.h:13
TrajAnnealingCollection
std::vector< TrajAnnealing > TrajAnnealingCollection
Definition: TrajAnnealing.h:36
TrajAnnealing::theWeights
std::vector< float > theWeights
Definition: TrajAnnealing.h:28
TrajAnnealing::weights
std::vector< float > & weights()
Definition: TrajAnnealing.h:23
TrajAnnealing::theHits_
TrackingRecHit::RecHitContainer theHits_
Definition: TrajAnnealing.h:29
TrajAnnealing::TrajAnnealing
TrajAnnealing()
Definition: TrajAnnealing.h:15
TrackingRecHit::RecHitContainer
std::vector< ConstRecHitPointer > RecHitContainer
Definition: TrackingRecHit.h:31
TrajAnnealing::getTraj
Trajectory const & getTraj() const
Definition: TrajAnnealing.h:19
TrajAnnealing::annealing_
float annealing_
Definition: TrajAnnealing.h:27
TrajAnnealing::traj_
Trajectory traj_
Definition: TrajAnnealing.h:26
TrajAnnealing::getAnnealingWeight
std::pair< float, std::vector< float > > getAnnealingWeight(const TrackingRecHit &aRecHit) const
Definition: TrajAnnealing.cc:39
TrajAnnealing::getAnnealing
float getAnnealing() const
Definition: TrajAnnealing.h:18
TrackingRecHit
Definition: TrackingRecHit.h:21
Trajectory.h
Trajectory
Definition: Trajectory.h:38
TrajAnnealing::weights
std::vector< float > const & weights() const
Definition: TrajAnnealing.h:22