ghit
ghitConventions.h
Go to the documentation of this file.
1 #ifndef GHIT_H_CONVENTIONS
2 #define GHIT_H_CONVENTIONS 1
3 
4 // c++
5 #include <bitset>
6 
7 // number of bits that defines a ghit.
8 constexpr size_t NHITBITS = 6;
9 
10 using HitBitSet = std::bitset<NHITBITS> ;
11 
12 // GHIT Bitset.
13 // Setting a bit will call the corresponding code in buildHitInfos
14 //
15 // Information always present:
16 // - local and global positions (G4ThreeVector)
17 // - energy deposited, time
18 // - detector dimensions
19 //
20 // Toggle existance by bit
21 // 1st bit 000001: pids, total energies Es
22 
23 // not set yet:
24 // 2nd bit 000010: step length, track informations: momentum, total energy, vertex, pid, track id
25 // 3rd bit 000100: mother particle tracks information
26 // 4th bit 001000: meta information: magnetic field. process id name that created the particle
27 // 5th bit 010000: optical photon only: wavelength, momentum, vertex, track id
28 
29 
30 #endif
constexpr size_t NHITBITS
std::bitset< NHITBITS > HitBitSet