/scratch0/jsnuveri/BDSIM/BDSIMgit/bdsim/include/BDSSamplerSD.hh

00001 /* BDSIM code.    Version 1.0
00002    Author: Grahame A. Blair, Royal Holloway, Univ. of London.
00003    Last modified 24.7.2002
00004    Copyright (c) 2002 by G.A.Blair.  ALL RIGHTS RESERVED. 
00005 
00006    Modified 22.03.05 by J.C.Carter, Royal Holloway, Univ. of London.
00007    Changed Samplers to account for plane and cylinder types (GABs code)
00008 */
00009 
00010 #ifndef BDSSamplerSD_h
00011 #define BDSSamplerSD_h 1
00012 
00013 #include "G4VSensitiveDetector.hh"
00014 #include "BDSSamplerHit.hh"
00015 
00016 class G4Step;
00017 class G4HCofThisEvent;
00018 class G4TouchableHistory;
00019 
00020 class BDSSamplerSD : public G4VSensitiveDetector
00021 {
00022   
00023 public:
00024   BDSSamplerSD(G4String name, G4String type);
00025   ~BDSSamplerSD();
00026   
00027   void SetType(G4String aType);
00028   
00029   virtual void Initialize(G4HCofThisEvent*HCE);
00030   virtual G4bool ProcessHits(G4Step*aStep,G4TouchableHistory*ROhist);
00031   int itsHCID;
00032   
00033 private:
00034   BDSSamplerHitsCollection *SamplerCollection;
00035   // G4bool StoreHit;
00036   // G4int nStepsInSampler;
00037   // G4int maxNStepsInSampler;
00038   
00039   G4String itsType;
00040   G4String itsCollectionName;
00041   //G4int    itsHCID;
00042 
00043 };
00044 
00045 inline void BDSSamplerSD::SetType(G4String aType)
00046 {itsType=aType;}
00047 
00048 #endif
00049 

Generated on 28 Jun 2015 for BDSIM by  doxygen 1.4.7