Changeset 2885 for trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.cc
- Timestamp:
- 01/22/04 16:27:10 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationPixel.cc
r2852 r2885 24 24 25 25 ////////////////////////////////////////////////////////////////////////////// 26 // //27 // MHCalibrationPixel //28 // //29 // Performs all the necessary fits to extract the mean number of photons //30 // out of the derived light flux //31 // //26 // 27 // MHCalibrationPixel 28 // 29 // Performs all the necessary fits to extract the mean number of photons 30 // out of the derived light flux 31 // 32 32 ////////////////////////////////////////////////////////////////////////////// 33 33 #include "MHCalibrationPixel.h" 34 34 #include "MHCalibrationConfig.h" 35 35 36 #include <TH1.h> 37 #include <TF1.h> 38 #include <TProfile.h> 39 36 40 #include <TStyle.h> 37 #include <TMath.h>38 39 #include <TFitter.h>40 #include <TGraph.h>41 #include <TAxis.h>42 43 #include <TF1.h>44 #include <TH2.h>45 #include <TProfile.h>46 41 #include <TCanvas.h> 47 #include <TPad.h>48 42 #include <TPaveText.h> 49 50 #include "MParList.h"51 43 52 44 #include "MLog.h" … … 181 173 } 182 174 175 const Double_t MHCalibrationPixel::GetArea() const 176 { 177 return fChargeGausFit->GetParameter(0); 178 } 179 180 const Double_t MHCalibrationPixel::GetAreaErr() const 181 { 182 return fChargeGausFit->GetParError(0); 183 } 184 185 Bool_t MHCalibrationPixel::IsEmpty() 186 { 187 return !(fHChargeHiGain->GetEntries() || fHChargeLoGain->GetEntries()); 188 } 189 190 Bool_t MHCalibrationPixel::FillChargeLoGain(Float_t q) 191 { 192 return (fHChargeLoGain->Fill(q) > -1); 193 } 194 195 Bool_t MHCalibrationPixel::FillTimeLoGain(Int_t t) 196 { 197 return (fHTimeLoGain->Fill(t) > -1); 198 } 199 200 Bool_t MHCalibrationPixel::FillChargevsNLoGain(Float_t q, Int_t n) 201 { 202 return (fHChargevsNLoGain->Fill(n,q) > -1); 203 } 204 205 Bool_t MHCalibrationPixel::FillChargeHiGain(Float_t q) 206 { 207 return (fHChargeHiGain->Fill(q) > -1); 208 } 209 210 Bool_t MHCalibrationPixel::FillTimeHiGain(Int_t t) 211 { 212 return (fHTimeHiGain->Fill(t) > -1); 213 } 214 215 Bool_t MHCalibrationPixel::FillChargevsNHiGain(Float_t q, Int_t n) 216 { 217 return (fHChargevsNHiGain->Fill(n,q) > -1); 218 } 183 219 184 220 void MHCalibrationPixel::ChangeHistId(Int_t id)
Note:
See TracChangeset
for help on using the changeset viewer.