Changeset 7062 for trunk/MagicSoft/Mars
- Timestamp:
- 05/19/05 14:49:32 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7061 r7062 21 21 22 22 -*-*- END OF LINE -*-*- 23 2005/05/19 Daniela Dorner 24 25 * datacenter/macros/fillstar.C: 26 - add new parameter 27 28 * datacenter/macros/setupdb.C: 29 - adapted to new column in db 30 31 32 23 33 2005/05/19 Thomas Bretz 24 34 -
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 -
trunk/MagicSoft/Mars/datacenter/macros/setupdb.C
r7042 r7062 530 530 " fMeanNumberIslands FLOAT(5,1) NOT NULL," 531 531 " fPSF FLOAT(5,1) NOT NULL," 532 " fRatio FLOAT(5,1) NOT NULL," 532 533 " fLastUpdate TIMESTAMP" 533 534 ")"));
Note:
See TracChangeset
for help on using the changeset viewer.