ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4PSTOFDetector.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4PSTOFDetector.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4PSTOFDETECTOR_H
4 #define G4DETECTORS_PHG4PSTOFDETECTOR_H
5 
6 #include <g4main/PHG4Detector.h>
7 
8 #include <map>
9 #include <string> // for string
10 
11 class G4LogicalVolume;
12 class G4VPhysicalVolume;
13 class PHCompositeNode;
15 class PHG4Subsystem;
16 
18 {
19  public:
21  PHG4PSTOFDetector(PHG4Subsystem *subsys, PHCompositeNode *Node, PHParametersContainer *params_array, const std::string &dnam);
22 
24  ~PHG4PSTOFDetector() override {}
25 
27  void ConstructMe(G4LogicalVolume *world) override;
28 
29  void Print(const std::string &what = "ALL") const override;
30 
32 
33  int IsInPSTOF(G4VPhysicalVolume *) const;
35 
36  void SuperDetector(const std::string &name) { superdetector = name; }
37  const std::string SuperDetector() const { return superdetector; }
38 
39  protected:
40  int IsActive;
42  int nmod;
43  int nrows;
45  std::map<G4VPhysicalVolume *, int> active_phys_vols;
46 
47  std::string superdetector;
48 };
49 
50 #endif