Class Reference for E1039 Core & Analysis Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PHG4ConeSubsystem.h
Go to the documentation of this file.
1 #ifndef PHG4ConeSubsystem_h
2 #define PHG4ConeSubsystem_h
3 
4 #include "g4main/PHG4Subsystem.h"
5 
6 #include <Geant4/G4Types.hh>
7 #include <Geant4/G4String.hh>
8 
9 class PHG4ConeDetector;
11 class PHG4EventAction;
12 
14 {
15 
16  public:
17 
19  PHG4ConeSubsystem( const std::string &name = "CONE", const int layer = 0 );
20 
22  virtual ~PHG4ConeSubsystem( void )
23  {}
24 
26 
31  int Init(PHCompositeNode *);
32 
34 
39 
41  virtual PHG4Detector* GetDetector( void ) const;
42  virtual PHG4SteppingAction* GetSteppingAction( void ) const;
43 
45  void SetR1(const G4double min, const G4double max)
46  {rMin1 = min; rMax1=max;}
47 
49  void SetR2(const G4double min, const G4double max)
50  {rMin2 = min; rMax2=max;}
51 
53  void SetZlength(const G4double a)
54  {dZ = a;}
55 
57  void SetPhi(const G4double a, const G4double b)
58  {sPhi = a; dPhi = b;}
59 
61  void Set_eta_range(G4double etaMin, G4double etaMax);
62 
63  void SetPlaceZ(const G4double dbl) {place_in_z = dbl;}
64  void SetPlace(const G4double place_x, const G4double place_y, const G4double place_z)
65  {
66  place_in_x = place_x;
67  place_in_y = place_y;
68  place_in_z = place_z;
69  }
70  void SetZRot(const G4double dbl) {rot_in_z = dbl;}
71  void SetMaterial(const std::string &mat) {material = mat;}
72  PHG4EventAction* GetEventAction() const {return eventAction_;}
73  void SetActive(const int i = 1) {active = i;}
74  void SuperDetector(const std::string &name) {superdetector = name;}
75 
76  private:
77 
79 
80  PHG4ConeDetector* detector_;
81 
83 
84  PHG4ConeSteppingAction* steppingAction_;
85  PHG4EventAction *eventAction_;
86 
87  G4double place_in_x;
88  G4double place_in_y;
89  G4double place_in_z;
90  G4double rot_in_z;
91  G4double rMin1;
92  G4double rMax1;
93  G4double rMin2;
94  G4double rMax2;
95  G4double dZ;
96  G4double sPhi;
97  G4double dPhi;
98  G4String material;
99  int active;
100  int layer;
101  std::string detector_type;
102  std::string superdetector;
103 };
104 
105 #endif
PHG4ConeSubsystem(const std::string &name="CONE", const int layer=0)
constructor
void SetR2(const G4double min, const G4double max)
set inner and outter radius2
void Set_eta_range(G4double etaMin, G4double etaMax)
set rmaximum and minimums according to the eta range
void SetR1(const G4double min, const G4double max)
set inner and outter radius1
void SetZlength(const G4double a)
set length in Z
void SetPlace(const G4double place_x, const G4double place_y, const G4double place_z)
int Init(PHCompositeNode *)
init
void SetPlaceZ(const G4double dbl)
void SetMaterial(const std::string &mat)
int process_event(PHCompositeNode *)
event processing
virtual PHG4Detector * GetDetector(void) const
accessors (reimplemented)
void SetZRot(const G4double dbl)
virtual PHG4SteppingAction * GetSteppingAction(void) const
return pointer to this subsystem stepping action
base class for phenix detector creation
Definition: PHG4Detector.h:13
void SuperDetector(const std::string &name)
void SetActive(const int i=1)
virtual ~PHG4ConeSubsystem(void)
destructor
PHG4EventAction * GetEventAction() const
return pointer to this subsystem event action
void SetPhi(const G4double a, const G4double b)
set phi offset and extention