Changeset 4881
- Timestamp:
- 09/07/04 12:09:15 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4880 r4881 33 33 - implemented Nicola's solution for the compiling problem of the 34 34 TArrayD's 35 36 * mcalib/MCalibColorSet.cc 37 - implemented intensity recognition 35 38 36 39 -
trunk/MagicSoft/Mars/mcalib/MCalibColorSet.cc
r4866 r4881 123 123 enum ColorCode_t 124 124 { 125 k01LedGreen = BIT(15), 126 k1LedGreen = BIT(14), 127 k2LedGreen = BIT(1 ), 128 k3LedGreen = k1LedGreen & k2LedGreen, 125 129 k5LedGreen = BIT(0 ), 126 k5LedUV = BIT(11), 127 k5LedBlue = BIT(13), 130 k1LedUV = BIT(3 ), 131 k2LedUV = BIT(4 ), 132 k3LedUV = k1LedUV & k2LedUV, 133 k5LedUV1 = BIT(11), 134 k5LedUV2 = BIT(12), 135 k10LedUV = k5LedUV1 & k5LedUV2, 136 k11LedUV = k10LedUV & k1LedUV, 137 k12LedUV = k10LedUV & k2LedUV, 138 k13LedUV = k10LedUV & k1LedUV, 139 k01LedBlue = BIT(8 ), 140 k1LedBlue = BIT(10), 141 k2LedBlue = BIT(7 ), 142 k3LedBlue = k1LedBlue & k2LedBlue, 143 k5LedBlue1 = BIT(13), 144 k5LedBlue2 = BIT(2 ), 145 k5LedBlue3 = BIT(5 ), 146 k5LedBlue4 = BIT(6 ), 147 k10LedBlue = k5LedBlue1 & k5LedBlue2, 148 k15LedBlue = k10LedBlue & k5LedBlue3, 149 k20LedBlue = k15LedBlue & k5LedBlue4, 150 k21LedBlue = k20LedBlue & k1LedBlue, 151 k22LedBlue = k20LedBlue & k2LedBlue, 152 k23LedBlue = k22LedBlue & k1LedBlue, 128 153 kCT1Pulser = BIT(16) 129 154 }; … … 166 191 167 192 if (color!=kNONE) 168 *fLog << inf << "Color determined from the run-number... "; 193 { 194 *fLog << inf << "Color determined from the run-number... "; 195 switch (color) 196 { 197 case kGREEN: *fLog << "Green."; fPattern |= k5LedGreen; break; 198 case kBLUE: *fLog << "Blue."; fPattern |= k5LedBlue1; break; 199 } 200 *fLog << endl; 201 fIsValid = kTRUE; 202 return kTRUE; 203 } 169 204 else 170 205 { 171 206 const TString proj = header->GetProjectName(); 172 207 173 if (proj.Contains("gree",TString::kIgnoreCase)) 174 color = kGREEN; 175 if (proj.Contains("blue",TString::kIgnoreCase)) 176 color = kBLUE; 177 if (proj.Contains("uv",TString::kIgnoreCase)) 178 color = kUV; 179 if (proj.Contains("ct1",TString::kIgnoreCase)) 180 color = kCT1; 208 // Possible green combinations 209 if (proj.Contains("0.1ledgree",TString::kIgnoreCase)) 210 { fPattern |= k01LedGreen; color = kGREEN; } 211 if (proj.Contains("1ledgree",TString::kIgnoreCase)) 212 { fPattern |= k1LedGreen; color = kGREEN; } 213 if (proj.Contains("2ledgree",TString::kIgnoreCase)) 214 { fPattern |= k2LedGreen; color = kGREEN; } 215 if (proj.Contains("3ledgree",TString::kIgnoreCase)) 216 { fPattern |= k3LedGreen; color = kGREEN; } 217 if (proj.Contains("5ledgree",TString::kIgnoreCase)) 218 { fPattern |= k5LedGreen; color = kGREEN; } 219 220 // Possible green combinations 221 if (proj.Contains("0.1ledblue",TString::kIgnoreCase)) 222 { fPattern |= k01LedBlue; color = kBLUE; } 223 if (proj.Contains("1ledblue",TString::kIgnoreCase)) 224 { fPattern |= k1LedBlue; color = kBLUE; } 225 if (proj.Contains("2ledblue",TString::kIgnoreCase)) 226 { fPattern |= k2LedBlue; color = kBLUE; } 227 if (proj.Contains("3ledblue",TString::kIgnoreCase)) 228 { fPattern |= k3LedBlue; color = kBLUE; } 229 if (proj.Contains("5ledblue",TString::kIgnoreCase)) 230 { fPattern |= k5LedBlue1; color = kBLUE; } 231 if (proj.Contains("10ledblue",TString::kIgnoreCase)) 232 { fPattern |= k10LedBlue; color = kBLUE; } 233 if (proj.Contains("15ledblue",TString::kIgnoreCase)) 234 { fPattern |= k15LedBlue; color = kBLUE; } 235 if (proj.Contains("20ledblue",TString::kIgnoreCase)) 236 { fPattern |= k20LedBlue; color = kBLUE; } 237 if (proj.Contains("21ledblue",TString::kIgnoreCase)) 238 { fPattern |= k21LedBlue; color = kBLUE; } 239 if (proj.Contains("22ledblue",TString::kIgnoreCase)) 240 { fPattern |= k22LedBlue; color = kBLUE; } 241 if (proj.Contains("23ledblue",TString::kIgnoreCase)) 242 { fPattern |= k23LedBlue; color = kBLUE; } 181 243 182 *fLog << inf << "Color determined from project-name (" << proj << ")... "; 244 // Possible UV combinations 245 if (proj.Contains("1leduv",TString::kIgnoreCase)) 246 { fPattern |= k1LedUV; color = kUV; } 247 if (proj.Contains("2leduv",TString::kIgnoreCase)) 248 { fPattern |= k2LedUV; color = kUV; } 249 if (proj.Contains("3leduv",TString::kIgnoreCase)) 250 { fPattern |= k3LedUV; color = kUV; } 251 if (proj.Contains("5leduv",TString::kIgnoreCase)) 252 { fPattern |= k5LedUV1; color = kUV; } 253 if (proj.Contains("10leduv",TString::kIgnoreCase)) 254 { fPattern |= k10LedUV; color = kUV; } 255 if (proj.Contains("11leduv",TString::kIgnoreCase)) 256 { fPattern |= k11LedUV; color = kUV; } 257 if (proj.Contains("12leduv",TString::kIgnoreCase)) 258 { fPattern |= k12LedUV; color = kUV; } 259 if (proj.Contains("13leduv",TString::kIgnoreCase)) 260 { fPattern |= k13LedUV; color = kUV; } 261 262 if (color != kNONE) 263 *fLog << inf << "Color and Intensity determined from project-name (" << proj << ")... "; 264 else 265 { 266 if (proj.Contains("gree",TString::kIgnoreCase)) 267 { fPattern |= k5LedGreen; color = kGREEN; } 268 if (proj.Contains("blue",TString::kIgnoreCase)) 269 { fPattern |=k5LedBlue1; color = kBLUE;} 270 if (proj.Contains("uv",TString::kIgnoreCase)) 271 { fPattern |=k5LedUV1 ; color = kUV; } 272 if (proj.Contains("ct1",TString::kIgnoreCase)) 273 { fPattern |=kCT1Pulser; color = kCT1; } 274 if (color != kNONE) 275 *fLog << inf << "Color determined from project-name (" << proj << ")... "; 276 } 183 277 } 184 278 … … 193 287 switch (color) 194 288 { 195 case kGREEN: *fLog << "Green."; fPattern |= k5LedGreen;break;196 case kBLUE: *fLog << "Blue."; fPattern |= k5LedBlue ;break;197 case kUV: *fLog << "UV."; fPattern |= k5LedUV ;break;198 case kCT1: *fLog << "CT1."; fPattern |= kCT1Pulser;break;289 case kGREEN: *fLog << "Green."; break; 290 case kBLUE: *fLog << "Blue."; break; 291 case kUV: *fLog << "UV."; break; 292 case kCT1: *fLog << "CT1."; break; 199 293 } 200 294 *fLog << endl;
Note:
See TracChangeset
for help on using the changeset viewer.