File tree Expand file tree Collapse file tree
DataFormats/simulation/include/SimulationDataFormat Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727#include " TParticle.h"
2828#include " TParticlePDG.h"
2929#include " TVector3.h"
30+ #include < type_traits>
3031
3132namespace o2
3233{
@@ -261,6 +262,7 @@ class MCTrackT
261262 int storage : 1 ; // encoding whether to store this track to the output
262263 unsigned int process : 6 ; // encoding process that created this track (enough to store TMCProcess from ROOT)
263264 int hitmask : 22 ; // encoding hits per detector
265+ static_assert (o2::detectors::DetID::nDetectors <= 22 ); // ensure that all known detectors can be encoded here by a bit
264266 int reserved1 : 1 ; // bit reserved for possible future purposes
265267 int inhibited : 1 ; // whether tracking of this was inhibited
266268 int toBeDone : 1 ; // whether this (still) needs tracking --> we might more complete information to cover full ParticleStatus space
You can’t perform that action at this time.
0 commit comments