CMS 3D CMS Logo

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::MaterialAccountingDetector ( void  )
inline

Member Function Documentation

◆ account()

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

Definition at line 38 of file MaterialAccountingDetector.h.

References SplitLinear::begin, mps_fire::end, 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
48  }
step
Definition: StallMonitor.cc:83

◆ clear()

void MaterialAccountingDetector::clear ( void  )
inline

◆ material()

const MaterialAccountingStep& MaterialAccountingDetector::material ( void  ) const
inline

Definition at line 34 of file MaterialAccountingDetector.h.

References m_accounting.

34 { return m_accounting; }

◆ position()

const GlobalPoint& MaterialAccountingDetector::position ( ) const
inline

Definition at line 32 of file MaterialAccountingDetector.h.

References m_position.

Friends And Related Function Documentation

◆ DD4hep_TrackingMaterialAnalyser

friend class DD4hep_TrackingMaterialAnalyser
friend

Definition at line 18 of file MaterialAccountingDetector.h.

◆ MaterialAccountingTrack

friend class MaterialAccountingTrack
friend

Definition at line 16 of file MaterialAccountingDetector.h.

◆ TrackingMaterialAnalyser

friend class TrackingMaterialAnalyser
friend

Definition at line 17 of file MaterialAccountingDetector.h.

Member Data Documentation

◆ m_accounting

MaterialAccountingStep MaterialAccountingDetector::m_accounting
private

Definition at line 56 of file MaterialAccountingDetector.h.

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

◆ m_cosThetaIn

double MaterialAccountingDetector::m_cosThetaIn
private

◆ m_cosThetaOut

double MaterialAccountingDetector::m_cosThetaOut
private

◆ m_curvilinearIn

double MaterialAccountingDetector::m_curvilinearIn
private

◆ m_curvilinearOut

double MaterialAccountingDetector::m_curvilinearOut
private

◆ m_position

GlobalPoint MaterialAccountingDetector::m_position
private