CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

GsfMaterialEffectsAdapter Class Reference

#include <GsfMaterialEffectsAdapter.h>

Inheritance diagram for GsfMaterialEffectsAdapter:
GsfMaterialEffectsUpdator

List of all members.

Public Member Functions

 GsfMaterialEffectsAdapter (const MaterialEffectsUpdator &aMEUpdator)
 ~GsfMaterialEffectsAdapter ()

Protected Member Functions

virtual bool newArguments (const TrajectoryStateOnSurface &, const PropagationDirection) const
virtual void storeArguments (const TrajectoryStateOnSurface &, const PropagationDirection) const

Private Member Functions

virtual GsfMaterialEffectsAdapterclone () const
virtual void compute (const TrajectoryStateOnSurface &, const PropagationDirection) const

Private Attributes

DeepCopyPointerByClone
< MaterialEffectsUpdator
theMEUpdator

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 22 of file GsfMaterialEffectsAdapter.h.

References GsfMaterialEffectsUpdator::theWeights.

Referenced by clone().

                                                                        :
    GsfMaterialEffectsUpdator(aMEUpdator.mass()),
    theMEUpdator(aMEUpdator.clone()) {theWeights.push_back(1.);}
GsfMaterialEffectsAdapter::~GsfMaterialEffectsAdapter ( ) [inline]

Definition at line 26 of file GsfMaterialEffectsAdapter.h.

{}

Member Function Documentation

virtual GsfMaterialEffectsAdapter* GsfMaterialEffectsAdapter::clone ( void  ) const [inline, private, virtual]

Implements GsfMaterialEffectsUpdator.

Definition at line 13 of file GsfMaterialEffectsAdapter.h.

References GsfMaterialEffectsAdapter().

  {
    return new GsfMaterialEffectsAdapter(*this);
  }
void GsfMaterialEffectsAdapter::compute ( const TrajectoryStateOnSurface aTSoS,
const PropagationDirection  aPropDir 
) const [private, virtual]

Implements GsfMaterialEffectsUpdator.

Definition at line 11 of file GsfMaterialEffectsAdapter.cc.

References GsfMaterialEffectsUpdator::theDeltaCovs, GsfMaterialEffectsUpdator::theDeltaPs, and theMEUpdator.

{
  //
  // use deltaP from standard updator
  //
  theDeltaPs.clear();
  theDeltaPs.push_back(theMEUpdator->deltaP(aTSoS,aPropDir));
  //
  // use covariance matrix from standard updator
  //
  theDeltaCovs.clear();
  theDeltaCovs.push_back(theMEUpdator->deltaLocalError(aTSoS,aPropDir));
}
virtual bool GsfMaterialEffectsAdapter::newArguments ( const TrajectoryStateOnSurface ,
const PropagationDirection   
) const [inline, protected, virtual]

Reimplemented from GsfMaterialEffectsUpdator.

Definition at line 34 of file GsfMaterialEffectsAdapter.h.

  {
    return true;
  }
virtual void GsfMaterialEffectsAdapter::storeArguments ( const TrajectoryStateOnSurface ,
const PropagationDirection   
) const [inline, protected, virtual]

Reimplemented from GsfMaterialEffectsUpdator.

Definition at line 39 of file GsfMaterialEffectsAdapter.h.

{}

Member Data Documentation

Definition at line 42 of file GsfMaterialEffectsAdapter.h.

Referenced by compute().