Analysis Software
Documentation for sPHENIX simulation 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  void ConstructSupport(G4LogicalVolume *world);
33 
34  void Print(const std::string &what = "ALL") const override;
35 
36  int IsInBbc(G4VPhysicalVolume *) const;
37 
39  const std::string SuperDetector() const { return m_SuperDetector; }
40 
42 
43  protected:
45 
46  PHParameters *m_Params = nullptr;
47 
48  int m_ActiveFlag = 0;
50 
51  float m_bbcz = NAN; // z-location of mid-point of quartz ckov crystals
52  float front_bbcz = NAN; // z-location of front of BBC housing
53 
54  std::set<G4LogicalVolume *> m_PhysLogicalVolSet;
55  std::set<G4LogicalVolume *> m_SupportLogicalVolSet;
56 
58 };
59 
60 #endif