Changeset 7062 for trunk/MagicSoft/Mars/datacenter/macros/fillstar.C
- Timestamp:
- 05/19/05 14:49:32 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/fillstar.C
r7019 r7062 108 108 TString PSF = Form("%5.1f", psf); 109 109 110 TProfile *h2 = (TProfile*)arr.FindObjectInCanvas("SizeVsRadius", "TProfile", "MHMuonPar"); 111 if (!h1) 112 { 113 cout << "WARNING - Reading of SizeVsRadius failed." << endl; 114 return 0; 115 } 116 117 Float_t integral = h2->Integral(5, 14); 118 Float_t integralmc = -35.6*psf + 11000; 119 Float_t ratiodatamc = (integral/integralmc)*100; 120 TString ratio = Form("%5.1f", ratiodatamc); 121 122 110 123 TH1 *h = (TH1*)arr.FindObjectInCanvas("Islands", "TH1F", "MHImagePar"); 111 124 if (!h) … … 129 142 130 143 cout << "Sequence #" << seq << endl; 131 cout << " PSF [mm] " << Form("%5.1f", psf) << endl; 132 cout << " Island Quality " << Form("%5.1f", quality) << endl; 144 cout << " PSF [mm] " << Form("%5.1f", psf) << endl; 145 cout << " Island Quality " << Form("%5.1f", quality) << endl; 146 cout << " Ratio [%] " << Form("%5.1f", ratiodatamc) << endl; 133 147 134 148 TString query; … … 138 152 " fSequenceFirst=%d," 139 153 " fMeanNumberIslands=%s, " 154 " fRatio=%s, " 140 155 " fPSF=%s ", 141 seq, islands.Data(), PSF.Data());156 seq, islands.Data(), ratio.Data(), PSF.Data()); 142 157 } 143 158 else … … 145 160 query = Form("UPDATE MyMagic.Star SET" 146 161 " fMeanNumberIslands=%s, " 162 " fRatio=%s, " 147 163 " fPSF=%s " 148 164 " WHERE fSequenceFirst=%d ", 149 islands.Data(), PSF.Data(), seq);165 islands.Data(), ratio.Data(), PSF.Data(), seq); 150 166 } 151 167
Note:
See TracChangeset
for help on using the changeset viewer.