TrackingTools
GsfTracking
src
FullConvolutionWithMaterial.cc
Go to the documentation of this file.
1
#include "
TrackingTools/GsfTracking/interface/FullConvolutionWithMaterial.h
"
2
#include "
TrackingTools/GsfTools/interface/MultiTrajectoryStateAssembler.h
"
3
4
TrajectoryStateOnSurface
FullConvolutionWithMaterial::operator()
(
const
TrajectoryStateOnSurface
& tsos,
5
const
PropagationDirection
propDir)
const
{
6
//
7
// vector of result states
8
MultiTrajectoryStateAssembler
result
;
9
//
10
// now add material effects to each component
11
//
12
for
(
auto
const
& iTsos : tsos.
components
()) {
13
// add material
14
TrajectoryStateOnSurface
updatedTSoS =
theMEUpdator
->
updateState
(iTsos, propDir);
15
if
(updatedTSoS.
isValid
())
16
result
.addState(updatedTSoS);
17
else
18
result
.addInvalidState(iTsos.weight());
19
}
20
return
result
.combinedState();
21
}
MultiTrajectoryStateAssembler
Definition:
MultiTrajectoryStateAssembler.h:13
TrajectoryStateOnSurface
Definition:
TrajectoryStateOnSurface.h:16
FullConvolutionWithMaterial::theMEUpdator
DeepCopyPointerByClone< GsfMaterialEffectsUpdator > theMEUpdator
Definition:
FullConvolutionWithMaterial.h:33
FullConvolutionWithMaterial.h
MultiTrajectoryStateAssembler.h
TrajectoryStateOnSurface::components
Components const & components() const
Definition:
TrajectoryStateOnSurface.h:85
PropagationDirection
PropagationDirection
Definition:
PropagationDirection.h:4
FullConvolutionWithMaterial::operator()
TrajectoryStateOnSurface operator()(const TrajectoryStateOnSurface &, const PropagationDirection) const
Convolution using the GsfMaterialEffectsUpdator.
Definition:
FullConvolutionWithMaterial.cc:4
GsfMaterialEffectsUpdator::updateState
virtual TrajectoryStateOnSurface updateState(const TrajectoryStateOnSurface &TSoS, const PropagationDirection propDir) const
Definition:
GsfMaterialEffectsUpdator.cc:14
mps_fire.result
result
Definition:
mps_fire.py:303
TrajectoryStateOnSurface::isValid
bool isValid() const
Definition:
TrajectoryStateOnSurface.h:54
Generated for CMSSW Reference Manual by
1.8.16