#include <MultiTrajectoryStateAssembler.h>
Public Member Functions | |
void | addInvalidState (const double) |
Adds (the weight of an) invalid state to the list. More... | |
void | addState (const TrajectoryStateOnSurface) |
TrajectoryStateOnSurface | combinedState () |
TrajectoryStateOnSurface | combinedState (const float weight) |
MultiTrajectoryStateAssembler () | |
Private Types | |
typedef std::vector < TrajectoryStateOnSurface > | MultiTSOS |
typedef TrajectoryStateOnSurface | TSOS |
Private Member Functions | |
void | addStateVector (const MultiTSOS &) |
bool | invalidCombinedState () const |
Checks status of combined state. More... | |
bool | prepareCombinedState () |
Preparation of combined state (cleaning & sorting) More... | |
void | removeSmallWeights () |
void | removeWrongPz () |
Removes states with local p_z != average p_z. More... | |
TrajectoryStateOnSurface | reweightedCombinedState (const double) const |
Private Attributes | |
bool | combinationDone |
float | minFractionalWeight |
float | minValidFraction |
bool | sortStates |
double | theInvalidWeightSum |
bool | thePzError |
MultiTSOS | theStates |
double | theValidWeightSum |
Collects trajectory states and returns a MultiTrajectoryState.
Definition at line 13 of file MultiTrajectoryStateAssembler.h.
|
private |
Definition at line 17 of file MultiTrajectoryStateAssembler.h.
|
private |
Definition at line 16 of file MultiTrajectoryStateAssembler.h.
MultiTrajectoryStateAssembler::MultiTrajectoryStateAssembler | ( | ) |
Definition at line 8 of file MultiTrajectoryStateAssembler.cc.
References minFractionalWeight, minValidFraction, and sortStates.
void MultiTrajectoryStateAssembler::addInvalidState | ( | const double | weight | ) |
Adds (the weight of an) invalid state to the list.
Definition at line 87 of file MultiTrajectoryStateAssembler.cc.
References theInvalidWeightSum, and puppiForMET_cff::weight.
void MultiTrajectoryStateAssembler::addState | ( | const TrajectoryStateOnSurface | tsos | ) |
Adds a new TrajectoryStateOnSurface to the list of components
Definition at line 33 of file MultiTrajectoryStateAssembler.cc.
References addStateVector(), combinationDone, makeMuonMisalignmentScenario::components, TrajectoryStateOnSurface::components(), Exception, and TrajectoryStateOnSurface::isValid().
Referenced by GsfMultiStateUpdator::update(), and GsfMaterialEffectsUpdator::updateState().
|
private |
Adds a vector of trajectory states to the list of components
Definition at line 54 of file MultiTrajectoryStateAssembler.cc.
References combinationDone, Exception, i, thePzError, theStates, and theValidWeightSum.
Referenced by addState().
TrajectoryStateOnSurface MultiTrajectoryStateAssembler::combinedState | ( | ) |
Returns the resulting MultiTrajectoryState with weight = sum of all valid components.
Definition at line 94 of file MultiTrajectoryStateAssembler.cc.
References prepareCombinedState(), reweightedCombinedState(), theInvalidWeightSum, theStates, and theValidWeightSum.
Referenced by GsfMultiStateUpdator::update(), and GsfMaterialEffectsUpdator::updateState().
TrajectoryStateOnSurface MultiTrajectoryStateAssembler::combinedState | ( | const float | weight | ) |
Returns the resulting MultiTrajectoryState renormalised to specified weight.
Definition at line 112 of file MultiTrajectoryStateAssembler.cc.
References prepareCombinedState(), and reweightedCombinedState().
|
inlineprivate |
Checks status of combined state.
Definition at line 49 of file MultiTrajectoryStateAssembler.h.
References theStates.
Referenced by prepareCombinedState(), and reweightedCombinedState().
|
private |
Preparation of combined state (cleaning & sorting)
Definition at line 126 of file MultiTrajectoryStateAssembler.cc.
References combinationDone, invalidCombinedState(), minValidFraction, removeSmallWeights(), removeWrongPz(), sortStates, theInvalidWeightSum, thePzError, theStates, and theValidWeightSum.
Referenced by combinedState().
|
private |
Removes states with negligible weight (no renormalisation of total weight!).
Definition at line 189 of file MultiTrajectoryStateAssembler.cc.
References i, minFractionalWeight, theInvalidWeightSum, theStates, and theValidWeightSum.
Referenced by prepareCombinedState().
|
private |
Removes states with local p_z != average p_z.
Definition at line 217 of file MultiTrajectoryStateAssembler.cc.
References theInvalidWeightSum, theStates, and theValidWeightSum.
Referenced by prepareCombinedState().
|
private |
Returns the resulting MultiTrajectoryState with user-supplied total weight.
Definition at line 160 of file MultiTrajectoryStateAssembler.cc.
References i, invalidCombinedState(), theStates, and theValidWeightSum.
Referenced by combinedState().
|
private |
Definition at line 74 of file MultiTrajectoryStateAssembler.h.
Referenced by addState(), addStateVector(), and prepareCombinedState().
|
private |
Definition at line 72 of file MultiTrajectoryStateAssembler.h.
Referenced by MultiTrajectoryStateAssembler(), and removeSmallWeights().
|
private |
Definition at line 71 of file MultiTrajectoryStateAssembler.h.
Referenced by MultiTrajectoryStateAssembler(), and prepareCombinedState().
|
private |
Definition at line 70 of file MultiTrajectoryStateAssembler.h.
Referenced by MultiTrajectoryStateAssembler(), and prepareCombinedState().
|
private |
Definition at line 78 of file MultiTrajectoryStateAssembler.h.
Referenced by addInvalidState(), combinedState(), prepareCombinedState(), removeSmallWeights(), and removeWrongPz().
|
private |
Definition at line 75 of file MultiTrajectoryStateAssembler.h.
Referenced by addStateVector(), and prepareCombinedState().
|
private |
Definition at line 79 of file MultiTrajectoryStateAssembler.h.
Referenced by addStateVector(), combinedState(), invalidCombinedState(), prepareCombinedState(), removeSmallWeights(), removeWrongPz(), and reweightedCombinedState().
|
private |
Definition at line 77 of file MultiTrajectoryStateAssembler.h.
Referenced by addStateVector(), combinedState(), prepareCombinedState(), removeSmallWeights(), removeWrongPz(), and reweightedCombinedState().