test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

virtual void compute (const TrajectoryStateOnSurface &, const PropagationDirection, Effect[]) const
 
 GsfMaterialEffectsAdapter (const MaterialEffectsUpdator &aMEUpdator)
 
 ~GsfMaterialEffectsAdapter ()
 
- 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

virtual GsfMaterialEffectsAdapterclone () const
 

Private Attributes

DeepCopyPointerByClone
< MaterialEffectsUpdator
theMEUpdator
 

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 ( )
inline

Definition at line 25 of file GsfMaterialEffectsAdapter.h.

25 {}

Member Function Documentation

virtual GsfMaterialEffectsAdapter* GsfMaterialEffectsAdapter::clone ( void  ) const
inlineprivatevirtual

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
virtual

Implements GsfMaterialEffectsUpdator.

Definition at line 6 of file GsfMaterialEffectsAdapter.cc.

References MaterialEffectsUpdator::compute(), and theMEUpdator.

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().