ghit
Loading...
Searching...
No Matches
ghitConventions.h File Reference

Defines the hit information selection bitset for GHit. More...

#include <bitset>
Include dependency graph for ghitConventions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using HitBitSet = std::bitset<NHITBITS>
 Bitset selecting which optional hit information is recorded.
 

Variables

constexpr size_t NHITBITS = 6
 

Detailed Description

The hit system records a core set of per-step quantities unconditionally and can optionally record additional per-step information controlled by a fixed-size bitset.

Always recorded (independent of the bitset):

  • local and global positions (G4ThreeVector)
  • energy deposited and time
  • detector dimensions (via GTouchable)

Optional information is controlled by HitBitSet, with one bit per feature group. The bit meanings below define the expected mapping and help keep binary compatibility and analysis conventions stable.

Definition in file ghitConventions.h.

Typedef Documentation

◆ HitBitSet

using HitBitSet = std::bitset<NHITBITS>
Note
The bit index meanings are documented below. Some higher bits are reserved for future extensions and may not yet be populated by the current implementation.

Definition at line 32 of file ghitConventions.h.

Variable Documentation

◆ NHITBITS

constexpr size_t NHITBITS = 6
constexpr

Definition at line 24 of file ghitConventions.h.