Precalibrated Ion Beam Identification Detector Simulation 1.0
A pilot study detector simulation, written in C++ with Geant4.
AllAccumulatedStatistics.hh
Go to the documentation of this file.
00001 
00011 #include "globals.hh"
00012 #include "DetectorConstruction.hh"
00013 #include "EventHit.hh"
00014 #include "G4UnitsTable.hh"
00015 
00016 #ifndef VECTOR
00017 #define VECTOR 1
00018 #include <vector>
00019 #endif
00020 
00021 #ifndef AllAccumulatedStatistics_hh
00022 #define AllAccumulatedStatistics_hh 1
00023 
00024 class EventAction;
00025 
00029 class AllAccumulatedStatistics
00030 {
00031 public:
00032   enum ScintillatorPlate {UpperFront=0, LowerFront=1, Back=2}; 
00033   
00034   AllAccumulatedStatistics(G4double numberOfScintillatorTubes 
00035                            , G4double summationTime  ); 
00036 
00037   ~AllAccumulatedStatistics(); 
00038   
00039   void AddScintillatorTubeEvent(G4int scintillatorID 
00040                                 ,G4double time 
00041                                 ,G4double energy 
00042                                 );
00043   
00044   void AddGeDetectorEvent(G4double time 
00045                           ,G4double energy 
00046                           ); 
00047   
00048   void AddScintillatorPlateEvent(ScintillatorPlate plate 
00049                                  ,G4double time 
00050                                  ,G4double energy 
00051                                  ); 
00052 
00053   std::vector<EventHit> GetEventHits(); 
00054 
00055   bool timeCheck(G4double time 
00056                  ); 
00057 
00058 
00059 private:
00060   std::vector<EventHit> eventHits; 
00061   G4double scintillatorTubes;
00062   G4double sumTime;
00063 }; 
00064 
00065 #endif
 All Classes Files Functions Variables Defines

Back to the main page of the Precalibrated Ion Beam Identification Detector project

Created by Rikard Lundmark