EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
eASTSupportStructure.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file eASTSupportStructure.hh
1 // ********************************************************************
2 //
3 // eASTSupportStructure.hh
4 // eAST Beam pipe component
5 //
6 // History
7 // June 5th, 2021 : first implementation
8 //
9 // ********************************************************************
10 
11 #ifndef eASTSupportStructure_H
12 #define eASTSupportStructure_H 1
13 
15 
16 class G4GenericMessenger;
17 
19 {
20  public:
21  eASTSupportStructure(G4String compName, G4int vl = 0, const G4bool validate_gdml=false);
22  virtual ~eASTSupportStructure();
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