Changeset 5866 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 01/16/05 22:20:02 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationIntensityChargeCam.cc
r5858 r5866 821 821 // ------------------------------------------------------------------- 822 822 // 823 // Returns a TGraphErrors with the mean effective number of photon 824 // vs. the calibration camera number. With the string 'method', different 825 // calibration methods can be called. 826 // 827 TGraphErrors *MCalibrationIntensityChargeCam::GetPhotVsTime( const Option_t *method ) 828 { 829 830 const Int_t size = GetSize(); 831 832 if (size == 0) 833 return NULL; 834 835 TString option(method); 836 837 TArrayF photarr(size); 838 TArrayF photarrerr(size); 839 TArrayF nr(size); 840 TArrayF nrerr(size); 841 842 for (Int_t i=0;i<GetSize();i++) 843 { 844 // 845 // Get the calibration cam from the intensity cam 846 // 847 MCalibrationChargeCam *cam = (MCalibrationChargeCam*)GetCam(i); 848 849 // 850 // Get the calibration pix from the calibration cam 851 // 852 Float_t phot = 0.; 853 Float_t photerr = 0.; 854 855 if (option.Contains("BlindPixel")) 856 { 857 phot = cam->GetNumPhotonsBlindPixelMethod(); 858 photerr = cam->GetNumPhotonsBlindPixelMethodErr(); 859 } 860 if (option.Contains("FFactor")) 861 { 862 phot = cam->GetNumPhotonsFFactorMethod(); 863 photerr = cam->GetNumPhotonsFFactorMethodErr(); 864 } 865 if (option.Contains("PINDiode")) 866 { 867 phot = cam->GetNumPhotonsPINDiodeMethod(); 868 photerr = cam->GetNumPhotonsPINDiodeMethodErr(); 869 } 870 871 photarr[i] = phot; 872 photarrerr[i] = photerr; 873 874 nr[i] = i; 875 nrerr[i] = 0.; 876 } 877 878 TGraphErrors *gr = new TGraphErrors(size, 879 nr.GetArray(),photarr.GetArray(), 880 nrerr.GetArray(),photarrerr.GetArray()); 881 gr->SetTitle("Photons Average"); 882 gr->GetXaxis()->SetTitle("Camera Nr."); 883 gr->GetYaxis()->SetTitle("<N_phot> [1]"); 884 return gr; 885 } 886 887 // ------------------------------------------------------------------- 888 // 823 889 // Returns a TGraphErrors with the mean effective number of photo-electrons per 824 890 // area index 'aidx' vs. the calibration camera number -
trunk/MagicSoft/Mars/mcalib/MCalibrationIntensityChargeCam.h
r5858 r5866 37 37 TH2F *GetRazmikPlotResults( const Int_t aidx, const MGeomCam &geom ); 38 38 39 TGraphErrors *GetChargePerAreaVsTime( const Int_t aidx, const MGeomCam &geom ); 39 40 TGraphErrors *GetPhePerAreaVsTime( const Int_t aidx, const MGeomCam &geom ); 40 TGraphErrors *GetChargePerAreaVsTime( const Int_t aidx, const MGeomCam &geom ); 41 TGraphErrors *GetPhotVsTime( const Option_t *method="FFactor" ); 42 41 43 TGraphErrors *GetVarPerAreaVsTime( const Int_t aidx, const MGeomCam &geom, const Option_t *opt ); 42 43 44 TGraphErrors *GetVarVsTime( const Int_t pixid , const Option_t *opt ); 44 45
Note:
See TracChangeset
for help on using the changeset viewer.