CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
GsfMaterialEffectsAdapter Class Referencefinal

#include <GsfMaterialEffectsAdapter.h>

Inheritance diagram for GsfMaterialEffectsAdapter:
GsfMaterialEffectsUpdator

Public Member Functions

void compute (const TrajectoryStateOnSurface &, const PropagationDirection, Effect[]) const override
 
 GsfMaterialEffectsAdapter (const MaterialEffectsUpdator &aMEUpdator)
 
 ~GsfMaterialEffectsAdapter () override
 
- Public Member Functions inherited from GsfMaterialEffectsUpdator
 GsfMaterialEffectsUpdator (float mass, uint32_t is)
 
float mass () const
 
size_t size () const
 
virtual TrajectoryStateOnSurface updateState (const TrajectoryStateOnSurface &TSoS, const PropagationDirection propDir) const
 
virtual ~GsfMaterialEffectsUpdator ()
 

Private Member Functions

GsfMaterialEffectsAdapterclone () const override
 

Private Attributes

DeepCopyPointerByClone< MaterialEffectsUpdatortheMEUpdator
 

Additional Inherited Members

- Public Types inherited from GsfMaterialEffectsUpdator
typedef materialEffect::Covariance Covariance
 
typedef materialEffect::CovIndex CovIndex
 
typedef materialEffect::Effect Effect
 
- Protected Member Functions inherited from GsfMaterialEffectsUpdator
void resize (size_t is)
 

Detailed Description

Make standard (single state) MaterialEffectsUpdator usable in the context of GSF.

Definition at line 11 of file GsfMaterialEffectsAdapter.h.

Constructor & Destructor Documentation

◆ GsfMaterialEffectsAdapter()

GsfMaterialEffectsAdapter::GsfMaterialEffectsAdapter ( const MaterialEffectsUpdator aMEUpdator)
inline

Definition at line 15 of file GsfMaterialEffectsAdapter.h.

Referenced by clone().

16  : GsfMaterialEffectsUpdator(aMEUpdator.mass(), 1), theMEUpdator(aMEUpdator.clone()) {}
DeepCopyPointerByClone< MaterialEffectsUpdator > theMEUpdator
GsfMaterialEffectsUpdator(float mass, uint32_t is)
virtual MaterialEffectsUpdator * clone() const =0

◆ ~GsfMaterialEffectsAdapter()

GsfMaterialEffectsAdapter::~GsfMaterialEffectsAdapter ( )
inlineoverride

Definition at line 18 of file GsfMaterialEffectsAdapter.h.

18 {}

Member Function Documentation

◆ clone()

GsfMaterialEffectsAdapter* GsfMaterialEffectsAdapter::clone ( void  ) const
inlineoverrideprivatevirtual

Implements GsfMaterialEffectsUpdator.

Definition at line 12 of file GsfMaterialEffectsAdapter.h.

References GsfMaterialEffectsAdapter().

12 { return new GsfMaterialEffectsAdapter(*this); }
GsfMaterialEffectsAdapter(const MaterialEffectsUpdator &aMEUpdator)

◆ compute()

void GsfMaterialEffectsAdapter::compute ( const TrajectoryStateOnSurface aTSoS,
const PropagationDirection  aPropDir,
Effect  effects[] 
) const
overridevirtual

Implements GsfMaterialEffectsUpdator.

Definition at line 5 of file GsfMaterialEffectsAdapter.cc.

References MaterialEffectsUpdator::compute(), and theMEUpdator.

7  {
8  //
9  // use deltaP and covariance matrix from standard updator
10  theMEUpdator->compute(aTSoS, aPropDir, effects[0]);
11 }
DeepCopyPointerByClone< MaterialEffectsUpdator > theMEUpdator
virtual void compute(const TrajectoryStateOnSurface &, const PropagationDirection, Effect &effect) const =0

Member Data Documentation

◆ theMEUpdator

DeepCopyPointerByClone<MaterialEffectsUpdator> GsfMaterialEffectsAdapter::theMEUpdator
private

Definition at line 24 of file GsfMaterialEffectsAdapter.h.

Referenced by compute().