ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4BbcDetector.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4BbcDetector.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4BBCDETECTOR_H
4 #define G4DETECTORS_PHG4BBCDETECTOR_H
5 
6 #include <g4main/PHG4Detector.h>
7 
8 #include <cmath>
9 #include <set>
10 #include <string>
11 
12 class G4LogicalVolume;
13 class G4VPhysicalVolume;
15 class PHCompositeNode;
16 class PHG4Subsystem;
17 class PHParameters;
18 
20 {
21  public:
23  PHG4BbcDetector(PHG4Subsystem *subsys, PHCompositeNode *Node, PHParameters *params, const std::string &dnam = "BBC");
24 
26  ~PHG4BbcDetector() override
27  {
28  }
29 
31  void ConstructMe(G4LogicalVolume *world) override;
32 
33  void Print(const std::string &what = "ALL") const override;
34 
35  int IsInBbc(G4VPhysicalVolume *) const;
36 
37  void SuperDetector(const std::string &name) { m_SuperDetector = name; }
38  const std::string SuperDetector() const { return m_SuperDetector; }
39 
41 
42  protected:
44 
45  PHParameters *m_Params = nullptr;
46 
47  int m_ActiveFlag = 0;
49 
50  float m_bbcz = NAN; // z-location of mid-point of quartz ckov crystals
51 
52  std::set<G4LogicalVolume *> m_PhysLogicalVolSet;
53  std::set<G4LogicalVolume *> m_SupportLogicalVolSet;
54 
55  std::string m_SuperDetector;
56 };
57 
58 #endif