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   G4String itsType;
00044   G4String itsCollectionName;
00045   static G4int nCounter;
00046   static G4int trackCounter;
00047   static G4String lastVolume;
00048 };
00049 
00050 inline void BDSDumpSD::SetType(G4String aType)
00051 {itsType=aType;}
00052 
00053 #endif
00054 

Generated on 27 Aug 2013 for BDSIM by  doxygen 1.4.7