HerdSoftware  0.1.1
TRIntHit.h
Go to the documentation of this file.
1 /*
2  * TRIntHit.h
3  *
4  * Created on: 8 Jul 2020
5  * Author: Nicola Mori
6  */
7 
8 #ifndef TRINTHIT_H_
9 #define TRINTHIT_H_
10 
11 // GGS headers
12 #include "montecarlo/scoring/GGSIntHit.h"
13 
18 class TRIntHit : public GGSIntHit {
19 
20 public:
21  TRIntHit(const std::vector<double> &timeBins);
22  void AddStep(const G4Step &step);
23  inline void *operator new(size_t);
24  inline void operator delete(void *aHit);
27 };
28 
29 extern G4Allocator<TRIntHit> *TRIntHitAllocator;
30 
31 inline void *TRIntHit::operator new(size_t) {
32  void *aHit;
33  aHit = (void *)TRIntHitAllocator->MallocSingle();
34  return aHit;
35 }
36 inline void TRIntHit::operator delete(void *aHit) { TRIntHitAllocator->FreeSingle((TRIntHit *)aHit); }
37 
38 #endif /* TRINTHIT_H_ */
An integrated hit with information about transition radiation photons.
Definition: TRIntHit.h:18
void AddStep(const G4Step &step)
Definition: TRIntHit.cpp:20
TRIntHit(const std::vector< double > &timeBins)
Definition: TRIntHit.cpp:17
int nAbsorbedXTRPhotons
Definition: TRIntHit.h:25
G4Allocator< TRIntHit > * TRIntHitAllocator
Definition: TRIntHit.cpp:14
float XTRPhotonsEDep
Definition: TRIntHit.h:26