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