//§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§//* // LOW ENERGY MUON SPIN RELAXATION, ROTATION, RADIATION Geant4 SIMULATION // ID : LEMuSREventAction.hh , v 1.0 // AUTHOR: Taofiq PARAISO // DATE : 2004-07-07 11:15 // //§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§// // // & &&&&&&&&&& &&&&&&& &&&&&&&& // & & && && & && // & & & & & & && // & &&&&&&& & & &&&&&& &&&&&&&& // & & & && & & && // & & && & & && && & & // &&&&&&&&&& &&&&&&&&&& & &&&&& && &&&&&&& & && // & // & // & // & // EVENT ACTION.HH //§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§//// // #ifndef LEMuSREventAction_h #define LEMuSREventAction_h 1 #include "G4UserEventAction.hh" #include "globals.hh" // root histogram classes #include #include "TROOT.h" #include "TFile.h" #include "TH1.h" #include "TRandom.h" #include "TTree.h" #include "TBranch.h" #include "TClonesArray.h" #include "TStopwatch.h" #include "LEMuSRCryoHit.hh" class G4EventManager; class G4Event; class LEMuSREventAction : public G4UserEventAction { public: LEMuSREventAction(); ~LEMuSREventAction(); public: // with description void BeginOfEventAction(const G4Event* anEvent); void EndOfEventAction(const G4Event* anEvent); void SetDrawFlag (G4String val) {drawFlag = val;}; // Two virtual method the user can override. void SDCollManagement(const G4Event* evt); private: G4String drawFlag; G4int iScintCollID, oScintCollID, CryoCollID, McpCollID; // root variables public: // TROOT eventTree; Int_t nevent , comp , split , write , hfill , read ,arg4, arg5 ; TFile *myFile; TTree *myTree; TBranch *b; TH1D *hTest ,*hTest2,*hTest3, *hTest4; LEMuSRCryoHit* aHit; G4double en_dep; typedef struct { G4double lifetime, energy, angle; } PRIMDATAS; PRIMDATAS PMdatas; }; #endif