EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4ECAPToFDetector.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4ECAPToFDetector.h
1 #ifndef G4DETECTORS_PHG4ECAPToFDETECTOR_H
2 #define G4DETECTORS_PHG4ECAPToFDETECTOR_H
3 
4 #include <g4main/PHG4Detector.h>
5 
6 #include <cmath>
7 #include <set>
8 #include <string>
9 
10 class G4LogicalVolume;
11 class G4VPhysicalVolume;
12 class PHCompositeNode;
13 class PHG4Subsystem;
14 class PHParameters;
15 
17 {
18  public:
19  PHG4ECAPToFDetector(PHG4Subsystem *subsys, PHCompositeNode *Node, PHParameters *parameters, const std::string &dnam = "ETOF", const int lyr = 0);
20 
23  {
24  }
25 
26  //Construct mRPC ToF
27  void ConstructMe(G4LogicalVolume *world) override;
28 
29  int IsInToF(const G4VPhysicalVolume *) const;
30  void SuperDetector(const std::string &name) { m_SuperDetector = name; }
31  const std::string SuperDetector() const { return m_SuperDetector; }
32  int get_Layer() const { return m_Layer; }
33 
34  private:
36 
37  G4VPhysicalVolume *Phys;
38  G4VPhysicalVolume *fhc_phys;
39  G4VPhysicalVolume *fpcb_phys;
40  G4VPhysicalVolume *fpcbcu_phys;
41  G4VPhysicalVolume *fmylar_phys;
42  G4VPhysicalVolume *fcarbon_phys;
43  G4VPhysicalVolume *fglass_phys[6];
44  G4VPhysicalVolume *fgas_phys[7];
45  G4VPhysicalVolume *mcarbon_phys;
46  G4VPhysicalVolume *mmylar_phys;
47  G4VPhysicalVolume *mpcbcu_phys;
48  G4VPhysicalVolume *mpcb_phys;
49  G4VPhysicalVolume *mpcbcu2_phys;
50  G4VPhysicalVolume *mmylar2_phys;
51  G4VPhysicalVolume *mcarbon2_phys;
52  G4VPhysicalVolume *bglass_phys[6];
53  G4VPhysicalVolume *bgas_phys[7];
54  G4VPhysicalVolume *bhc_phys;
55  G4VPhysicalVolume *bpcb_phys;
56  G4VPhysicalVolume *bpcbcu_phys;
57  G4VPhysicalVolume *bmylar_phys;
58  G4VPhysicalVolume *bcarbon_phys;
59 
60  int m_Active;
61  int m_Layer;
62 
63  std::string m_SuperDetector;
64 };
65 #endif