#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 16 of file MultiTrajectoryStateAssembler.h.
|
private |
Definition at line 15 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 65 of file MultiTrajectoryStateAssembler.cc.
References theInvalidWeightSum, and mps_merge::weight.
void MultiTrajectoryStateAssembler::addState | ( | const TrajectoryStateOnSurface | tsos | ) |
Adds a new TrajectoryStateOnSurface to the list of components
Definition at line 18 of file MultiTrajectoryStateAssembler.cc.
References addStateVector(), combinationDone, makeMuonMisalignmentScenario::components, Exception, and TrajectoryStateOnSurface::isValid().
|
private |
Adds a vector of trajectory states to the list of components
Definition at line 37 of file MultiTrajectoryStateAssembler.cc.
References combinationDone, Exception, mps_fire::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 72 of file MultiTrajectoryStateAssembler.cc.
References prepareCombinedState(), reweightedCombinedState(), theInvalidWeightSum, theStates, and theValidWeightSum.
TrajectoryStateOnSurface MultiTrajectoryStateAssembler::combinedState | ( | const float | weight | ) |
Returns the resulting MultiTrajectoryState renormalised to specified weight.
Definition at line 89 of file MultiTrajectoryStateAssembler.cc.
References prepareCombinedState(), and reweightedCombinedState().
|
inlineprivate |
Checks status of combined state.
Definition at line 47 of file MultiTrajectoryStateAssembler.h.
References theStates.
Referenced by prepareCombinedState(), and reweightedCombinedState().
|
private |
Preparation of combined state (cleaning & sorting)
Definition at line 101 of file MultiTrajectoryStateAssembler.cc.
References combinationDone, invalidCombinedState(), minValidFraction, removeSmallWeights(), removeWrongPz(), jetUpdater_cfi::sort, sortStates, theInvalidWeightSum, thePzError, theStates, and theValidWeightSum.
Referenced by combinedState().
|
private |
Removes states with negligible weight (no renormalisation of total weight!).
Definition at line 166 of file MultiTrajectoryStateAssembler.cc.
References minFractionalWeight, alignCSCRings::s, theInvalidWeightSum, theStates, theValidWeightSum, and generateEDF::totalWeight.
Referenced by prepareCombinedState().
|
private |
Removes states with local p_z != average p_z.
Definition at line 182 of file MultiTrajectoryStateAssembler.cc.
References LogDebug, theInvalidWeightSum, theStates, and theValidWeightSum.
Referenced by prepareCombinedState().
|
private |
Returns the resulting MultiTrajectoryState with user-supplied total weight.
Definition at line 139 of file MultiTrajectoryStateAssembler.cc.
References invalidCombinedState(), theStates, and theValidWeightSum.
Referenced by combinedState().
|
private |
Definition at line 71 of file MultiTrajectoryStateAssembler.h.
Referenced by addState(), addStateVector(), and prepareCombinedState().
|
private |
Definition at line 69 of file MultiTrajectoryStateAssembler.h.
Referenced by MultiTrajectoryStateAssembler(), and removeSmallWeights().
|
private |
Definition at line 68 of file MultiTrajectoryStateAssembler.h.
Referenced by MultiTrajectoryStateAssembler(), and prepareCombinedState().
|
private |
Definition at line 67 of file MultiTrajectoryStateAssembler.h.
Referenced by MultiTrajectoryStateAssembler(), and prepareCombinedState().
|
private |
Definition at line 75 of file MultiTrajectoryStateAssembler.h.
Referenced by addInvalidState(), combinedState(), prepareCombinedState(), removeSmallWeights(), and removeWrongPz().
|
private |
Definition at line 72 of file MultiTrajectoryStateAssembler.h.
Referenced by addStateVector(), and prepareCombinedState().
|
private |
Definition at line 76 of file MultiTrajectoryStateAssembler.h.
Referenced by addStateVector(), combinedState(), invalidCombinedState(), prepareCombinedState(), removeSmallWeights(), removeWrongPz(), and reweightedCombinedState().
|
private |
Definition at line 74 of file MultiTrajectoryStateAssembler.h.
Referenced by addStateVector(), combinedState(), prepareCombinedState(), removeSmallWeights(), removeWrongPz(), and reweightedCombinedState().