ECCE @ EIC 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 <vector>
11 
12 class G4LogicalVolume;
13 class G4UserLimits;
14 class G4VPhysicalVolume;
15 class PHCompositeNode;
17 class PHG4Subsystem;
18 class PHParameters;
19 
21 {
22  public:
24  PHG4TpcDetector(PHG4Subsystem *subsys, PHCompositeNode *Node, PHParameters *parameters, const std::string &dnam);
25 
27  ~PHG4TpcDetector(void) override
28  {
29  }
30 
32  void ConstructMe(G4LogicalVolume *world) override;
33 
34  int IsInTpc(G4VPhysicalVolume *) const;
35  void SuperDetector(const std::string &name) { m_SuperDetectorName = name; }
36  const std::string SuperDetector() const { return m_SuperDetectorName; }
37 
38  private:
39  int ConstructTpcGasVolume(G4LogicalVolume *tpc_envelope);
40  int ConstructTpcCageVolume(G4LogicalVolume *tpc_envelope);
42 
43  void CreateCompositeMaterial(std::string compositeName, std::vector<std::string> materialName, std::vector<double> thickness);
44 
46  PHParameters *m_Params = nullptr;
48  int m_ActiveFlag = 0;
50  double m_InnerCageRadius = NAN;
51  double m_OuterCageRadius = NAN;
52  std::set<G4VPhysicalVolume *> m_AbsorberVolumeSet;
53  std::set<G4VPhysicalVolume *> m_ActiveVolumeSet;
54 
55  std::string m_SuperDetectorName;
56 };
57 
58 #endif