EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
eASTDetectorComponentGDML.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file eASTDetectorComponentGDML.hh
1 // ********************************************************************
2 //
3 // eASTDetectorComponentGDML.hh
4 // eAST Beam pipe component
5 //
6 // History
7 // October 25, 2021 : first implementation
8 //
9 // ********************************************************************
10 
11 #ifndef eASTDetectorComponentGDML_H
12 #define eASTDetectorComponentGDML_H 1
13 
15 
16 class G4GenericMessenger;
17 
19 {
20  public:
21  eASTDetectorComponentGDML(G4String compName, G4int vl = 0, const G4bool validate_gdml=false);
23 
24  public:
25  virtual void SetUp();
26  virtual void Construct(G4VPhysicalVolume*);
27 
28  private:
29  G4GenericMessenger* messenger = nullptr;
30  G4String gdmlFileName = "*NOTDEFINED*";
31  G4String matFileName = "*NOTDEFINED*";
32  G4bool materialToBeSet = false;
33 
34  protected:
35  const G4bool m_validate_gdml=false;
36 
37  public:
38  void SetGDML(G4String fn)
39  { gdmlFileName = LocateDataFile(fn); }
40  void SetMatFile(G4String fn)
41  {
43  materialToBeSet = true;
44  }
45 };
46 
47 #endif
48