Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4Example01Detector.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4Example01Detector.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4EXAMPLE01DETECTOR_H
4 #define G4EXAMPLE01DETECTOR_H
5 
6 #include <g4main/PHG4Detector.h>
7 
8 #include <set>
9 #include <string> // for string
10 
11 class G4LogicalVolume;
12 class G4VPhysicalVolume;
13 class PHCompositeNode;
14 class PHG4Subsystem;
15 
17 {
18  public:
20  G4Example01Detector(PHG4Subsystem *subsys, PHCompositeNode *Node, const std::string &dnam);
21 
23  virtual ~G4Example01Detector() {}
24 
26  virtual void ConstructMe(G4LogicalVolume *world);
27 
28  virtual void Print(const std::string &what = "ALL") const;
29 
31 
32  int IsInDetector(G4VPhysicalVolume *) const;
34 
36  const std::string SuperDetector() const { return m_SuperDetector; }
37 
38  private:
39  // active volumes
40  std::set<G4VPhysicalVolume *> m_PhysicalVolumesSet;
41 
43 };
44 
45 #endif // G4EXAMPLE01DETECTOR_H