// Geant4 simulation for MuSR // AUTHOR: Toni SHIROKA, Paul Scherrer Institut, PSI // DATE : 2008-05 // //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... #ifndef lem4ScintHit_h #define lem4ScintHit_h 1 #include "G4VHit.hh" #include "G4THitsCollection.hh" #include "G4Allocator.hh" #include "G4ThreeVector.hh" #include "G4MagneticField.hh" #include "globals.hh" #include "G4ios.hh" // ROOT #include "TFile.h" #include "TTree.h" //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... class lem4ScintHit : public G4VHit { public: lem4ScintHit(); ~lem4ScintHit(); lem4ScintHit(const lem4ScintHit&); const lem4ScintHit& operator=(const lem4ScintHit&); G4int operator==(const lem4ScintHit&) const; // bool operator() (lem4ScintHit hit1, lem4ScintHit hit2) { return (hit1.globalTime lem4ScintHitsCollection; extern G4Allocator lem4ScintHitAllocator; //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... inline void* lem4ScintHit::operator new(size_t) { void *aHit; aHit = (void *) lem4ScintHitAllocator.MallocSingle(); return aHit; } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... inline void lem4ScintHit::operator delete(void *aHit) { lem4ScintHitAllocator.FreeSingle((lem4ScintHit*) aHit); } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... #endif