ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4LFHcalDetector.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4LFHcalDetector.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4LFHCALDETECTOR_H
4 #define G4DETECTORS_PHG4LFHCALDETECTOR_H
5 
6 #include <g4main/PHG4Detector.h>
7 #include <Geant4/G4Material.hh>
8 
9 #include <Geant4/G4Types.hh> // for G4double
10 
11 #include <map>
12 #include <set>
13 #include <string>
14 
15 class G4LogicalVolume;
16 class G4VPhysicalVolume;
17 class PHCompositeNode;
19 class PHG4Subsystem;
20 class PHParameters;
21 
29 {
30  public:
32  PHG4LFHcalDetector(PHG4Subsystem *subsys, PHCompositeNode *Node, PHParameters *parameters, const std::string &dnam);
33 
35  virtual ~PHG4LFHcalDetector() {}
36 
38  virtual void ConstructMe(G4LogicalVolume *world);
39 
41  int IsInLFHcal(G4VPhysicalVolume *) const;
42 
43  void SuperDetector(const std::string &name) { m_SuperDetector = name; }
44  const std::string SuperDetector() const { return m_SuperDetector; }
45 
46  PHParameters *getParamsDet() const { return m_Params; }
47 
48  int get_Layer() const { return m_Layer; }
49 
50  void DoFullLightProp(bool doProp) { m_doLightProp = doProp; }
51 
52  private:
54  int PlaceTower(G4LogicalVolume *envelope, G4LogicalVolume *tower);
59  void SurfaceTable(G4LogicalVolume *vol);
60  void MakeBoundary(G4VPhysicalVolume *crystal, G4VPhysicalVolume *opdet, bool isFiber);
63  {
67  int idx_j;
68  int idx_k;
69  };
70 
72  PHParameters *m_Params = nullptr;
73 
74  int m_ActiveFlag = 1;
76  int m_Layer = 0;
77 
79  std::string m_SuperDetector;
80 
81  std::map<std::string, G4double> m_GlobalParameterMap;
82  std::map<std::string, towerposition> m_TowerPostionMap;
83 
84  std::set<G4LogicalVolume *> m_AbsorberLogicalVolSet;
85  std::set<G4LogicalVolume *> m_ScintiLogicalVolSet;
86 
87  bool m_doLightProp = false;
88 };
89 
90 #endif