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

Definition at line 21 of file MaterialAccountingDetector.h.

Member Function Documentation

◆ account()

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

Definition at line 38 of file MaterialAccountingDetector.h.

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  }

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

◆ clear()

void MaterialAccountingDetector::clear ( void  )
inline

◆ material()

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

Definition at line 34 of file MaterialAccountingDetector.h.

34 { return m_accounting; }

References m_accounting.

◆ position()

const GlobalPoint& MaterialAccountingDetector::position ( ) const
inline

Definition at line 32 of file MaterialAccountingDetector.h.

32 { return m_position; }

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
MaterialAccountingDetector::m_cosThetaOut
double m_cosThetaOut
Definition: MaterialAccountingDetector.h:55
step
step
Definition: StallMonitor.cc:94
MaterialAccountingDetector::m_cosThetaIn
double m_cosThetaIn
Definition: MaterialAccountingDetector.h:54
MaterialAccountingDetector::m_curvilinearIn
double m_curvilinearIn
Definition: MaterialAccountingDetector.h:52
MaterialAccountingDetector::m_curvilinearOut
double m_curvilinearOut
Definition: MaterialAccountingDetector.h:53
end
#define end
Definition: vmac.h:39
GlobalPoint
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
MaterialAccountingDetector::m_accounting
MaterialAccountingStep m_accounting
Definition: MaterialAccountingDetector.h:56
MaterialAccountingDetector::m_position
GlobalPoint m_position
Definition: MaterialAccountingDetector.h:51
MaterialAccountingStep::clear
void clear(void)
Definition: MaterialAccountingStep.h:16
begin
#define begin
Definition: vmac.h:32