Changeset 7087 for trunk/MagicSoft/Mars
- Timestamp:
- 05/24/05 12:13:03 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7085 r7087 21 21 22 22 -*-*- END OF LINE -*-*- 23 2005/05/24 Daniela Dorner 24 25 * datacenter/macros/fillstar.C: 26 - added new parameters 27 28 * datacenter/macros/setupdb.C: 29 - added variables for the new parameters 30 31 32 23 33 2005/05/23 Daniela Dorner 24 34 -
trunk/MagicSoft/Mars/datacenter/macros/fillstar.C
r7084 r7087 39 39 ///////////////////////////////////////////////////////////////////////////// 40 40 #include <iostream> 41 #include <iomanip> 41 42 42 43 #include <TEnv.h> … … 113 114 psf = TMath::Nint(psf*10)/10.; 114 115 TString PSF = Form("%5.1f", psf); 116 Int_t num = (int)h1->GetEntries(); 115 117 116 118 TProfile *h2 = (TProfile*)arr.FindObjectInCanvas("SizeVsRadius", "TProfile", "MHMuonPar"); … … 138 140 TString islands = Form("%5.1f", quality); 139 141 142 h = (TH1*)arr.FindObjectInCanvas("EffOnTheta", "TH1D", "EffOnTime"); 143 if (!h) 144 { 145 cout << "WARNING - Reading of EffOnTime failed." << endl; 146 return kFALSE; 147 } 148 149 Float_t effon = h->Integral(); 150 Float_t rate = num/effon; 151 rate = TMath::Nint(rate*100)/100.; 152 TString muonrate = Form("%6.2f", rate); 153 Int_t effontime = TMath::Nint(effon); 154 140 155 TString sequence = fname(TRegexp("star[0-9]+[.]root$")); 141 156 if (sequence.IsNull()) … … 148 163 149 164 cout << "Sequence #" << seq << endl; 150 cout << " PSF [mm] " << Form("%5.1f", psf) << endl; 151 cout << " Island Quality " << Form("%5.1f", quality) << endl; 152 cout << " Ratio [%] " << Form("%5.1f", ratiodatamc) << endl; 165 cout << " PSF [mm] " << PSF << endl; 166 cout << " Island Quality " << islands << endl; 167 cout << " Ratio [%] " << ratio << endl; 168 cout << " Muon Number " << num << endl; 169 cout << " EffOnTime [s] " << effontime << endl; 170 cout << " Muon Rate [Hz] " << muonrate << endl; 153 171 154 172 TString query; … … 159 177 " fMeanNumberIslands=%s, " 160 178 " fRatio=%s, " 179 " fMuonNumber=%d, " 180 " fEffOnTime=%d, " 181 " fMuonRate=%s, " 161 182 " fPSF=%s ", 162 seq, islands.Data(), ratio.Data(), PSF.Data()); 183 seq, islands.Data(), ratio.Data(), 184 num, effontime, 185 muonrate.Data(), PSF.Data()); 163 186 } 164 187 else … … 167 190 " fMeanNumberIslands=%s, " 168 191 " fRatio=%s, " 192 " fMuonNumber=%d, " 193 " fEffOnTime=%d, " 194 " fMuonRate=%s, " 169 195 " fPSF=%s " 170 196 " WHERE fSequenceFirst=%d ", 171 islands.Data(), ratio.Data(), PSF.Data(), seq); 197 islands.Data(), ratio.Data(), 198 num, effontime, 199 muonrate.Data(), PSF.Data(), seq); 172 200 } 173 201 -
trunk/MagicSoft/Mars/datacenter/macros/setupdb.C
r7085 r7087 531 531 " fPSF FLOAT(5,1) NOT NULL," 532 532 " fRatio FLOAT(5,1) NOT NULL," 533 " fMuonRate FLOAT(6,2) NOT NULL," 534 " fMuonNumber INT UNSIGNED NOT NULL" 535 " fEffOnTime INT UNSIGNED NOT NULL" 533 536 " fLastUpdate TIMESTAMP" 534 537 ")"));
Note:
See TracChangeset
for help on using the changeset viewer.