//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... #ifndef sr1ScintHit_h #define sr1ScintHit_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 sr1ScintHit : public G4VHit { public: sr1ScintHit(); ~sr1ScintHit(); sr1ScintHit(const sr1ScintHit&); const sr1ScintHit& operator=(const sr1ScintHit&); G4int operator==(const sr1ScintHit&) const; // bool operator() (sr1ScintHit hit1, sr1ScintHit hit2) { return (hit1.globalTime sr1ScintHitsCollection; extern G4Allocator sr1ScintHitAllocator; //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... inline void* sr1ScintHit::operator new(size_t) { void *aHit; aHit = (void *) sr1ScintHitAllocator.MallocSingle(); return aHit; } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... inline void sr1ScintHit::operator delete(void *aHit) { sr1ScintHitAllocator.FreeSingle((sr1ScintHit*) aHit); } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... #endif