TriggerTypes.h
Go to the documentation of this file.
1 // TriggerTypes.h
2 //
3 // Michael Baird
4 // March 2016
5 //
6 // Provides a simple set of unsigned ints defining the various trigger types in one file.
7 
8 #ifndef TRIGGERTYPES_H
9 #define TRIGGERTYPES_H
10 
11 namespace triggersim {
12 
13  // Trigger types:
14  const unsigned int kNullTrigger = 0; // a default value for uninitialized variables
15  const unsigned int kActivity = 1; // a simple trigger based off of some minimal activity above threshold
16  const unsigned int kSNe = 2; // supernova trigger
17  const unsigned int kNu = 3; // trigger from some kind of neutrino interaction
18  const unsigned int kNucleon = 4; // a nucleon based event
19  const unsigned int kMonopole = 5; // magnetic monopole trigger
20  const unsigned int kCosmic = 6; // cosmic ray primary/secondary or some other cosmic induced event
21  const unsigned int kBackground = 7; // background event (likely to be suppressed or ignored)
22 
23 
24 
25  // Offset value for specifying trigger sub-types:
26  const unsigned int kSubTypeOffset = 1000;
27 
28 
29 
30  // Activity trigger sub-types:
31  const unsigned int kColRCEHits = kActivity * kSubTypeOffset + 1; // collection wire hits seen in an RCE
32  const unsigned int kColAPAHits = kActivity * kSubTypeOffset + 2; // collection wire hits seen in an APA
33  const unsigned int kIndRCEHits = kActivity * kSubTypeOffset + 3; // induction wire hits seen in an RCE
34  const unsigned int kIndAPAHits = kActivity * kSubTypeOffset + 4; // induction wire hits seen in an APA
35 
36 
37 
38  // Supernova sub-types:
39  const unsigned int kSNeShort = kSNe * kSubTypeOffset + 1; // quick core-collapse burst
40  const unsigned int kSNeLong = kSNe * kSubTypeOffset + 2; // trigger from a long (~10 seconds) time window
41 
42 
43 
44  // Neutrino sub-types:
45  const unsigned int kNuBeam = kNu * kSubTypeOffset + 1; // beam neutrino
46  const unsigned int kNuAtmo = kNu * kSubTypeOffset + 2; // atmospheric neutrino
47  const unsigned int kNuSolar = kNu * kSubTypeOffset + 3; // solar neutrino
48 
49 
50 
51  // Nucleon sub-types:
52  const unsigned int kProtonDecay = kNucleon * kSubTypeOffset + 1; // proton decay
53  const unsigned int kNNbar = kNucleon * kSubTypeOffset + 2; // n -> n-bar oscillations
54 
55 
56 
57  // Cosmic sub-types:
58  const unsigned int kCosmicMu = kCosmic * kSubTypeOffset + 1; // cosmic ray muon
59 
60 
61 
62  // Background sub-types:
63  const unsigned int kGenRad = kBackground * kSubTypeOffset + 1; // general radiological background event
64  const unsigned int kAr39 = kBackground * kSubTypeOffset + 2; // Ar39 decay
65  const unsigned int kRadon = kBackground * kSubTypeOffset + 3; // Radon decay
66 
67 } // end namespace triggersim
68 
69 #endif
const unsigned int kColAPAHits
Definition: TriggerTypes.h:32
const unsigned int kSNeLong
Definition: TriggerTypes.h:40
const unsigned int kIndAPAHits
Definition: TriggerTypes.h:34
const unsigned int kNullTrigger
Definition: TriggerTypes.h:14
const unsigned int kSubTypeOffset
Definition: TriggerTypes.h:26
const unsigned int kNu
Definition: TriggerTypes.h:17
const unsigned int kSNeShort
Definition: TriggerTypes.h:39
const unsigned int kMonopole
Definition: TriggerTypes.h:19
const unsigned int kSNe
Definition: TriggerTypes.h:16
const unsigned int kNNbar
Definition: TriggerTypes.h:53
const unsigned int kNucleon
Definition: TriggerTypes.h:18
const unsigned int kGenRad
Definition: TriggerTypes.h:63
const unsigned int kActivity
Definition: TriggerTypes.h:15
const unsigned int kProtonDecay
Definition: TriggerTypes.h:52
const unsigned int kIndRCEHits
Definition: TriggerTypes.h:33
const unsigned int kAr39
Definition: TriggerTypes.h:64
const unsigned int kCosmic
Definition: TriggerTypes.h:20
const unsigned int kCosmicMu
Definition: TriggerTypes.h:58
const unsigned int kColRCEHits
Definition: TriggerTypes.h:31
const unsigned int kNuSolar
Definition: TriggerTypes.h:47
const unsigned int kRadon
Definition: TriggerTypes.h:65
const unsigned int kNuAtmo
Definition: TriggerTypes.h:46
const unsigned int kBackground
Definition: TriggerTypes.h:21
const unsigned int kNuBeam
Definition: TriggerTypes.h:45