EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4ForwardHcalDetector.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4ForwardHcalDetector.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4FORWARDHCALDETECTOR_H
4 #define G4DETECTORS_PHG4FORWARDHCALDETECTOR_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  PHG4ForwardHcalDetector(PHG4Subsystem *subsys, PHCompositeNode *Node, PHParameters *parameters, const std::string &dnam);
32 
35 
37  virtual void ConstructMe(G4LogicalVolume *world);
38 
40  int IsInForwardHcal(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;
67  int m_Layer = 0;
68 
70  std::string m_SuperDetector;
71 
72  std::map<std::string, G4double> m_GlobalParameterMap;
73  std::map<std::string, towerposition> m_TowerPostionMap;
74 
75  std::set<G4LogicalVolume *> m_AbsorberLogicalVolSet;
76  std::set<G4LogicalVolume *> m_ScintiLogicalVolSet;
77  std::set<G4LogicalVolume *> m_SupportLogicalVolSet;
78 };
79 
80 #endif