00001
00002
00003
00004
00005
00006
00007
00008 class MyEventAction : public GLG4VEventAction {
00009 public:
00010 MyEventAction();
00011
00012 void OpenFile(G4String fn, G4bool mode);
00013 void CloseFile();
00014 void FillData(const class G4Event* evt);
00015 void Clear();
00016
00017 private:
00018 int file_open;
00019 static const char hbTopName[];
00020 };
00021
00022
00023 class custom_GLG4SteppingAction : public GLG4SteppingAction {
00024 public:
00025 custom_GLG4SteppingAction() {}
00026 void UserSteppingAction(const G4Step* aStep);
00027 inline int HID(int PDGcode, int htype)
00028 { return 100*PDGcode + (PDGcode>0 ? htype : -htype); }
00029 map <int,int> hids;
00030 map <G4String,int> noPDGcode_codes;
00031 static int max_noPDGcode_codes;
00032 enum { start_noPDGcode_codes= 9000 };
00033 };