00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 class MyEventAction : public GLG4VEventAction {
00012 private:
00013 G4std::ofstream* fofs;
00014 G4String fFileName;
00015 public:
00016 MyEventAction(): GLG4VEventAction() {
00017 fFileCmd->SetGuidance("This will be an ASCII Format File;");
00018 fofs= 0;
00019 }
00020
00021 ~MyEventAction(){}
00022
00023 virtual void OpenFile(const G4String filename,G4bool outputMode);
00024 virtual void CloseFile();
00025 virtual void FillData(const G4Event*);
00026 virtual void Clear(){;}
00027
00028 };