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 ( const MaterialEffectsUpdator aMEUpdator)
inline

Definition at line 21 of file GsfMaterialEffectsAdapter.h.

Referenced by clone().

21  :
22  GsfMaterialEffectsUpdator(aMEUpdator.mass(),1),
23  theMEUpdator(aMEUpdator.clone()) {}
DeepCopyPointerByClone< MaterialEffectsUpdator > theMEUpdator
GsfMaterialEffectsUpdator(float mass, uint32_t is)
virtual MaterialEffectsUpdator * clone() const =0
GsfMaterialEffectsAdapter::~GsfMaterialEffectsAdapter ( )
inlineoverride

Definition at line 25 of file GsfMaterialEffectsAdapter.h.

References compute().

25 {}

Member Function Documentation

GsfMaterialEffectsAdapter* GsfMaterialEffectsAdapter::clone ( void  ) const
inlineoverrideprivatevirtual

Implements GsfMaterialEffectsUpdator.

Definition at line 13 of file GsfMaterialEffectsAdapter.h.

References GsfMaterialEffectsAdapter().

14  {
15  return new GsfMaterialEffectsAdapter(*this);
16  }
GsfMaterialEffectsAdapter(const MaterialEffectsUpdator &aMEUpdator)
void GsfMaterialEffectsAdapter::compute ( const TrajectoryStateOnSurface aTSoS,
const PropagationDirection  aPropDir,
Effect  effects[] 
) const
overridevirtual

Implements GsfMaterialEffectsUpdator.

Definition at line 6 of file GsfMaterialEffectsAdapter.cc.

References MaterialEffectsUpdator::compute(), and theMEUpdator.

Referenced by ~GsfMaterialEffectsAdapter().

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

Member Data Documentation

DeepCopyPointerByClone<MaterialEffectsUpdator> GsfMaterialEffectsAdapter::theMEUpdator
private

Definition at line 33 of file GsfMaterialEffectsAdapter.h.

Referenced by compute().