Changeset 3124 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 02/12/04 19:54:27 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/calibration.C
r3084 r3124 26 26 //const TString calfile = "/mnt/users/mdoro/Mars/Data/20040201_1441*_C_OffMrk421-1_E.root"; 27 27 28 const TString pedfile = "/mnt/Data/rootdata/CrabNebula/2004_01_27/20040126_12386_P_Cab-On_E.root"; 29 const TString calfile = "/mnt/Data/rootdata/CrabNebula/2004_01_27/20040126_12525_C_Cab-On_E.root"; 28 const TString pedfile = "/mnt/Data/rootdata/CrabNebula/2004_02_10/20040210_14607_P_CrabNebula_E.root"; 29 const TString calfile = "/mnt/Data/rootdata/CrabNebula/2004_02_10/20040210_14608_C_CrabNebula_E.root"; 30 31 //const TString pedfile = "/mnt/Data/rootdata/CrabNebula/2004_01_26/20040125_10412_P_Crab-On_E.root"; 32 //const TString calfile = "/mnt/Data/rootdata/CrabNebula/2004_01_26/20040125_1041*_C_Crab-On_E.root"; 30 33 31 34 //const TString pedfile = "/mnt/Data/rootdata/Miscellaneous/2003_12_19/20031218_03522_P_Park_E.root"; … … 220 223 MCalibrationCalc calcalc; 221 224 225 // 226 // Set the range (other than default) 227 // of FADC slices for the blind pixel 228 // 229 // calcalc.SetBlindPixelRange(10,25); 230 231 // 232 // Set the cut upon which a superposition of the blind pixel 233 // FADC slices will be filled into the SinglePHE histogram 234 // 235 calcalc.SetBlindPixelSinglePheCut(500); 236 237 // 238 // Skip the HiGain vs. LoGain calibration 239 // 240 calcalc.SkipHiLoGainCalibration(); 241 242 // 243 // As long, as we don't have digital modules, 244 // we have to set the color of the pulser LED by hand 245 // 246 calcalc.SetPulserColor(MCalibrationCalc::kECT1); 247 248 // 249 // In case, we want to exclude a pre-defined list of bad pixels: 250 // (This is a preliminary feature) 251 // 252 // calcalc.ExcludePixelsFromAsciiFile("badpixels.dat"); 253 254 // 255 // In case, you want to skip the blind pixel method: 256 // (NOT RECOMMENDED!!!) 257 // 258 // calcalc.SkipBlindPixelFit(); 259 260 // 261 // In case, you want to skip the quality checks 262 // (NOT RECOMMENDED!!!) 263 // 264 // calcalc.SkipQualityChecks(); 265 266 // 267 // In case, we want to apply another fit function to the 268 // blind pixel 269 // 270 MCalibrationBlindPix *bp = calcam.GetBlindPixel(); 271 // bp->ChangeFitFunc(MHCalibrationBlindPixel::kEPolya); 272 bp->ChangeFitFunc(MHCalibrationBlindPixel::kEPoisson5); 273 222 274 // 223 275 // Apply a filter against cosmics … … 226 278 MFCosmics cosmics; 227 279 MContinue cont(&cosmics); 228 229 //230 // Skip the HiGain vs. LoGain calibration231 //232 calcalc.SkipHiLoGainCalibration();233 234 //235 // Making the step size a bit bigger, gives us236 // faster results237 //238 // timecalc.SetStepSize(0.05);239 240 //241 // As long, as we don't have digital modules,242 // we have to set the color of the pulser LED by hand243 //244 calcalc.SetPulserColor(MCalibrationCalc::kECT1);245 246 //247 // In case, we want to exclude a pre-defined list of bad pixels:248 // (This is a preliminary feature)249 //250 calcalc.ExcludePixelsFromAsciiFile("badpixels.dat");251 252 //253 // In case, you want to skip the blind pixel method:254 // (NOT RECOMMENDED!!!)255 //256 // calcalc.SkipBlindPixelFit();257 258 //259 // In case, you want to skip the quality checks260 // (NOT RECOMMENDED!!!)261 //262 // calcalc.SkipQualityChecks();263 264 //265 // In case, we want to apply another fit function to the266 // blind pixel267 //268 MCalibrationBlindPix *bp = calcam.GetBlindPixel();269 // bp->ChangeFitFunc(MHCalibrationBlindPixel::kEPolya);270 // bp->ChangeFitFunc(MHCalibrationBlindPixel::kEPoisson4);271 280 272 281 tlist2.AddToList(&read2); … … 298 307 // print the most important results of all pixels 299 308 // 300 calcam.Print();309 // calcam.Print(); 301 310 302 311 // 303 312 // just one example how to get the plots of individual pixels 304 313 // 305 calcam[543].DrawClone(); 314 // calcam[563].DrawClone(); 315 // calcam[564].DrawClone(); 306 316 307 317 // Create histograms to display
Note:
See TracChangeset
for help on using the changeset viewer.