Changeset 3077 for trunk/MagicSoft/Mars
- Timestamp:
- 02/09/04 23:40:34 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3076 r3077 19 19 - take all pixel areas out of MGeomPix::GetA(), remove all previous 20 20 areas 21 - calculate photon fluxes from blind pixel and PIN diode, use 22 area only to fill the conversion factors in MCalibrationPix 23 24 25 * mcalib/MJCalibration.cc 26 - display of number of photons for Blindpixel and PIN Diode Method 27 changed to display of photon flux which is the actually 28 calculated quantity 21 29 22 30 -
trunk/MagicSoft/Mars/mcalib/MCalibrationCam.cc
r3075 r3077 61 61 const Int_t MCalibrationCam::gkBlindPixelId = 559; 62 62 const Int_t MCalibrationCam::gkPINDiodeId = 9999; 63 const Float_t MCalibrationCam::gkBlindPixelArea = 100; 64 const Float_t MCalibrationCam::gkPINDiodeArea = 100; 63 65 64 66 // -------------------------------------------------------------------------- … … 311 313 << pix->GetPedRms() << " Reduced Charge: " << pix->GetCharge() << " +- " 312 314 << pix->GetSigmaCharge() << " Reduced Sigma: " << pix->GetRSigmaCharge() << endl; 313 Float_t area = (*fGeomCam)[pix->GetPixId()].GetA();314 *fLog << "Area: " << area << endl;315 315 pix->DrawClone(); 316 316 id++; … … 406 406 return kFALSE; 407 407 408 Float_t area = cam[idx].GetA() /100.;408 Float_t area = cam[idx].GetA(); 409 409 410 410 if (area == 0) … … 695 695 // Start calculation of number of photons 696 696 // 697 // The blind pixel has exactly one cm^2 area (with negligible error), 698 // thus we omit division by 1. 697 // The blind pixel has exactly 100 mm^2 area (with negligible error), 699 698 // 700 fMeanFluxInsidePlexiglass = mean ;699 fMeanFluxInsidePlexiglass = mean*gkBlindPixelArea; 701 700 702 701 // Start calculation of number of photons relative Variance (!!) … … 741 740 742 741 *fLog << inf << endl; 743 *fLog << inf << " Photon flux [ph/ cm^2] inside Plexiglass: "742 *fLog << inf << " Photon flux [ph/mm^2] inside Plexiglass: " 744 743 << fMeanFluxInsidePlexiglass << endl; 745 744 … … 764 763 fMeanFluxErrInsidePlexiglass *= fMeanFluxInsidePlexiglass; 765 764 766 *fLog << inf << " Error on photon flux [ph/ cm^2] inside Plexiglass: "765 *fLog << inf << " Error on photon flux [ph/mm^2] inside Plexiglass: " 767 766 << fMeanFluxErrInsidePlexiglass << endl; 768 767 *fLog << inf << endl; … … 779 778 780 779 const Float_t charge = pix->GetCharge(); 781 const Float_t area = (*fGeomCam)[idx].GetA() /100.;780 const Float_t area = (*fGeomCam)[idx].GetA(); 782 781 const Float_t chargeerr = pix->GetErrCharge(); 783 782 … … 815 814 const Float_t merr = fPINDiode->GetErrCharge(); 816 815 817 // Start calculation of number of photons 818 fMeanFluxOutsidePlexiglass = mean * gkCalibrationFluxCameravsPINDiode; 816 // Start calculation of number of photons per mm^2 on the camera 817 fMeanFluxOutsidePlexiglass = mean * gkPINDiodeArea; 818 // Correct for the distance between camera and PIN Diode and for different areas. 819 fMeanFluxOutsidePlexiglass *= gkCalibrationFluxCameravsPINDiode; 819 820 820 821 // Start calculation of number of photons relative Variance (!!) … … 850 851 851 852 *fLog << inf << endl; 852 *fLog << inf << " Mean Photon flux [ph/ cm^2] outside Plexiglass: "853 *fLog << inf << " Mean Photon flux [ph/mm^2] outside Plexiglass: " 853 854 << fMeanFluxOutsidePlexiglass << endl; 854 855 … … 873 874 fMeanFluxErrOutsidePlexiglass *= fMeanFluxOutsidePlexiglass; 874 875 875 *fLog << inf << " Error on Photon flux [ph/ cm^2] outside Plexiglass: "876 *fLog << inf << " Error on Photon flux [ph/mm^2] outside Plexiglass: " 876 877 << fMeanFluxErrOutsidePlexiglass << endl; 877 878 *fLog << inf << endl; … … 888 889 889 890 const Float_t charge = pix->GetCharge(); 890 const Float_t area = (*fGeomCam)[idx].GetA() /100.;891 const Float_t area = (*fGeomCam)[idx].GetA(); 891 892 const Float_t chargeerr = pix->GetErrCharge(); 892 893 -
trunk/MagicSoft/Mars/mcalib/MCalibrationCam.h
r3075 r3077 23 23 static const Int_t gkBlindPixelId; 24 24 static const Int_t gkPINDiodeId; 25 static const Float_t gkBlindPixelArea; // The Blind Pixel area in mm^2 26 static const Float_t gkPINDiodeArea; // The Blind Pixel area in mm^2 25 27 26 28 Int_t fNumPixels; -
trunk/MagicSoft/Mars/mcalib/MCalibrationConfig.h
r3075 r3077 44 44 // Area of Inner Pixel w.r.t. PIN Diode (which is 1 cm²) 45 45 // 46 // Hexagone of diagonal axis b = 3.5 cm47 // straight axis a = 3.0 cm +- 2%48 // Area = sqrt(3)*a*a/2 = 7.79 sq.cm +- 4% = 7.8 +- 0.3 sq.cm49 //50 46 // Distance of PIN Diode to pulser D1: 1.5 +- 0.3 m 51 47 // Distance of Inner Pixel to pulser D2: 18.0 +- 0.5 m 52 48 // 53 49 // 54 // A(Inner Pixel)D1*D155 // conversion C = ------ -------- * ------ = 0.05456 // A(PIN Diode)D2*D250 // D1*D1 51 // conversion C = ------ = 0.0069 52 // D2*D2 57 53 // 58 // Delta C / C = sqrt((Delta A(IP)/A(IP))² + 4 *( (Delta D1/D1)² + (Delta D2/D2)² )54 // Delta C / C = 2 * Sqrt( (Delta D1/D1)² + (Delta D2/D2)² ) 59 55 // Delta C / C = 0.4 60 56 // 61 // C = 0.0 5 +- 0.0257 // C = 0.007 +- 0.003 62 58 // 63 const Float_t gkCalibrationFluxCameravsPINDiode = 0.0 5;64 const Float_t gkCalibrationFluxCameravsPINDiodeError = 0.0 2;59 const Float_t gkCalibrationFluxCameravsPINDiode = 0.007; 60 const Float_t gkCalibrationFluxCameravsPINDiodeError = 0.003; 65 61 66 62 // -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r3069 r3077 212 212 MHCamera disp7 (geomcam, "Cal;FFactorConv", "Conversion Factor (F-Factor Method)"); 213 213 MHCamera disp8 (geomcam, "Cal;FFactorFFactor", "Total F-Factor (F-Factor Method)"); 214 MHCamera disp9 (geomcam, "Cal;BlindPixPh", " Nr. of Photonsinside plexiglass (Blind Pixel Method)");214 MHCamera disp9 (geomcam, "Cal;BlindPixPh", "Photon flux inside plexiglass (Blind Pixel Method)"); 215 215 MHCamera disp10 (geomcam, "Cal;BlindPixConv", "Conversion Factor (Blind Pixel Method)"); 216 216 MHCamera disp11 (geomcam, "Cal;BlindPixFFactor","Total F-Factor (Blind Pixel Method)"); 217 MHCamera disp12 (geomcam, "Cal;PINDiodePh", " Nr. of Photonsoutside plexiglass (PIN Diode Method)");217 MHCamera disp12 (geomcam, "Cal;PINDiodePh", "Photons flux outside plexiglass (PIN Diode Method)"); 218 218 MHCamera disp13 (geomcam, "Cal;PINDiodeConv", "Conversion Factor (PIN Diode Method)"); 219 219 MHCamera disp14 (geomcam, "Cal;PINDiodeFFactor","Total F-Factor (PIN Diode Method)"); … … 284 284 disp8.SetYTitle("\\sqrt{N_{PhE}}*\\sigma_{Charge}/\\mu_{Charge} [1]"); 285 285 286 disp9.SetYTitle(" Nr. Photons [1]");286 disp9.SetYTitle("Photon flux [ph/mm^2]"); 287 287 disp10.SetYTitle("Conversion Factor [Phot/FADC Count]"); 288 288 disp11.SetYTitle("\\sqrt{N_{Ph}}*\\sigma_{Charge}/\\mu_{Charge} [1]"); 289 289 290 disp12.SetYTitle(" Nr. Photons [1]");290 disp12.SetYTitle("Photon flux [ph/mm^2]"); 291 291 disp13.SetYTitle("Conversion Factor [Phot/FADC Count]"); 292 292 disp14.SetYTitle("\\sqrt{N_{Ph}}*\\sigma_{Charge}/\\mu_{Charge} [1]");
Note:
See TracChangeset
for help on using the changeset viewer.