/
eASTDetectorComponentGDML.hh
48 lines (38 loc) · 1.13 KB
/
eASTDetectorComponentGDML.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// ********************************************************************
//
// eASTDetectorComponentGDML.hh
// eAST Beam pipe component
//
// History
// October 25, 2021 : first implementation
//
// ********************************************************************
#ifndef eASTDetectorComponentGDML_H
#define eASTDetectorComponentGDML_H 1
#include "eASTVDetectorComponent.hh"
class G4GenericMessenger;
class eASTDetectorComponentGDML : public eASTVDetectorComponent
{
public:
eASTDetectorComponentGDML(G4String compName, G4int vl = 0, const G4bool validate_gdml=false);
virtual ~eASTDetectorComponentGDML();
public:
virtual void SetUp();
virtual void Construct(G4VPhysicalVolume*);
private:
G4GenericMessenger* messenger = nullptr;
G4String gdmlFileName = "*NOTDEFINED*";
G4String matFileName = "*NOTDEFINED*";
G4bool materialToBeSet = false;
protected:
const G4bool m_validate_gdml=false;
public:
void SetGDML(G4String fn)
{ gdmlFileName = LocateDataFile(fn); }
void SetMatFile(G4String fn)
{
matFileName = LocateDataFile(fn);
materialToBeSet = true;
}
};
#endif