CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
GsfMaterialEffectsAdapter Class Reference

#include <GsfMaterialEffectsAdapter.h>

Inheritance diagram for GsfMaterialEffectsAdapter:
GsfMaterialEffectsUpdator

Public Member Functions

 GsfMaterialEffectsAdapter (const MaterialEffectsUpdator &aMEUpdator)
 
 ~GsfMaterialEffectsAdapter ()
 
- Public Member Functions inherited from GsfMaterialEffectsUpdator
virtual std::vector
< AlgebraicSymMatrix55
deltaLocalErrors (const TrajectoryStateOnSurface &TSoS, const PropagationDirection propDir) const
 
virtual std::vector< double > deltaPs (const TrajectoryStateOnSurface &TSoS, const PropagationDirection propDir) const
 
 GsfMaterialEffectsUpdator (float mass)
 
float mass () const
 
virtual TrajectoryStateOnSurface updateState (const TrajectoryStateOnSurface &TSoS, const PropagationDirection propDir) const
 
virtual std::vector< double > weights (const TrajectoryStateOnSurface &TSoS, const PropagationDirection propDir) const
 
virtual ~GsfMaterialEffectsUpdator ()
 

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
 

Additional Inherited Members

- Protected Attributes inherited from GsfMaterialEffectsUpdator
std::vector< AlgebraicSymMatrix55theDeltaCovs
 
std::vector< double > theDeltaPs
 
std::vector< double > theWeights
 

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

22  :
23  GsfMaterialEffectsUpdator(aMEUpdator.mass()),
24  theMEUpdator(aMEUpdator.clone()) {theWeights.push_back(1.);}
DeepCopyPointerByClone< MaterialEffectsUpdator > theMEUpdator
virtual MaterialEffectsUpdator * clone() const =0
GsfMaterialEffectsAdapter::~GsfMaterialEffectsAdapter ( )
inline

Definition at line 26 of file GsfMaterialEffectsAdapter.h.

26 {}

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 
) const
privatevirtual

Implements GsfMaterialEffectsUpdator.

Definition at line 11 of file GsfMaterialEffectsAdapter.cc.

References MaterialEffectsUpdator::deltaLocalError(), MaterialEffectsUpdator::deltaP(), GsfMaterialEffectsUpdator::theDeltaCovs, GsfMaterialEffectsUpdator::theDeltaPs, and theMEUpdator.

13 {
14  //
15  // use deltaP from standard updator
16  //
17  theDeltaPs.clear();
18  theDeltaPs.push_back(theMEUpdator->deltaP(aTSoS,aPropDir));
19  //
20  // use covariance matrix from standard updator
21  //
22  theDeltaCovs.clear();
23  theDeltaCovs.push_back(theMEUpdator->deltaLocalError(aTSoS,aPropDir));
24 }
DeepCopyPointerByClone< MaterialEffectsUpdator > theMEUpdator
std::vector< AlgebraicSymMatrix55 > theDeltaCovs
virtual const AlgebraicSymMatrix55 & deltaLocalError(const TrajectoryStateOnSurface &TSoS, const PropagationDirection propDir) const
virtual double deltaP(const TrajectoryStateOnSurface &TSoS, const PropagationDirection propDir) const
virtual bool GsfMaterialEffectsAdapter::newArguments ( const TrajectoryStateOnSurface ,
const PropagationDirection   
) const
inlineprotectedvirtual

Reimplemented from GsfMaterialEffectsUpdator.

Definition at line 34 of file GsfMaterialEffectsAdapter.h.

35  {
36  return true;
37  }
virtual void GsfMaterialEffectsAdapter::storeArguments ( const TrajectoryStateOnSurface ,
const PropagationDirection   
) const
inlineprotectedvirtual

Reimplemented from GsfMaterialEffectsUpdator.

Definition at line 39 of file GsfMaterialEffectsAdapter.h.

39 {}

Member Data Documentation

DeepCopyPointerByClone<MaterialEffectsUpdator> GsfMaterialEffectsAdapter::theMEUpdator
private

Definition at line 42 of file GsfMaterialEffectsAdapter.h.

Referenced by compute().