CMS 3D CMS Logo

MultiTrajectoryStateAssembler.h
Go to the documentation of this file.
1 #ifndef _TrackerReco_MultiTrajectoryStateAssembler_h_
2 #define _TrackerReco_MultiTrajectoryStateAssembler_h_
3 
4 // #include "Utilities/Notification/interface/TimingReport.h"
6 #include <vector>
7 // #include <map>
8 
14 private:
16  typedef std::vector<TrajectoryStateOnSurface> MultiTSOS;
17 
18 public:
19  //
20  // constructors
21  //
23 
28 
30  void addInvalidState(const double);
31 
40 
41 private:
45  void addStateVector(const MultiTSOS&);
47  inline bool invalidCombinedState() const {
48  //
49  // Protect against empty combination (no valid input state)
50  //
51  return theStates.empty();
52  }
54  bool prepareCombinedState();
62  void removeSmallWeights();
64  void removeWrongPz();
65 
66 private:
67  bool sortStates;
70 
72  bool thePzError;
73 
77 
78  // static TimingReport::Item * theTimerAdd;
79  // static TimingReport::Item * theTimerComb;
80 };
81 
82 #endif
TrajectoryStateOnSurface.h
MultiTrajectoryStateAssembler::minValidFraction
float minValidFraction
Definition: MultiTrajectoryStateAssembler.h:68
MultiTrajectoryStateAssembler
Definition: MultiTrajectoryStateAssembler.h:13
MultiTrajectoryStateAssembler::reweightedCombinedState
TrajectoryStateOnSurface reweightedCombinedState(const double) const
Definition: MultiTrajectoryStateAssembler.cc:139
MultiTrajectoryStateAssembler::addState
void addState(const TrajectoryStateOnSurface)
Definition: MultiTrajectoryStateAssembler.cc:18
MultiTrajectoryStateAssembler::sortStates
bool sortStates
Definition: MultiTrajectoryStateAssembler.h:67
MultiTrajectoryStateAssembler::addStateVector
void addStateVector(const MultiTSOS &)
Definition: MultiTrajectoryStateAssembler.cc:37
MultiTrajectoryStateAssembler::theInvalidWeightSum
double theInvalidWeightSum
Definition: MultiTrajectoryStateAssembler.h:75
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
MultiTrajectoryStateAssembler::removeSmallWeights
void removeSmallWeights()
Definition: MultiTrajectoryStateAssembler.cc:166
MultiTrajectoryStateAssembler::invalidCombinedState
bool invalidCombinedState() const
Checks status of combined state.
Definition: MultiTrajectoryStateAssembler.h:47
MultiTrajectoryStateAssembler::removeWrongPz
void removeWrongPz()
Removes states with local p_z != average p_z.
Definition: MultiTrajectoryStateAssembler.cc:182
MultiTrajectoryStateAssembler::thePzError
bool thePzError
Definition: MultiTrajectoryStateAssembler.h:72
MultiTrajectoryStateAssembler::addInvalidState
void addInvalidState(const double)
Adds (the weight of an) invalid state to the list.
Definition: MultiTrajectoryStateAssembler.cc:65
MultiTrajectoryStateAssembler::minFractionalWeight
float minFractionalWeight
Definition: MultiTrajectoryStateAssembler.h:69
MultiTrajectoryStateAssembler::theValidWeightSum
double theValidWeightSum
Definition: MultiTrajectoryStateAssembler.h:74
MultiTrajectoryStateAssembler::combinationDone
bool combinationDone
Definition: MultiTrajectoryStateAssembler.h:71
MultiTrajectoryStateAssembler::theStates
MultiTSOS theStates
Definition: MultiTrajectoryStateAssembler.h:76
MultiTrajectoryStateAssembler::TSOS
TrajectoryStateOnSurface TSOS
Definition: MultiTrajectoryStateAssembler.h:15
MultiTrajectoryStateAssembler::MultiTSOS
std::vector< TrajectoryStateOnSurface > MultiTSOS
Definition: MultiTrajectoryStateAssembler.h:16
MultiTrajectoryStateAssembler::MultiTrajectoryStateAssembler
MultiTrajectoryStateAssembler()
Definition: MultiTrajectoryStateAssembler.cc:8
MultiTrajectoryStateAssembler::prepareCombinedState
bool prepareCombinedState()
Preparation of combined state (cleaning & sorting)
Definition: MultiTrajectoryStateAssembler.cc:101
MultiTrajectoryStateAssembler::combinedState
TrajectoryStateOnSurface combinedState()
Definition: MultiTrajectoryStateAssembler.cc:72
weight
Definition: weight.py:1