/home/cern/BDSIM_new/include/BDSEventAction.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    Removed StringFromInt function
00008    Added/Changed Sampler code for Plane Sampler or Cylinder Sampler (GABs Code)
00009 */
00010 
00011 
00012 #ifndef BDSEventAction_h
00013 #define BDSEventAction_h 
00014 
00015 
00016 #include "BDSGlobalConstants.hh"
00017 #include "G4UserEventAction.hh"
00018 #include "globals.hh"
00019 #include "BDSAcceleratorComponent.hh"
00020 #include "BDSEnergyCounterSD.hh"
00021 #include <list>
00022 
00023 
00024 
00025 class BDSEventAction : public G4UserEventAction
00026 {
00027 public:
00028   BDSEventAction();
00029   virtual ~BDSEventAction();
00030 
00031 public:
00032   virtual void   BeginOfEventAction(const G4Event*);
00033   virtual void   EndOfEventAction(const G4Event*);
00034   
00035   void SetDrawFlag   (G4String val)  {drawFlag = val;};
00036  
00037 private:
00038   G4int                       SamplerCollID_plane;                
00039   G4int                       SamplerCollID_cylin;                
00040   G4int                       LWCalorimeterCollID;
00041   //    G4int                       EnergyCounterCollID;                
00042   G4String                    drawFlag;
00043 
00044   G4int printModulo;
00045   G4int itsOutputFileNumber;
00046   G4int itsRecordSize;
00047 
00048   list<BDSAcceleratorComponent*>::const_iterator iBeam;
00049   list<BDSEnergyCounterSD*>::const_iterator iEC;
00050 
00051   BDSAcceleratorComponent* LastComp;
00052   
00053 };
00054 
00055 #endif
00056 
00057     

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