/home/cern/BDSIM_new/include/BDSDumpSD.hh

00001 //  
00002 //   BDSIM, (C) 2001-2007
00003 //    
00004 //   version 0.3 
00005 //   last modified : 08 May 2007 by agapov@pp.rhul.ac.uk
00006 //  
00007 
00008 
00009 //
00010 //    beam dumper/reader for online exchange - Sensitive Detector
00011 //
00012 
00013 
00014 #ifndef BDSDumpSD_h
00015 #define BDSDumpSD_h 
00016 
00017 #include "G4VSensitiveDetector.hh"
00018 #include "BDSSamplerHit.hh"
00019 #include "G4Navigator.hh"
00020 #include "G4TransportationManager.hh"
00021 
00022 class G4Step;
00023 class G4HCofThisEvent;
00024 class G4TouchableHistory;
00025 
00026 class BDSDumpSD : public G4VSensitiveDetector
00027 {
00028   
00029 public:
00030   BDSDumpSD(G4String name, G4String type);
00031   ~BDSDumpSD();
00032   
00033   void SetType(G4String aType);
00034   
00035   void Initialize(G4HCofThisEvent*HCE);
00036   G4bool ProcessHits(G4Step*aStep,G4TouchableHistory*ROhist);
00037   void EndOfEvent(G4HCofThisEvent*HCE);
00038   void clear();
00039   void DrawAll();
00040   void PrintAll();
00041   
00042 private:
00043   BDSSamplerHitsCollection *SamplerCollection;
00044   G4Navigator* StepperNavigator;
00045   G4bool StoreHit;
00046   
00047   G4String itsType;
00048   G4String itsCollectionName;
00049 
00050 };
00051 
00052 inline void BDSDumpSD::SetType(G4String aType)
00053 {itsType=aType;}
00054 
00055 #endif
00056 

Generated on Wed Mar 5 17:25:21 2008 for BDSIM by  doxygen 1.5.3