sandreco  1.0.8
A modular reconstruction software for SAND
sand::geo_id Struct Reference

#include <sand.h>

Public Types

enum  region_t : uint8_t { BARREL = 0 , ENDCAP_A = 1 , ENDCAP_B = 2 , UNKNOWN = 255 }
 
enum  element_t : uint8_t {
  ENDCAP_VERTICAL = 1 , ENDCAP_CURVE_TOP = 2 , ENDCAP_CURVE_BOT = 3 , ENDCAP_HOR_TOP = 4 ,
  ENDCAP_HOR_BOT = 5 , NONE = 255
}
 
using supermodule_t = uint8_t
 
using plane_t = uint8_t
 
using tube_t = uint16_t
 

Public Attributes

union {
   struct {
      uint8_t   reserved___0
 
      subdetector_t   subdetector
 
      uint8_t   padding___1 [6]
 
   } 
 
   struct {
      uint8_t   reserved___0
 
      subdetector_t   subdetector
 
      supermodule_t   supermodule
 
      plane_t   plane
 
      uint8_t   padding___1 [4]
 
   }   drift
 
   struct {
      uint8_t   reserved___0
 
      subdetector_t   subdetector
 
      region_t   region
 
      supermodule_t   supermodule
 
      element_t   element
 
      plane_t   plane
 
      uint8_t   padding___1 [2]
 
   }   ecal
 
   struct {
      uint8_t   reserved___0
 
      subdetector_t   subdetector
 
      uint8_t   padding___1 [6]
 
   }   grain
 
   struct {
      uint8_t   reserved___0
 
      subdetector_t   subdetector
 
      supermodule_t   supermodule
 
      plane_t   plane
 
      tube_t   tube
 
      uint8_t   padding___1 [2]
 
   }   stt
 
   uint64_t   raw = -1
 
}; 
 

Detailed Description

Unique identifier for elements of the detector geometry as known by Geant. There is a 1-1 correspondence between the geo_path of a sensitive detector and a geo_id. Prefer geo_id as a key, as it is substantially faster to compare.


The documentation for this struct was generated from the following file: