Garfield++ v2r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
Garfield::OpticalData Class Reference

Photoabsorption cross-sections for some gases. More...

#include <OpticalData.hh>

Public Member Functions

 OpticalData ()
 
 ~OpticalData ()
 
bool IsAvailable (const std::string material) const
 
bool GetPhotoabsorptionCrossSection (const std::string material, const double e, double &cs, double &eta)
 
void EnableDebugging ()
 
void DisableDebugging ()
 

Detailed Description

Photoabsorption cross-sections for some gases.

Definition at line 11 of file OpticalData.hh.

Constructor & Destructor Documentation

◆ OpticalData()

Garfield::OpticalData::OpticalData ( )
inline

Definition at line 15 of file OpticalData.hh.

15: debug(false) {}

◆ ~OpticalData()

Garfield::OpticalData::~OpticalData ( )
inline

Definition at line 17 of file OpticalData.hh.

17{}

Member Function Documentation

◆ DisableDebugging()

void Garfield::OpticalData::DisableDebugging ( )
inline

Definition at line 25 of file OpticalData.hh.

25{ debug = false; }

◆ EnableDebugging()

void Garfield::OpticalData::EnableDebugging ( )
inline

Definition at line 24 of file OpticalData.hh.

24{ debug = true; }

◆ GetPhotoabsorptionCrossSection()

bool Garfield::OpticalData::GetPhotoabsorptionCrossSection ( const std::string  material,
const double  e,
double &  cs,
double &  eta 
)

Definition at line 30 of file OpticalData.cc.

32 {
33
34 if (material == "Ne") return PhotoAbsorptionCsNeon(e, cs, eta);
35 if (material == "Ar") return PhotoAbsorptionCsArgon(e, cs, eta);
36
37 if (material == "CO2") return PhotoAbsorptionCsCO2(e, cs, eta);
38
39 if (material == "CH4") return PhotoAbsorptionCsMethane(e, cs, eta);
40 if (material == "C2H6") return PhotoAbsorptionCsEthane(e, cs, eta);
41 if (material == "nC4H10") return PhotoAbsorptionCsButane(e, cs, eta);
42 if (material == "C2H2") return PhotoAbsorptionCsAcetylene(e, cs, eta);
43
44 if (material == "CF4") return PhotoAbsorptionCsCF4(e, cs, eta);
45
46 if (material == "N2") return PhotoAbsorptionCsNitrogen(e, cs, eta);
47
48 return false;
49}

Referenced by Garfield::MediumGas::GetPhotoabsorptionCrossSection().

◆ IsAvailable()

bool Garfield::OpticalData::IsAvailable ( const std::string  material) const

Definition at line 10 of file OpticalData.cc.

10 {
11
12 if (material == "Ne") return true;
13 if (material == "Ar") return true;
14
15 if (material == "CO2") return true;
16
17 if (material == "CH4") return true;
18 if (material == "C2H6") return true;
19 if (material == "nC4H10") return true;
20
21 if (material == "C2H2") return true;
22
23 if (material == "CF4") return true;
24
25 if (material == "N2") return true;
26
27 return false;
28}

Referenced by Garfield::MediumGas::GetPhotoabsorptionCrossSection().


The documentation for this class was generated from the following files: