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.

16  : GsfMaterialEffectsUpdator(aMEUpdator.mass(), 1), theMEUpdator(aMEUpdator.clone()) {}

Referenced by clone().

◆ ~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.

12 { return new GsfMaterialEffectsAdapter(*this); }

References GsfMaterialEffectsAdapter().

◆ compute()

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

Implements GsfMaterialEffectsUpdator.

Definition at line 5 of file GsfMaterialEffectsAdapter.cc.

7  {
8  //
9  // use deltaP and covariance matrix from standard updator
10  theMEUpdator->compute(aTSoS, aPropDir, effects[0]);
11 }

References MaterialEffectsUpdator::compute(), and theMEUpdator.

Member Data Documentation

◆ theMEUpdator

DeepCopyPointerByClone<MaterialEffectsUpdator> GsfMaterialEffectsAdapter::theMEUpdator
private

Definition at line 24 of file GsfMaterialEffectsAdapter.h.

Referenced by compute().

MaterialEffectsUpdator::clone
virtual MaterialEffectsUpdator * clone() const =0
GsfMaterialEffectsAdapter::GsfMaterialEffectsAdapter
GsfMaterialEffectsAdapter(const MaterialEffectsUpdator &aMEUpdator)
Definition: GsfMaterialEffectsAdapter.h:15
MaterialEffectsUpdator::mass
float mass() const
Definition: MaterialEffectsUpdator.h:83
GsfMaterialEffectsAdapter::theMEUpdator
DeepCopyPointerByClone< MaterialEffectsUpdator > theMEUpdator
Definition: GsfMaterialEffectsAdapter.h:24
MaterialEffectsUpdator::compute
virtual void compute(const TrajectoryStateOnSurface &, const PropagationDirection, Effect &effect) const =0
GsfMaterialEffectsUpdator::GsfMaterialEffectsUpdator
GsfMaterialEffectsUpdator(float mass, uint32_t is)
Definition: GsfMaterialEffectsUpdator.h:23