Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4TpcDetector.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4TpcDetector.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4TPC_PHG4TPCDETECTOR_H
4 #define G4TPC_PHG4TPCDETECTOR_H
5 
6 #include <g4main/PHG4Detector.h>
7 
8 #include <cmath>
9 #include <set>
10 #include <string>
11 #include <vector>
12 
13 class G4LogicalVolume;
14 class G4UserLimits;
15 class G4VPhysicalVolume;
16 class PHCompositeNode;
18 class PHG4Subsystem;
19 class PHParameters;
20 
22 {
23  public:
26 
28  ~PHG4TpcDetector(void) override
29  {
30  }
31 
33  void ConstructMe(G4LogicalVolume *world) override;
34 
35  int IsInTpc(G4VPhysicalVolume *) const;
37  const std::string SuperDetector() const { return m_SuperDetectorName; }
38 
39  private:
40  int ConstructTpcGasVolume(G4LogicalVolume *tpc_envelope);
41  int ConstructTpcCageVolume(G4LogicalVolume *tpc_envelope);
42  int ConstructTpcExternalSupports(G4LogicalVolume *logicWorld);
43 
44  void CreateCompositeMaterial(std::string compositeName, std::vector<std::string> materialName, std::vector<double> thickness);
45 
47 
48  void add_geometry_node();
49 
51  PHParameters *m_Params = nullptr;
52  G4UserLimits *m_G4UserLimits = nullptr;
53  int m_ActiveFlag = 0;
55  double m_InnerCageRadius = NAN;
56  double m_OuterCageRadius = NAN;
57  std::set<G4VPhysicalVolume *> m_AbsorberVolumeSet;
58  std::set<G4VPhysicalVolume *> m_ActiveVolumeSet;
59 
61 };
62 
63 #endif