HerdSoftware
0.4.0
include
herd
simulation
hits
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)
override
;
23
inline
void
*
operator
new
(size_t);
24
inline
void
operator
delete
(
void
*aHit);
25
int
nAbsorbedXTRPhotons
;
26
float
XTRPhotonsEDep
;
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_ */
TRIntHit::TRIntHit
TRIntHit(const std::vector< double > &timeBins)
Definition:
TRIntHit.cpp:17
TRIntHit::XTRPhotonsEDep
float XTRPhotonsEDep
Definition:
TRIntHit.h:26
TRIntHit
An integrated hit with information about transition radiation photons.
Definition:
TRIntHit.h:18
TRIntHitAllocator
G4Allocator< TRIntHit > * TRIntHitAllocator
Definition:
TRIntHit.cpp:14
TRIntHit::AddStep
void AddStep(const G4Step &step) override
Definition:
TRIntHit.cpp:20
TRIntHit::nAbsorbedXTRPhotons
int nAbsorbedXTRPhotons
Definition:
TRIntHit.h:25
Generated by
1.8.17