EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4BackwardHcalDetector.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4BackwardHcalDetector.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4BACKWARDHCALDETECTOR_H
4 #define G4DETECTORS_PHG4BACKWARDHCALDETECTOR_H
5 
6 #include <g4main/PHG4Detector.h>
7 
8 #include <Geant4/G4Types.hh> // for G4double
9 
10 #include <map>
11 #include <set>
12 #include <string>
13 
14 class G4LogicalVolume;
15 class G4VPhysicalVolume;
16 class PHCompositeNode;
18 class PHG4Subsystem;
19 class PHParameters;
20 
28 {
29  public:
31  PHG4BackwardHcalDetector(PHG4Subsystem *subsys, PHCompositeNode *Node, PHParameters *parameters, const std::string &dnam);
32 
35 
37  virtual void ConstructMe(G4LogicalVolume *world);
38 
40  int IsInBackwardHcal(G4VPhysicalVolume *) const;
41 
42  void SuperDetector(const std::string &name) { m_SuperDetector = name; }
43  const std::string SuperDetector() const { return m_SuperDetector; }
44 
45  int get_Layer() const { return m_Layer; }
46 
47  private:
48  G4LogicalVolume *ConstructTower();
49  int PlaceTower(G4LogicalVolume *envelope, G4LogicalVolume *tower);
51 
53  {
54  G4double x;
55  G4double y;
56  G4double z;
57  int idx_j;
58  int idx_k;
59  };
60 
62  PHParameters *m_Params = nullptr;
63 
64  int m_ActiveFlag = 1;
66  int m_Layer = 0;
67 
69  std::string m_SuperDetector;
70 
71  std::map<std::string, G4double> m_GlobalParameterMap;
72  std::map<std::string, towerposition> m_TowerPostionMap;
73 
74  std::set<G4LogicalVolume *> m_AbsorberLogicalVolSet;
75  std::set<G4LogicalVolume *> m_ScintiLogicalVolSet;
76 };
77 
78 #endif