diff options
author | tlatorre <tlatorre@uchicago.edu> | 2018-09-17 08:39:49 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2018-09-17 08:39:49 -0500 |
commit | f896ea1b81a371cd70e8ee37c39e4c3a329f12c4 (patch) | |
tree | 8435c1dbd840b49cb7dfd6fcf9b5207281ff7fcb | |
parent | 6f546d1f4e9d5b14689d00fcf98e85c7e78df6f8 (diff) | |
download | sddm-f896ea1b81a371cd70e8ee37c39e4c3a329f12c4.tar.gz sddm-f896ea1b81a371cd70e8ee37c39e4c3a329f12c4.tar.bz2 sddm-f896ea1b81a371cd70e8ee37c39e4c3a329f12c4.zip |
add bitmasks for the mc track status word
-rw-r--r-- | src/zdab_utils.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/zdab_utils.h b/src/zdab_utils.h index d5b6a7a..666d2d9 100644 --- a/src/zdab_utils.h +++ b/src/zdab_utils.h @@ -18,6 +18,29 @@ #define SWAP_INT16(a,b) #endif +/* Status bits for the MC Track bank. + * + * Bits 4-17 are used to store the "history" of Cerenkov photons. The bit + * structure is the same as in the MCPM bank status word. More details are + * available on the MCPM bank page. + * + * See http://www.lip.pt/~barros/SNO/doc/snoman/companion_frames.html. */ +#define KMCTK_IVX 0x00000002 /* Indirect vertex. Track does not come directly from its + supporting vertex, see Notes below. */ +#define KMCTK_SPARE1 0x00000004 /* Spare (Not part of Cerenkov history) */ +#define KMCTK_SPARE2 0x00000008 /* Spare (Not part of Cerenkov history) */ +#define KMCTK_INDIRECT 0x00000010 /* Indirect photon. */ +#define KMCTK_RSCAT 0x00000020 /* Photon was Raleigh scattered. */ +#define KMCTK_PSUP_SREF 0x00000040 /* Photon had a spectral reflection from the PSUP. */ +#define KMCTK_PSUP_DREF 0x00000080 /* Photon had a diffuse reflection from the PSUP. */ +#define KMCTK_AV_SREF 0x00000100 /* Photon had a spectral reflection from the AV. */ +#define KMCTK_AV_DREF 0x00000200 /* Photon had a diffuse reflection from the AV. */ +#define KMCTK_NCD_SREF 0x00000400 /* Photon had a spectral reflection from the NCD OVL. */ +#define KMCTK_NCD_DREF 0x00000800 /* Photon had a diffuse reflection from the NCD OVL. */ +#define KMCTK_PMT_REF 0x00001000 /* Photon entered and then escaped the PMT code (vxpmt). */ +#define KMCTK_IN_PMT 0x00002000 /* Photon was produced inside a PMT. */ +#define KMCTK_THROUGH_AV 0x00004000 /* Photon passed through the AV at least once. */ + /* Bit masks for the PMT flags field in the PMT bank. */ #define KPF_DIS 0x00000001 #define KPF_NOI 0x00000004 |