/home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/geo/include/RAT/GLG4BoxSD.hh Source File

Ratpac-two: /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/geo/include/RAT/GLG4BoxSD.hh Source File
Ratpac-two
GLG4BoxSD.hh
1 // This file is part of the GenericLAND software library.
2 // $Id: GLG4BoxSD.hh,v 1.1 2005/08/30 19:55:20 volsung Exp $
3 //
4 // GLG4BoxSD.hh
5 //
6 // Records total number of charged and neutral crossing each plane
7 // above some TOTAL energy cut (by default, 1.5 MeV). Also records
8 // the energy deposition per radiation length. Also reports primary
9 // particle's final exiting/stopping position, time, energy.
10 // Granularity of histograms is 1/2 rad length.
11 //
12 // Eschews Geant4 hit collection mechanism.
13 //
14 // Author: Glenn Horton-Smith, 2000/11/20
15 // Last modified: 2000/11/20
16 //
17 
18 #ifndef GLG4BOXSD_h
19 #define GLG4BOXSD_h 1
20 
21 #include "G4Timer.hh"
22 #include "G4VSensitiveDetector.hh"
23 
24 class G4Step;
25 class G4HCofThisEvent;
26 class G4TouchableHistory;
27 
28 class GLG4BoxSD : public G4VSensitiveDetector {
29  public:
30  // member functions
31  GLG4BoxSD(G4String name);
32  virtual ~GLG4BoxSD();
33 
34  virtual void Initialize(G4HCofThisEvent *HCE);
35  virtual void EndOfEvent(G4HCofThisEvent *HCE);
36  virtual void clear();
37  virtual void DrawAll();
38  virtual void PrintAll();
39 
40  void SetZ0(G4double newZ0) { z0 = newZ0; }
41  void SetRadLength(G4double newRadLength) { radLength = newRadLength; }
42  void SetECut(G4double e) { eCut = e; }
43  void SetGCut(G4double e) { gCut = e; }
44  G4double GetZ0() { return z0; }
45  G4double GetRadLength() { return radLength; }
46  G4double GetECut() { return eCut; }
47  G4double GetGCut() { return gCut; }
48 
49  protected:
50  G4double eCut;
51  G4double gCut;
52  G4double radLength;
53  G4double z0;
54  enum { nbin = 40 };
55  G4double tot_edep;
56  G4double h_edep[nbin];
57  G4int h_ng[nbin], h_ne[nbin];
58  virtual G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist);
59 };
60 
61 #endif
Definition: GLG4BoxSD.hh:28