CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 DD4hep_TrackingMaterialAnalyser
 
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 38 of file MaterialAccountingDetector.h.

References m_accounting, m_cosThetaIn, m_cosThetaOut, m_curvilinearIn, and m_curvilinearOut.

38  {
39  if (end <= m_curvilinearIn)
40  // step before detector
42  else if (begin >= m_curvilinearOut)
43  // step after detector
45  else
46  // step inside detector
47  m_accounting += (m_cosThetaIn + m_cosThetaOut) / 2. * step;
48  }
string end
Definition: dataset.py:937
step
Definition: StallMonitor.cc:94
void MaterialAccountingDetector::clear ( void  )
inline
const MaterialAccountingStep& MaterialAccountingDetector::material ( void  ) const
inline
const GlobalPoint& MaterialAccountingDetector::position ( ) const
inline

Friends And Related Function Documentation

friend class DD4hep_TrackingMaterialAnalyser
friend

Definition at line 18 of file MaterialAccountingDetector.h.

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 56 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