#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 75 of file MultiTrajectoryStateAssembler.cc.
References theInvalidWeightSum, and mps_merge::weight.
Referenced by FullConvolutionWithMaterial::operator()().
void MultiTrajectoryStateAssembler::addState | ( | const TrajectoryStateOnSurface | tsos | ) |
Adds a new TrajectoryStateOnSurface to the list of components
Definition at line 22 of file MultiTrajectoryStateAssembler.cc.
References addStateVector(), combinationDone, makeMuonMisalignmentScenario::components, Exception, and TrajectoryStateOnSurface::isValid().
Referenced by FullConvolutionWithMaterial::operator()(), GsfMultiStateUpdator::update(), and GsfMaterialEffectsUpdator::updateState().
|
private |
Adds a vector of trajectory states to the list of components
Definition at line 42 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 82 of file MultiTrajectoryStateAssembler.cc.
References prepareCombinedState(), reweightedCombinedState(), theInvalidWeightSum, theStates, and theValidWeightSum.
Referenced by FullConvolutionWithMaterial::operator()(), GsfMultiStateUpdator::update(), and GsfMaterialEffectsUpdator::updateState().
TrajectoryStateOnSurface MultiTrajectoryStateAssembler::combinedState | ( | const float | weight | ) |
Returns the resulting MultiTrajectoryState renormalised to specified weight.
Definition at line 98 of file MultiTrajectoryStateAssembler.cc.
References prepareCombinedState(), and reweightedCombinedState().
|
inlineprivate |
Checks status of combined state.
Definition at line 49 of file MultiTrajectoryStateAssembler.h.
References prepareCombinedState(), removeSmallWeights(), removeWrongPz(), reweightedCombinedState(), and theStates.
Referenced by prepareCombinedState(), and reweightedCombinedState().
|
private |
Preparation of combined state (cleaning & sorting)
Definition at line 110 of file MultiTrajectoryStateAssembler.cc.
References combinationDone, invalidCombinedState(), minValidFraction, removeSmallWeights(), removeWrongPz(), jetUpdater_cfi::sort, sortStates, theInvalidWeightSum, thePzError, theStates, and theValidWeightSum.
Referenced by combinedState(), and invalidCombinedState().
|
private |
Removes states with negligible weight (no renormalisation of total weight!).
Definition at line 172 of file MultiTrajectoryStateAssembler.cc.
References minFractionalWeight, alignCSCRings::s, theInvalidWeightSum, theStates, and theValidWeightSum.
Referenced by invalidCombinedState(), and prepareCombinedState().
|
private |
Removes states with local p_z != average p_z.
Definition at line 188 of file MultiTrajectoryStateAssembler.cc.
References LogDebug, eostools::move(), theInvalidWeightSum, theStates, and theValidWeightSum.
Referenced by invalidCombinedState(), and prepareCombinedState().
|
private |
Returns the resulting MultiTrajectoryState with user-supplied total weight.
Definition at line 144 of file MultiTrajectoryStateAssembler.cc.
References invalidCombinedState(), theStates, and theValidWeightSum.
Referenced by combinedState(), and invalidCombinedState().
|
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().