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 Attributes | Friends
MaterialAccountingDetector Class Reference

#include <MaterialAccountingDetector.h>

Public Member Functions

void account (const MaterialAccountingStep &step, double begin, double end)
 
void clear (void)
 
const MaterialAccountingStepmaterial () const
 
 MaterialAccountingDetector (void)
 
const GlobalPointposition () const
 

Private Attributes

MaterialAccountingStep m_accounting
 
double m_cosThetaIn
 
double m_cosThetaOut
 
double m_curvilinearIn
 
double m_curvilinearOut
 
GlobalPoint m_position
 

Friends

class MaterialAccountingTrack
 
class TrackingMaterialAnalyser
 

Detailed Description

Definition at line 15 of file MaterialAccountingDetector.h.

Constructor & Destructor Documentation

MaterialAccountingDetector::MaterialAccountingDetector ( void  )
inline

Member Function Documentation

void MaterialAccountingDetector::account ( const MaterialAccountingStep step,
double  begin,
double  end 
)
inline

Definition at line 48 of file MaterialAccountingDetector.h.

References m_accounting, m_cosThetaIn, m_cosThetaOut, m_curvilinearIn, m_curvilinearOut, and relval_parameters_module::step.

49  {
50  if (end <= m_curvilinearIn)
51  // step before detector
53  else if (begin >= m_curvilinearOut)
54  // step after detector
56  else
57  // step inside detector
58  m_accounting += (m_cosThetaIn + m_cosThetaOut ) / 2. * step;
59  }
#define end
Definition: vmac.h:37
#define begin
Definition: vmac.h:30
void MaterialAccountingDetector::clear ( void  )
inline
const MaterialAccountingStep& MaterialAccountingDetector::material ( void  ) const
inline

Definition at line 42 of file MaterialAccountingDetector.h.

References m_accounting.

Referenced by MaterialAccountingGroup::addDetector().

42  {
43  return m_accounting;
44  }
const GlobalPoint& MaterialAccountingDetector::position ( ) const
inline

Definition at line 38 of file MaterialAccountingDetector.h.

References m_position.

Referenced by TrackingMaterialAnalyser::findLayer(), and MaterialAccountingGroup::inside().

38  {
39  return m_position;
40  }

Friends And Related Function Documentation

friend class MaterialAccountingTrack
friend

Definition at line 16 of file MaterialAccountingDetector.h.

friend class TrackingMaterialAnalyser
friend

Definition at line 17 of file MaterialAccountingDetector.h.

Member Data Documentation

MaterialAccountingStep MaterialAccountingDetector::m_accounting
private

Definition at line 67 of file MaterialAccountingDetector.h.

Referenced by account(), clear(), and material().

double MaterialAccountingDetector::m_cosThetaIn
private
double MaterialAccountingDetector::m_cosThetaOut
private
double MaterialAccountingDetector::m_curvilinearIn
private
double MaterialAccountingDetector::m_curvilinearOut
private
GlobalPoint MaterialAccountingDetector::m_position
private