00001
00002
00003
00004
00005
00006
00007
00008
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
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