REvent/StationConstants.h
Go to the documentation of this file.
1 #ifndef _revt_StationConstants_h_
2 #define _revt_StationConstants_h_
3 
4 
5 namespace revt {
6 
12  };
13 
14 
17  eManuallyExcluded = 1, // RdStationRejector
18  // Including missmatch in number of (active) channels.
19  // Used in RdChannelADCToVoltageConverter, RdChannelSelector,
20  // RdChannelNoiseImporter_AERA, RdAntennaChannelToStationConverter
22  // Not to be confiused with the RejectionStatus eNoNoiseInformationAvailable.
23  // Use in RdChannelNoiseImporter_AERA
25  // For example for a broken LNA in the RdChannelBrokenLNARejector
27  eInBadPeriod = 5, // RdStationRejector, RdChannelNoiseImporter_AERA
28  // Typically we do not even initialize RD stations which were not triggered by the WCD.
29  // However we can also explictly exclude them. For example in the RdStationSignalInterpolator
31  // Simulations with thinned particle cascades can cause artificial
32  // noise in pulses with large axis distance. Excluded in RdStationAssociator
34  // Indicates a invalid parity count for recorded traces.
35  // This happend due to a firmware bug in the EA-phase of the RD. Set in the EventIO
37  };
38 
39 
40  // use unsigned long long (like in RdStationRejector.cc) to fit 64 bit number
42  eNoRejection = 0ULL,
43  eManuallyRejected = (1ULL << 0),
44 
45  // Set by Offline Modules
46  eBeaconCorrectionFailed = (1ULL << 1),
47  eBadSNR = (1ULL << 2),
48  eLargeTimeResidual = (1ULL << 3),
49  /* This status is only used internally by the TopDownSelector module,
50  the stations that get permanently rejected by the TopDownSelector
51  module are flagged as eLargeTimeResidual */
52  eTopDownDeselected = (1ULL << 4),
53  ePolarizationDeselected = (1ULL << 5),
54  eLonelyStation = (1ULL << 6),
56  eNoTemperatureCorrection = (1ULL << 8),
59  ePulseShapeDeselected = (1ULL << 11), // is set by the PulseShapeRejector module
60  // is set by the noise importer module if no noise trace for this station could be found
62  eSaturated = (1ULL << 13), // rejected station because a channel is saturated
63 
64  // from BadPeriod DB index starts at 15
65  // 15 bit offset for Bad Period database reasons set in RDetector.cc
66  eNoCommunication = (1ULL << 19 ), // 15 + 4 = 19
67  eAntennaBroken = (1ULL << 20 ), // 15 + 5 = 20
68  eLNABroken = (1ULL << 21 ), // 15 + 6 = 21
69  eLNANotCalibrated = (1ULL << 22 ), // 15 + 7 = 22
70  eDigitizerBroken = (1ULL << 23 ), // 15 + 8 = 23
71  eDigitizerNotCalibrated = (1ULL << 24 ), // 15 + 9 = 24
72  eWrongTiming = (1ULL << 25 ), // 15 + 10 = 25
73  eNoWeatherStationData = (1ULL << 26 ), // 15 + 11 = 26
74  eSelfTriggeredDataCorrupt = (1ULL << 27 ), // 15 + 12 = 27
75  eExtTriggeredDataCorrupt = (1ULL << 28 ), // 15 + 13 = 28
76  eNoisy = (1ULL << 29 ), // 15 + 14 = 29
77 
78  // from BadPeriod DB for RdMonitoring
79  etraceMean_lower = (1ULL << 30 ), // 15 + 15 = 30
80  etraceMean_upper = (1ULL << 31 ), // 15 + 16 = 31
81  etraceRMS_lower = (1ULL << 32 ), // 15 + 17 = 32
82  etraceRMS_upper = (1ULL << 33 ), // 15 + 18 = 33
83  etraceMin_lower = (1ULL << 34 ), // 15 + 19 = 34
84  etraceMin_upper = (1ULL << 35 ), // 15 + 20 = 35
85  etraceMax_lower = (1ULL << 36 ), // 15 + 21 = 36
86  etraceMax_upper = (1ULL << 37 ), // 15 + 22 = 37
87  ePowerInBand_lower = (1ULL << 38 ), // 15 + 23 = 38
88  ePowerInBand_upper = (1ULL << 39 ), // 15 + 24 = 39
89  ePowerOutsideBand_lower = (1ULL << 40 ), // 15 + 25 = 40
90  ePowerOutsideBand_upper = (1ULL << 41 ), // 15 + 26 = 41
91  ePowerAt28MHz_lower = (1ULL << 42 ), // 15 + 27 = 42
92  ePowerAt28MHz_upper = (1ULL << 43 ), // 15 + 28 = 43
93  ePowerAt33MHz_lower = (1ULL << 44 ), // 15 + 29 = 44
94  ePowerAt33MHz_upper = (1ULL << 45 ), // 15 + 30 = 45
95  ePowerAt38MHz_lower = (1ULL << 46 ), // 15 + 31 = 46
96  ePowerAt38MHz_upper = (1ULL << 47 ), // 15 + 32 = 47
97  ePowerAt43MHz_lower = (1ULL << 48 ), // 15 + 33 = 48
98  ePowerAt43MHz_upper = (1ULL << 49 ), // 15 + 34 = 49
99  ePowerAt51MHz_lower = (1ULL << 50 ), // 15 + 35 = 50
100  ePowerAt51MHz_upper = (1ULL << 51 ), // 15 + 36 = 51
101  ePowerAt58MHz_lower = (1ULL << 52 ), // 15 + 37 = 52
102  ePowerAt58MHz_upper = (1ULL << 53 ), // 15 + 38 = 53
103  ePowerAt69MHz_lower = (1ULL << 54 ), // 15 + 39 = 54
104  ePowerAt69MHz_upper = (1ULL << 55 ), // 15 + 40 = 55
105  ePowerAt80MHz_lower = (1ULL << 56 ), // 15 + 41 = 56
106  ePowerAt80MHz_upper = (1ULL << 57 ), // 15 + 42 = 57
107  eTraceOutliers_lower = (1ULL << 58 ), // 15 + 43 = 58
108  eTraceOutliers_upper = (1ULL << 59 ), // 15 + 44 = 59
109  eNarrowBandPeaks_lower = (1ULL << 60 ), // 15 + 45 = 60
110  eNarrowBandPeaks_upper = (1ULL << 61 ), // 15 + 46 = 61
111  eNBeacons_lower = (1ULL << 62 ), // 15 + 47 = 62
112  eNBeacons_upper = (1ULL << 63 ), // 15 + 48 = 63
113  // ( 1<<63 = 9.223.372.036.854.775.808 last available bit in 0 to 2^64-1 space )
114  // Further bits from Offline Modules can be added by shifting
115  // the offset to lower values here and in RDetector.cc:RDetector::GetBadStationReason().
116 
118  };
119 
120 
121  static std::map<std::string, RejectionStatus> gMapRejectionStatus{
122  { "eNoRejection", eNoRejection },
123  { "eManuallyRejected", eManuallyRejected },
124 
125  { "eBeaconCorrectionFailed", eBeaconCorrectionFailed },
126  { "eBadSNR", eBadSNR },
127  { "eLargeTimeResidual", eLargeTimeResidual },
128  { "eTopDownDeselected", eTopDownDeselected },
129  { "ePolarizationDeselected", ePolarizationDeselected },
130  { "eLonleyStation", eLonelyStation },
131  { "eSignalSearchWindowInvalid", eSignalSearchWindowInvalid },
132  { "eNoTemperatureCorrection", eNoTemperatureCorrection },
133  { "eCheckFootprintDeselected", eCheckFootprintDeselected },
134  { "eCheckAntennaBackgroundLevel", eCheckAntennaBackgroundLevel },
135  { "ePulseShapeDeselected", ePulseShapeDeselected },
136  { "eNoNoiseInformationAvailable", eNoNoiseInformationAvailable },
137  { "eSaturated", eSaturated },
138 
139  { "eNoCommunication", eNoCommunication },
140  { "eAntennaBroken", eAntennaBroken },
141  { "eLNABroken", eLNABroken },
142  { "eLNANotCalibrated", eLNANotCalibrated },
143  { "eDigitizerBroken", eDigitizerBroken },
144  { "eDigitizerNotCalibrated", eDigitizerNotCalibrated },
145  { "eWrongTiming", eWrongTiming },
146  { "eNoWeatherStationData", eNoWeatherStationData },
147  { "eSelfTriggeredDataCorrupt", eSelfTriggeredDataCorrupt },
148  { "eExtTriggeredDataCorrupt", eExtTriggeredDataCorrupt },
149  { "eNoisy", eNoisy },
150 
151  { "etraceMean_lower", etraceMean_lower },
152  { "etraceMean_upper", etraceMean_upper },
153  { "etraceRMS_lower", etraceRMS_lower },
154  { "etraceRMS_upper", etraceRMS_upper },
155  { "etraceMin_lower", etraceMin_lower },
156  { "etraceMin_upper", etraceMin_upper },
157  { "etraceMax_lower", etraceMax_lower },
158  { "etraceMax_upper", etraceMax_upper },
159  { "ePowerInBand_lower", ePowerInBand_lower },
160  { "ePowerInBand_upper", ePowerInBand_upper },
161  { "ePowerOutsideBand_lower", ePowerOutsideBand_lower },
162  { "ePowerOutsideBand_upper", ePowerOutsideBand_upper },
163  { "ePowerAt28MHz_lower", ePowerAt28MHz_lower },
164  { "ePowerAt28MHz_upper", ePowerAt28MHz_upper },
165  { "ePowerAt33MHz_lower", ePowerAt33MHz_lower },
166  { "ePowerAt33MHz_upper", ePowerAt33MHz_upper },
167  { "ePowerAt38MHz_lower", ePowerAt38MHz_lower },
168  { "ePowerAt38MHz_upper", ePowerAt38MHz_upper },
169  { "ePowerAt43MHz_lower", ePowerAt43MHz_lower },
170  { "ePowerAt43MHz_upper", ePowerAt43MHz_upper },
171  { "ePowerAt51MHz_lower", ePowerAt51MHz_lower },
172  { "ePowerAt51MHz_upper", ePowerAt51MHz_upper },
173  { "ePowerAt58MHz_lower", ePowerAt58MHz_lower },
174  { "ePowerAt58MHz_upper", ePowerAt58MHz_upper },
175  { "ePowerAt69MHz_lower", ePowerAt69MHz_lower },
176  { "ePowerAt69MHz_upper", ePowerAt69MHz_upper },
177  { "ePowerAt80MHz_lower", ePowerAt80MHz_lower },
178  { "ePowerAt80MHz_upper", ePowerAt80MHz_upper },
179  { "eTraceOutliers_lower", eTraceOutliers_lower },
180  { "eTraceOutliers_upper", eTraceOutliers_upper },
181  { "eNarrowBandPeaks_lower", eNarrowBandPeaks_lower },
182  { "eNarrowBandPeaks_upper", eNarrowBandPeaks_upper },
183  { "eNBeacons_lower", eNBeacons_lower },
184  { "eNBeacons_upper", eNBeacons_upper }
185  };
186 
187 }
188 
189 
190 #endif
191 
static std::map< std::string, RejectionStatus > gMapRejectionStatus

, generated on Tue Sep 26 2023.