ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4BeamlineMagnetDetector.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4BeamlineMagnetDetector.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4BEAMLINEMAGNETDETECTOR_H
4 #define G4DETECTORS_PHG4BEAMLINEMAGNETDETECTOR_H
5 
6 #include <g4main/PHG4Detector.h>
7 
8 #include <string>
9 
10 class G4LogicalVolume;
11 class G4VPhysicalVolume;
12 class PHCompositeNode;
13 class PHG4Subsystem;
14 class PHParameters;
15 
17 {
18  public:
20  PHG4BeamlineMagnetDetector(PHG4Subsystem *subsys, PHCompositeNode *Node, PHParameters *parameters, const std::string &dnam, const int layer = 0);
21 
24  {
25  }
26 
28  void ConstructMe(G4LogicalVolume *world) override;
29 
30  bool IsInBeamlineMagnet(const G4VPhysicalVolume *) const;
31  void SuperDetector(const std::string &name) { superdetector = name; }
32  const std::string SuperDetector() const { return superdetector; }
33  int get_Layer() const { return layer; }
34 
35  private:
37 
40 
41  int layer;
42  std::string superdetector;
43 };
44 
45 #endif