aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/#G4BeamTestEventAction.h#44
-rw-r--r--include/G4BeamTestDetectorConstruction.h1
-rw-r--r--include/G4BeamTestSiHit.h8
3 files changed, 52 insertions, 1 deletions
diff --git a/include/#G4BeamTestEventAction.h# b/include/#G4BeamTestEventAction.h#
new file mode 100644
index 0000000..2c8b933
--- /dev/null
+++ b/include/#G4BeamTestEventAction.h#
@@ -0,0 +1,44 @@
+#ifndef G4BeamTestEventAction_h
+#define G4BeamTestEventAction_h 1
+
+#include "G4UserEventAction.hh"
+#include "globals.hh"
+
+/// Event action class
+///
+
+class G4BeamTestEventAction : public G4UserEventAction
+{
+ public:
+ G4BeamTestEventAction();
+ virtual ~G4BeamTestEventAction();
+
+ virtual void BeginOfEventAction(const G4Event* );
+ virtual void EndOfEventAction(const G4Event* );
+
+ void AddEdep(G4double edep) { fEdep += edep; }
+ void AddTime(G4double time) { ftime += ->GetTime()}
+ void AddPath(G4double path) { fIntegralZ +=path; }
+ G4double GetPath(){return fIntegralZ;}
+ void SetXY (G4double xhit, G4double yhit) {fXIn=xhit;fYIn=yhit;}
+ G4double GetX()const {return fXIn;}
+
+
+ G4double GetY()const {return fYIn;}
+ private:
+ G4double fEdep;
+ G4double fIntegralZ;
+ G4double fXIn;
+ G4double ftime;
+ G4int SiCollID;
+ G4int hcID;
+
+ G4double fYIn;
+};
+
+//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
+
+#endif
+
+
+
diff --git a/include/G4BeamTestDetectorConstruction.h b/include/G4BeamTestDetectorConstruction.h
index 8b45fde..7e109b2 100644
--- a/include/G4BeamTestDetectorConstruction.h
+++ b/include/G4BeamTestDetectorConstruction.h
@@ -34,6 +34,7 @@ class G4BeamTestDetectorConstruction: public G4VUserDetectorConstruction
/* void CreatePerlite(); */
void CreateGlassSphere();
void CreateEffectiveDOMMaterial();
+ void CreateSC4();
G4ThreeVector origin_;
diff --git a/include/G4BeamTestSiHit.h b/include/G4BeamTestSiHit.h
index 44dd69a..eaed902 100644
--- a/include/G4BeamTestSiHit.h
+++ b/include/G4BeamTestSiHit.h
@@ -9,6 +9,8 @@
#include "G4ThreeVector.hh"
#include "tls.hh"
+static std::fstream testnew("./testnew.txt", std::ofstream::out);
+
/// Tracker hit class
///
/// It defines data members to store the trackID, chamberNb, energy deposit,
@@ -67,7 +69,11 @@ public:
{ energy = ene; }
inline G4double GetEnergy()
{ return energy; }
-
+/*SS: ADDED FOLLOWING 4 LINES*/
+ /* inline void SetTime(G4double ti)
+ {time = ti;}
+ inline G4double GetTime()
+ { return time;} */
private:
G4double fTime;