- Timestamp:
- 02/12/04 19:54:27 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3122 r3124 26 26 * mcalib/MHCalibrationPixel.[h,cc], mcalib/MCalibrationPix.[h,cc], 27 27 mcalib/MCalibrationCalc.[h,cc] 28 macros/calibration.C 28 29 - implemented new histograms: 29 30 HSinglePheFADCSlices and HPedestalFADCSlices … … 32 33 variable: MCalibrationCalc::fBlindPixelSinglePheCut, to be set 33 34 with a setter 34 - as the blind pixel signal seems to be delayed a bit, the35 extraction range is now by default: 10,20. The extractor takes36 already care of the fact that part of the signal lies in the37 LoGain Sample.38 39 35 40 36 -
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 -
trunk/MagicSoft/Mars/mcalib/MCalibrationCalc.cc
r3123 r3124 115 115 const UInt_t MCalibrationCalc::fPINDiodeId = 9999; 116 116 const Byte_t MCalibrationCalc::fgSaturationLimit = 254; 117 const Int_t MCalibrationCalc::fgBlindPixelFirst = 10;118 const Int_t MCalibrationCalc::fgBlindPixelLast = 20;117 const Int_t MCalibrationCalc::fgBlindPixelFirst = 3; 118 const Int_t MCalibrationCalc::fgBlindPixelLast = 14; 119 119 const Int_t MCalibrationCalc::fgBlindPixelSinglePheCut = 400; 120 120 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationBlindPixel.h
r3120 r3124 26 26 static const Double_t fgBlindPixelElectronicAmpError; 27 27 28 static const Int_t fPSDNbins;29 static const Int_t fPulserFrequency;28 static const Int_t fPSDNbins; 29 static const Int_t fPulserFrequency; 30 30 31 31 TH1I* fHBlindPixelCharge; // Histogram with the single Phe spectrum … … 99 99 100 100 enum { kFitOK, kOscillating }; 101 102 101 103 102 public: … … 176 175 Bool_t CheckOscillations(); 177 176 178 179 177 private: 180 178
Note:
See TracChangeset
for help on using the changeset viewer.