#include <LUCID_HitHelper.h>
|
static void | Print (int id) |
|
static void | SetBit (int &i, int bitpos) |
|
static void | UnsetBit (int &i, int bitpos) |
|
static void | Store (int &id, int value, int first, int field) |
|
static int | Retrieve (int id, int first, int field) |
|
Definition at line 24 of file LUCID_HitHelper.h.
◆ LUCID_HitHelper()
LUCID_HitHelper::LUCID_HitHelper |
( |
| ) |
|
|
inline |
◆ ~LUCID_HitHelper()
LUCID_HitHelper::~LUCID_HitHelper |
( |
| ) |
|
|
inline |
◆ GetEnergy()
double LUCID_HitHelper::GetEnergy |
( |
double |
lambda | ) |
const |
|
inline |
◆ GetFieldValue()
int HitIdHelper::GetFieldValue |
( |
const std::string & |
name, |
|
|
HitID |
targetID |
|
) |
| const |
|
inherited |
Definition at line 48 of file HitIdHelper.cxx.
50 for (
unsigned int i=0;
i<
m_IDs.size();
i++)
58 std::cout<<
"HitIdHelper: field "<<
name<<
" not found: returning 0"<<
◆ GetPostStepPoint()
G4ThreeVector LUCID_HitHelper::GetPostStepPoint |
( |
G4Step * |
aStep | ) |
const |
|
inline |
Definition at line 32 of file LUCID_HitHelper.h.
32 {
return aStep->GetPostStepPoint()->GetPosition(); }
◆ GetPostStepTime()
float LUCID_HitHelper::GetPostStepTime |
( |
G4Step * |
aStep | ) |
const |
|
inline |
Definition at line 34 of file LUCID_HitHelper.h.
34 {
return aStep->GetPostStepPoint()->GetGlobalTime(); }
◆ GetPreStepPoint()
G4ThreeVector LUCID_HitHelper::GetPreStepPoint |
( |
G4Step * |
aStep | ) |
const |
|
inline |
Definition at line 31 of file LUCID_HitHelper.h.
31 {
return aStep->GetPreStepPoint()->GetPosition(); }
◆ GetPreStepTime()
float LUCID_HitHelper::GetPreStepTime |
( |
G4Step * |
aStep | ) |
const |
|
inline |
Definition at line 33 of file LUCID_HitHelper.h.
33 {
return aStep->GetPreStepPoint()->GetGlobalTime(); }
◆ GetTubNumber()
int LUCID_HitHelper::GetTubNumber |
( |
G4Step * |
aStep | ) |
const |
Definition at line 20 of file LUCID_HitHelper.cxx.
22 G4String volName = aStep->GetTrack()->GetVolume()->GetName();
26 if (!strcmp(volName.substr(5, 9).c_str(),
"VesselGas")) tubNumber = -1;
27 else if (!strcmp(volName.substr(5, 7).c_str(),
"TubeGas" )) tubNumber =
atoi(volName.substr(12, 2).c_str());
28 else if (!strcmp(volName.substr(5, 3).c_str(),
"Pmt" )) tubNumber =
atoi(volName.substr( 8, 2).c_str());
◆ GetVolNumber()
int LUCID_HitHelper::GetVolNumber |
( |
const G4String & |
volName | ) |
|
|
static |
Definition at line 9 of file LUCID_HitHelper.cxx.
13 if (!strcmp(volName.substr(9, 9).c_str(),
"VesselGas")) volNumber =
GASVES;
14 else if (!strcmp(volName.substr(9, 7).c_str(),
"TubeGas" )) volNumber =
GASTUB;
15 else if (!strcmp(volName.substr(9, 3).c_str(),
"Pmt" )) volNumber =
QUARTZ;
◆ GetWaveLength()
double LUCID_HitHelper::GetWaveLength |
( |
double |
energy | ) |
const |
|
inline |
◆ InitializeField() [1/2]
void HitIdHelper::InitializeField |
( |
const std::string & |
n, |
|
|
int |
nb |
|
) |
| |
|
inherited |
◆ InitializeField() [2/2]
void HitIdHelper::InitializeField |
( |
const std::string & |
n, |
|
|
int |
vmn, |
|
|
int |
vmx |
|
) |
| |
|
inherited |
◆ Print()
void HitIdHelper::Print |
( |
int |
id | ) |
|
|
staticinherited |
Definition at line 73 of file HitIdHelper.cxx.
75 for (
unsigned int i=0;
i<8*
sizeof(
int);
i++)
77 if ((
id & (1
u<<
i))) std::cout<<
"1";
◆ PrintFields()
void HitIdHelper::PrintFields |
( |
| ) |
|
|
inherited |
◆ Retrieve()
int HitIdHelper::Retrieve |
( |
int |
id, |
|
|
int |
first, |
|
|
int |
field |
|
) |
| |
|
staticprotectedinherited |
◆ SetBit()
void HitIdHelper::SetBit |
( |
int & |
i, |
|
|
int |
bitpos |
|
) |
| |
|
staticprotectedinherited |
◆ SetFieldValue()
void HitIdHelper::SetFieldValue |
( |
const std::string & |
name, |
|
|
int |
n, |
|
|
HitID & |
targetID |
|
) |
| const |
|
inherited |
Definition at line 31 of file HitIdHelper.cxx.
33 for (
unsigned int i=0;
i<
m_IDs.size();
i++)
38 std::cout<<
"HitIdHelper: field "<<
name<<
": supplied value "<<
n<<
39 " is not within the allowed range ["<<
m_IDs[
i].vMin<<
","<<
m_IDs[
i].vMax
40 <<
"] : the result of this action is unpredictable "<<std::endl;
◆ Store()
void HitIdHelper::Store |
( |
int & |
id, |
|
|
int |
value, |
|
|
int |
first, |
|
|
int |
field |
|
) |
| |
|
staticprotectedinherited |
◆ UnsetBit()
void HitIdHelper::UnsetBit |
( |
int & |
i, |
|
|
int |
bitpos |
|
) |
| |
|
staticprotectedinherited |
◆ m_currentStorage
int HitIdHelper::m_currentStorage |
|
protectedinherited |
◆ m_IDs
The documentation for this class was generated from the following files: