Changeset 3614 for trunk/MagicSoft
- Timestamp:
- 03/30/04 22:48:35 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3613 r3614 25 25 * mcalib/MHCalibrationChargeHiGainPix.[h,cc] 26 26 * mcalib/MHCalibrationChargeLoGainPix.[h,cc] 27 * mcalib/MHCalibrationChargeBlindPix.[h,cc] 27 28 - updated and enlarged documentation 28 29 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeBlindPix.cc
r3551 r3614 27 27 // MHCalibrationChargeBlindPix 28 28 // 29 // Performs all the Single Photo-Electron Fit to extract 30 // the mean number of photons and to derive the light flux 31 // 32 // The fit result is accepted under condition that: 33 // 1) the Probability is greater than gkProbLimit (default 0.001 == 99.7%) 34 // 2) at least 100 events are in the single Photo-electron peak 35 // 36 // Used numbers are the following: 37 // 38 // Electronic conversion factor: 29 // Histogram container for the calibration Blind Pixel information 30 // Performs the Single Photo-electron fit to extract the Poisson mean and its errors 31 // 32 // Different fits can be chosen with the function ChangeFitFunc() 33 // 34 // The fit result is accepted under condition that: 35 // 1) the Probability is greater than fProbLimit (default 0.001 == 99.7%) 36 // 2) at least fNumSinglePheLimit events are found in the single Photo-electron peak 37 // 38 // The single FADC slice entries are averaged and stored in fASinglePheFADCSlices, if 39 // their sum exceeds fSinglePheCut, otherwise in fAPedestalFADCSlices. 40 // 41 // Used numbers are the following: 42 // 43 // Electronic conversion factor: 39 44 // Assume, we have N_e electrons at the anode, 40 45 // thus a charge of N_e*e (e = electron charge) Coulomb. … … 92 97 const Axis_t MHCalibrationChargeBlindPix::fgChargeFirst = -100.5; 93 98 const Axis_t MHCalibrationChargeBlindPix::fgChargeLast = 5199.5; 94 95 99 const Float_t MHCalibrationChargeBlindPix::fgSinglePheCut = 200.; 96 100 const Float_t MHCalibrationChargeBlindPix::fgNumSinglePheLimit = 50.; … … 99 103 // Default Constructor. 100 104 // 105 // Sets: 106 // - the default number for fChargeNbins (fgChargeNbins) 107 // - the default number for fChargeFirst (fgChargeFirst) 108 // - the default number for fChargeLast (fgChargeLast) 109 // - the default number for fSinglePheCut (fgSingePheCut) 110 // - the default number for fNumSinglePheLimit (fgNumSinglePheLimit) 111 // 112 // - the default name of the fHGausHist ("HCalibrationChargeBlindPix") 113 // - the default title of the fHGausHist ("Distribution of Summed FADC slices Blind Pixel ") 114 // - the default x-axis title for fHGausHist ("Sum FADC Slices") 115 // - the default y-axis title for fHGausHist ("Nr. of events") 116 // 117 // Initializes: 118 // - all pointers to NULL 119 // - all variables to 0., except the fit result variables to -999. 120 // - all flags to kFALSE 121 // - the default Fit function to kEPoisson5 122 // 101 123 MHCalibrationChargeBlindPix::MHCalibrationChargeBlindPix(const char *name, const char *title) 102 : fBlindPix(NULL), fSignal(NULL), fRawEvt(NULL), 103 fASinglePheFADCSlices(30), fAPedestalFADCSlices(30), 124 : fBlindPix(NULL), fSignal(NULL), fRawEvt(NULL), 104 125 fSinglePheFit(NULL), 105 126 fFitLegend(NULL), … … 127 148 } 128 149 150 // -------------------------------------------------------------------------- 151 // 152 // Default Destructor. 153 // 154 // Deletes (if Pointer is not NULL): 155 // 156 // - fSinglePheFit 157 // - fFitLegend 158 // - fHSinglePheFADCSlices 159 // - fHPedestalFADCSlices 160 // 129 161 MHCalibrationChargeBlindPix::~MHCalibrationChargeBlindPix() 130 162 { … … 144 176 } 145 177 178 // -------------------------------------------------------------------------- 179 // 180 // Sets: 181 // - fHGausHist.SetBins(fChargeNbins,fChargeFirst,fChargeLast); 182 // 146 183 void MHCalibrationChargeBlindPix::Init() 147 184 { 148 149 185 fHGausHist.SetBins( fChargeNbins, fChargeFirst, fChargeLast); 150 186 } 151 187 188 // -------------------------------------------------------------------------- 189 // 190 // Sets: 191 // - all variables to 0., except the fit result variables to -999. 192 // - all flags to kFALSE 193 // - all pointers to NULL 194 // 195 // Deletes: 196 // - all pointers unequal NULL 197 // 198 // Executes MHCalibrationChargePix::Clear() 199 // 152 200 void MHCalibrationChargeBlindPix::Clear(Option_t *o) 153 201 { … … 168 216 fLambdaCheckErr = -999.; 169 217 170 fMeanPedestal = 0.;171 fMeanPedestalErr = 0.;172 fSigmaPedestal = 0.;173 fSigmaPedestalErr = 0.;174 175 218 fFitFunc = kEPoisson5; 176 177 fExtractSlices = 0;178 fNumSinglePhes = 0;179 fNumPedestals = 0;180 219 181 220 fNumSinglePhes = 0; … … 238 277 } 239 278 279 // -------------------------------------------------------------------------- 280 // 281 // Gets the pointers to: 282 // - MRawEvtData 283 // - MExtractedSignalBlindPixel 284 // 285 // Initializes: 286 // - fASinglePheFADCSlices(0); 287 // - fAPedestalFADCSlices(0); 288 // 289 // Calls Init() 290 // 240 291 Bool_t MHCalibrationChargeBlindPix::SetupFill(const MParList *pList) 241 292 { 242 fRawEvt = (MRawEvtData*)pList->FindObject("MRawEvtData"); 243 if (!fRawEvt) 293 294 fRawEvt = (MRawEvtData*)pList->FindObject("MRawEvtData"); 295 if (!fRawEvt) 244 296 { 245 297 *fLog << err << "MRawEvtData not found... aborting." << endl; 246 298 return kFALSE; 247 299 } 248 300 249 301 fSignal = (MExtractedSignalBlindPixel*)pList->FindObject("MExtractedSignalBlindPixel"); 250 302 if (!fSignal) 251 {303 { 252 304 *fLog << err << "MExtractedSignalBlindPixel not found... aborting " << endl; 253 305 return kFALSE; 254 } 255 306 } 307 308 fASinglePheFADCSlices(0); 309 fAPedestalFADCSlices(0); 310 256 311 Init(); 257 312 … … 259 314 } 260 315 316 // -------------------------------------------------------------------------- 317 // 318 // Gets or creates the pointers to: 319 // - MCalibrationChargeBlindPix 320 // 321 // Resizes: 322 // - fASinglePheFADCSlices to sum of HiGain and LoGain samples 323 // - fAPedestalFADCSlices to sum of HiGain and LoGain samples 324 // 261 325 Bool_t MHCalibrationChargeBlindPix::ReInit(MParList *pList) 262 326 { … … 266 330 return kFALSE; 267 331 332 Int_t samples = (Int_t)fRawEvt->GetNumHiGainSamples()+(Int_t)fRawEvt->GetNumLoGainSamples(); 333 334 if (fASinglePheFADCSlices.GetNrows() != samples) 335 { 336 fASinglePheFADCSlices.ResizeTo(samples); 337 fAPedestalFADCSlices.ResizeTo(samples); 338 } 339 340 268 341 return kTRUE; 269 342 } 270 343 344 // -------------------------------------------------------------------------- 345 // 346 // Retrieves from MExtractedSignalBlindPixel: 347 // - number of FADC samples 348 // - extracted signal 349 // - blind Pixel ID 350 // 351 // Executes MHGausEvents::FillHistAndArray(signal) 352 // 353 // Creates MRawEvtPixelIter, jumps to blind pixel ID, 354 // fills the vectors fASinglePheFADCSlices and fAPedestalFADCSlices 355 // with the full FADC slices, depending on the size of the signal w.r.t. fSinglePheCut 356 // 271 357 Bool_t MHCalibrationChargeBlindPix::Fill(const MParContainer *par, const Stat_t w) 272 358 { … … 281 367 } 282 368 283 if (fExtractSlices != 0. && slices != fExtractSlices )284 {285 *fLog << err << "Number of used signal slices changed in MExtractedSignalCam ... abort."286 << endl;287 return kFALSE;288 }289 fExtractSlices = slices;290 291 369 // 292 370 // Signal extraction and histogram filling … … 298 376 // IN order to study the single-phe posistion, we extract the slices 299 377 // 378 const Int_t blindpixIdx = fSignal->GetBlindPixelIdx(); 379 300 380 MRawEvtPixelIter pixel(fRawEvt); 301 pixel.Jump( fSignal->GetBlindPixelIdx());381 pixel.Jump(blindpixIdx); 302 382 303 383 if (signal > fSinglePheCut) … … 309 389 } 310 390 391 // -------------------------------------------------------------------------- 392 // 393 // Returns kFALSE, if empty 394 // 395 // - Creates the fourier spectrum and sets bit IsFourierSpectrumOK() 396 // - Retrieves the pedestals from MExtractedSignalBlindPixel 397 // - Normalizes fASinglePheFADCSlices and fAPedestalFADCSlices 398 // - Executes FitPedestal() 399 // - Executes FitSinglePhe() 400 // - Retrieves fit results and stores them in MCalibrationChargeBlindPix 401 // 311 402 Bool_t MHCalibrationChargeBlindPix::Finalize() 312 403 { … … 355 446 } 356 447 448 449 // -------------------------------------------------------------------------- 450 // 451 // Checks again for the size and fills fASinglePheFADCSlices with the FADC slice entries 452 // 357 453 void MHCalibrationChargeBlindPix::FillSinglePheFADCSlices(const MRawEvtPixelIter &iter) 358 454 { … … 380 476 } 381 477 478 // -------------------------------------------------------------------------- 479 // 480 // Checks again for the size and fills fAPedestalFADCSlices with the FADC slice entries 481 // 382 482 void MHCalibrationChargeBlindPix::FillPedestalFADCSlices(const MRawEvtPixelIter &iter) 383 483 { … … 405 505 406 506 407 507 // -------------------------------------------------------------------------- 508 // 509 // Task to simulate single phe spectrum with the given parameters 510 // 408 511 Bool_t MHCalibrationChargeBlindPix::SimulateSinglePhe(Double_t lambda, Double_t mu0, Double_t mu1, Double_t sigma0, Double_t sigma1) 409 512 { … … 427 530 } 428 531 532 // -------------------------------------------------------------------------- 533 // 534 // - Get the ranges from the stripped histogram 535 // - choose reasonable start values for the fit 536 // - initialize the fit function depending on fFitFunc 537 // - initialize parameter names and limits depending on fFitFunc 538 // 429 539 Bool_t MHCalibrationChargeBlindPix::InitFit() 430 540 { … … 570 680 } 571 681 682 // -------------------------------------------------------------------------- 683 // 684 // - Retrieve the parameters depending on fFitFunc 685 // - Retrieve probability, Chisquare and NDF 686 // 572 687 void MHCalibrationChargeBlindPix::ExitFit() 573 688 { … … 623 738 } 624 739 625 740 // -------------------------------------------------------------------------- 741 // 742 // - Executes InitFit() 743 // - Fits the fHGausHist with fSinglePheFit 744 // - Executes ExitFit() 745 // 746 // The fit result is accepted under condition: 747 // 1) The results are not nan's 748 // 2) The NDF is not smaller than fNDFLimit (5) 749 // 3) The Probability is greater than fProbLimit (default 0.001 == 99.9%) 750 // 4) at least fNumSinglePheLimit events are in the single Photo-electron peak 751 // 626 752 Bool_t MHCalibrationChargeBlindPix::FitSinglePhe(Option_t *opt) 627 753 { … … 640 766 // 3) The Probability is greater than fProbLimit (default 0.001 == 99.9%) 641 767 // 4) at least fNumSinglePheLimit events are in the single Photo-electron peak 768 // 642 769 if ( TMath::IsNaN(fLambda) 643 770 || TMath::IsNaN(fLambdaErr) … … 671 798 } 672 799 800 // -------------------------------------------------------------------------- 801 // 802 // - Retrieves limits for the fit 803 // - Fits the fHGausHist with Gauss 804 // - Retrieves the results to fLambdaCheck and fLambdaCheckErr 805 // - Sets a flag IsPedestalFitOK() 806 // 673 807 void MHCalibrationChargeBlindPix::FitPedestal (Option_t *opt) 674 808 { … … 777 911 // Draw the histogram 778 912 // 913 // The following options can be chosen: 914 // 915 // "": displays the fHGausHist, the legend and fASinglePheFADCSlices and fAPedestalFADCSlices 916 // "all": executes additionally MHGausEvents::Draw(), with option "fourierevents" 917 // 779 918 void MHCalibrationChargeBlindPix::Draw(Option_t *opt) 780 919 { -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeBlindPix.h
r3289 r3614 27 27 private: 28 28 29 MCalibrationChargeBlindPix *fBlindPix; //! Storage container of the results 30 MExtractedSignalBlindPixel *fSignal; //! Storage container of the extracted signal 31 MRawEvtData *fRawEvt; //! Storage container of the raw data 32 33 static const Int_t fgChargeNbins; 34 static const Axis_t fgChargeFirst; 35 static const Axis_t fgChargeLast; 36 37 static const Float_t fgSinglePheCut; 38 39 static const Float_t fgNumSinglePheLimit; 40 41 static const Double_t gkElectronicAmp; 42 static const Double_t gkElectronicAmpErr; 43 44 TVector fASinglePheFADCSlices; // Array containing the averaged FADC slice entries for the supposed single-phe events 45 TVector fAPedestalFADCSlices; // Array containing the averaged FADC slice entries for the supposed pedestal events 46 47 TF1 *fSinglePheFit; //-> Single Phe Fit (Gaussians convoluted with Poisson) (needs to be a pointer, initialized later) 48 49 UInt_t fNumSinglePhes; 50 UInt_t fNumPedestals; 51 52 Float_t fSinglePheCut; 53 54 Float_t fNumSinglePheLimit; 55 56 Double_t fLambda; 57 Double_t fMu0; 58 Double_t fMu1; 59 Double_t fSigma0; 60 Double_t fSigma1; 61 62 Double_t fLambdaErr; 63 Double_t fMu0Err; 64 Double_t fMu1Err; 65 Double_t fSigma0Err; 66 Double_t fSigma1Err; 67 68 Double_t fLambdaCheck; 69 Double_t fLambdaCheckErr; 70 71 Double_t fChisquare; 72 Int_t fNDF; 73 Double_t fProb; 74 75 Double_t fMeanPedestal; 76 Double_t fMeanPedestalErr; 77 Double_t fSigmaPedestal; 78 Double_t fSigmaPedestalErr; 79 80 Float_t fExtractSlices; 81 82 Byte_t fFlags; 83 84 enum { kSinglePheFitOK, kPedestalFitOK }; 85 86 TPaveText *fFitLegend; //! 87 TH1F *fHSinglePheFADCSlices; //! 88 TH1F *fHPedestalFADCSlices; //! 89 29 static const Int_t fgChargeNbins; // Default for fChargeNBins (now set to: 5300 ) 30 static const Axis_t fgChargeFirst; // Default for fChargeFirst (now set to: -100.5 ) 31 static const Axis_t fgChargeLast; // Default for fChargeLast (now set to: 5199.5 ) 32 static const Float_t fgSinglePheCut; // Default for fSinglePheCut (now set to: 200 ) 33 static const Float_t fgNumSinglePheLimit; // Default for fNumSinglePheLimit (now set to: 50 ) 34 35 static const Double_t gkElectronicAmp; // Electronic Amplification after the PMT (in FADC counts/N_e) 36 static const Double_t gkElectronicAmpErr; // Error of the electronic amplification 37 38 Float_t fSinglePheCut; // Value of summed FADC slices upon which event considered as single-phe 39 Float_t fNumSinglePheLimit; // Minimum number of single-phe events 40 41 MCalibrationChargeBlindPix *fBlindPix; //! Storage container results 42 MExtractedSignalBlindPixel *fSignal; //! Storage container extracted signal 43 MRawEvtData *fRawEvt; //! Storage container raw data 44 45 TVector fASinglePheFADCSlices; // Averaged FADC slice entries supposed single-phe events 46 TVector fAPedestalFADCSlices; // Averaged FADC slice entries supposed pedestal events 47 48 TF1 *fSinglePheFit; //-> Single Phe Fit (Gaussians convoluted with Poisson) 49 50 UInt_t fNumSinglePhes; // Number of entries in fASinglePheFADCSlices 51 UInt_t fNumPedestals; // Number of entries in fAPedestalFADCSlices 52 53 Double_t fLambda; // Poisson mean from Single-phe fit 54 Double_t fLambdaCheck; // Poisson mean from Pedestal fit alone 55 Double_t fMu0; // Mean of the pedestal 56 Double_t fMu1; // Mean of single-phe peak 57 Double_t fSigma0; // Sigma of the pedestal 58 Double_t fSigma1; // Sigma of single-phe peak 59 60 Double_t fLambdaErr; // Error of Poisson mean from Single-phe fit 61 Double_t fLambdaCheckErr; // Error of Poisson mean from Pedestal fit alone 62 Double_t fMu0Err; // Error of Mean of the pedestal 63 Double_t fMu1Err; // Error of Mean of single-phe peak 64 Double_t fSigma0Err; // Error of Sigma of the pedestal 65 Double_t fSigma1Err; // Error of Sigma of single-phe peak 66 67 Double_t fChisquare; // Chisquare of single-phe fit 68 Int_t fNDF; // Ndof of single-phe fit 69 Double_t fProb; // Probability of singleo-phe fit 70 71 Double_t fMeanPedestal; // Mean pedestal from pedestal run 72 Double_t fSigmaPedestal; // Sigma pedestal from pedestal run 73 74 Double_t fMeanPedestalErr; // Error of Mean pedestal from pedestal run 75 Double_t fSigmaPedestalErr; // Error of Sigma pedestal from pedestal run 76 77 Byte_t fFlags; // Bit-field for the flags 78 enum { kSinglePheFitOK, kPedestalFitOK }; // Possible bits to be set 79 80 TPaveText *fFitLegend; //! Some legend to display the fit results 81 TH1F *fHSinglePheFADCSlices; //! A histogram created and deleted only in Draw() 82 TH1F *fHPedestalFADCSlices; //! A histogram created and deleted only in Draw() 90 83 91 84 // Fill histos … … 117 110 void SetNumSinglePheLimit ( const Float_t lim =fgNumSinglePheLimit ) { fNumSinglePheLimit = lim; } 118 111 119 void SetMeanPedestal ( const Float_t f ) { fMeanPedestal = f; }120 void SetMeanPedestalErr ( const Float_t f ) { fMeanPedestalErr = f; }121 void SetSigmaPedestal ( const Float_t f ) { fSigmaPedestal = f; }122 void SetSigmaPedestalErr ( const Float_t f ) { fSigmaPedestalErr = f; }123 124 void SetSinglePheFitOK ( const Bool_t b=kTRUE);125 void SetPedestalFitOK ( const Bool_t b=kTRUE);112 void SetMeanPedestal ( const Float_t f ) { fMeanPedestal = f; } 113 void SetMeanPedestalErr ( const Float_t f ) { fMeanPedestalErr = f; } 114 void SetSigmaPedestal ( const Float_t f ) { fSigmaPedestal = f; } 115 void SetSigmaPedestalErr ( const Float_t f ) { fSigmaPedestalErr = f; } 116 117 void SetSinglePheFitOK ( const Bool_t b=kTRUE); 118 void SetPedestalFitOK ( const Bool_t b=kTRUE); 126 119 127 120 // Getters … … 140 133 const Double_t GetSigma1Err() const { return fSigma1Err; } 141 134 142 TVector &GetASinglePheFADCSlices() 143 const TVector &GetASinglePheFADCSlices() 144 145 TVector &GetAPedestalFADCSlices() 146 const TVector &GetAPedestalFADCSlices() 147 148 const Bool_t IsSinglePheFitOK() const;149 const Bool_t IsPedestalFitOK() const;135 TVector &GetASinglePheFADCSlices() { return fASinglePheFADCSlices; } 136 const TVector &GetASinglePheFADCSlices() const { return fASinglePheFADCSlices; } 137 138 TVector &GetAPedestalFADCSlices() { return fAPedestalFADCSlices; } 139 const TVector &GetAPedestalFADCSlices() const { return fAPedestalFADCSlices; } 140 141 const Bool_t IsSinglePheFitOK() const; 142 const Bool_t IsPedestalFitOK() const; 150 143 151 144 // Draws … … 157 150 // Fits 158 151 public: 159 enum FitFunc_t { kEPoisson4, kEPoisson5, kEPoisson6, kEPoisson7, kEPolya, kEMichele }; 152 enum FitFunc_t { kEPoisson4, kEPoisson5, kEPoisson6, kEPoisson7, kEPolya, kEMichele }; // The possible fit functions 160 153 161 154 private: … … 166 159 void FitPedestal (Option_t *opt="RL0+Q"); 167 160 168 void ChangeFitFunc( FitFunc_t func){ fFitFunc = func; }161 void ChangeFitFunc(const FitFunc_t func) { fFitFunc = func; } 169 162 170 163 // Simulation 171 Bool_t SimulateSinglePhe( Double_t lambda,172 Double_t mu0,Double_t mu1,173 Double_t sigma0,Double_t sigma1);164 Bool_t SimulateSinglePhe(const Double_t lambda, 165 const Double_t mu0, const Double_t mu1, 166 const Double_t sigma0, const Double_t sigma1); 174 167 175 168 private: 176 177 const static Double_t fNoWay = 10000000000.0;178 169 179 170 inline static Double_t fFitFuncMichele(Double_t *x, Double_t *par) … … 194 185 195 186 if (mu1cat < mu0) 196 return fNoWay;187 return FLT_MAX; 197 188 198 189 if (sigma1cat < sigma0) 199 return fNoWay;190 return FLT_MAX; 200 191 201 192 // if (sigma1cat < sigma1dyn) … … 269 260 270 261 if (mu1 < mu0) 271 return fNoWay;262 return FLT_MAX; 272 263 273 264 Double_t sigma0 = par[3]; … … 275 266 276 267 if (sigma1 < sigma0) 277 return fNoWay;268 return FLT_MAX; 278 269 279 270 Double_t mu2 = (2.*mu1)-mu0; … … 326 317 327 318 if (mu1 < mu0) 328 return fNoWay;319 return FLT_MAX; 329 320 330 321 Double_t sigma0 = par[3]; … … 332 323 333 324 if (sigma1 < sigma0) 334 return fNoWay;325 return FLT_MAX; 335 326 336 327 … … 391 382 392 383 if (mu1 < mu0) 393 return fNoWay;384 return FLT_MAX; 394 385 395 386 Double_t sigma0 = par[3]; … … 397 388 398 389 if (sigma1 < sigma0) 399 return fNoWay;390 return FLT_MAX; 400 391 401 392 … … 515 506 516 507 517 ClassDef(MHCalibrationChargeBlindPix, 1) // Histogram s fromthe Calibration Blind Pixel508 ClassDef(MHCalibrationChargeBlindPix, 1) // Histogram class for the Calibration Blind Pixel 518 509 }; 519 510 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeLoGainPix.cc
r3496 r3614 27 27 // MHCalibrationChargeLoGainPix 28 28 // 29 // Performs all the necessary fits to extract the mean number of summed FADC slices29 // Store the histogrammed Hi Gain summed FADC slices and the arrival times 30 30 // 31 31 ////////////////////////////////////////////////////////////////////////////// … … 59 59 // Default Constructor. 60 60 // 61 // Sets: 62 // - the default number for fChargeNbins (fgChargeNbins) 63 // - the default number for fChargeFirst (fgChargeFirst) 64 // - the default number for fChargeLast (fgChargeLast) 65 // - the default number for fAbsTimeNbins (fgAbstTimeNbins) 66 // - the default number for fAbsTimeFirst (fgAbsTimeFirst) 67 // - the default number for fAbsTimeLast (fgAbsTimeLast) 68 // 69 // - the default name of the fHGausHist ("HCalibrationChargeLoGainPix") 70 // - the default title of the fHGausHist ("Distribution of Summed Lo Gain FADC slices Pixel ") 71 // 72 // - the default name of the fHAbsTime ("HAbsTimeLoGainPix") 73 // - the default title of the fHAbsTime ("Distribution of Absolute Arrival Times Lo Gain Pixel ") 74 // 61 75 MHCalibrationChargeLoGainPix::MHCalibrationChargeLoGainPix(const char *name, const char *title) 62 76 { 77 63 78 fName = name ? name : "MHCalibrationChargeLoGainPix"; 64 79 fTitle = title ? title : "Fill the FADC sums of the Low Gain events and perform the fits Pixel "; -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeLoGainPix.h
r3346 r3614 11 11 private: 12 12 13 static const Int_t fgChargeNbins; 14 static const Axis_t fgChargeFirst; 15 static const Axis_t fgChargeLast; 16 17 static const Int_t fgAbsTimeNbins; 18 static const Axis_t fgAbsTimeFirst; 19 static const Axis_t fgAbsTimeLast; 13 static const Int_t fgChargeNbins; // Default for fChargeNBins (now set to: 200 ) 14 static const Axis_t fgChargeFirst; // Default for fChargeFirst (now set to: -0.5 ) 15 static const Axis_t fgChargeLast; // Default for fChargeLast (now set to: 199.5 ) 16 static const Int_t fgAbsTimeNbins; // Default for fAbsTimeNbins (now set to: 15 ) 17 static const Axis_t fgAbsTimeFirst; // Default for fAbsTimeFirst (now set to: -0.5 ) 18 static const Axis_t fgAbsTimeLast; // Default for fAbsTimeLast (now set to: 14.5 ) 20 19 21 20 public: … … 33 32 void SetAbsTimeLast (const Axis_t last =fgAbsTimeLast) { fAbsTimeLast = last; } 34 33 35 ClassDef(MHCalibrationChargeLoGainPix, 1) // Histogram class for a Calibration Pixel with extracted Low Gain34 ClassDef(MHCalibrationChargeLoGainPix, 1) // Histogram class for Low Gain Part of Calibration Pixel 36 35 }; 37 36 -
trunk/MagicSoft/Mars/mcalib/MHGausEvents.cc
r3611 r3614 278 278 // 279 279 // Fills fHGausHist with f 280 // Returns kFALSE, if overflow or underflow occurred 280 // Returns kFALSE, if overflow or underflow occurred, else kTRUE 281 281 // 282 282 Bool_t MHGausEvents::FillHist(const Float_t f)
Note:
See TracChangeset
for help on using the changeset viewer.