- Timestamp:
- 11/16/05 16:01:44 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7403 r7405 18 18 19 19 -*-*- END OF LINE -*-*- 20 2005/11/15 Daniela Dorner 21 22 * datacenter/macros/fillstar.C, setupdb.C: 23 - added new variable fInhomogeneity 24 25 26 20 27 2005/11/15 Thomas Bretz 21 28 -
trunk/MagicSoft/Mars/datacenter/macros/fillstar.C
r7382 r7405 45 45 46 46 #include <TH1.h> 47 #include <TH2.h> 47 48 #include <TGraph.h> 48 49 #include <TProfile.h> … … 106 107 } 107 108 109 TH2F *hcog = (TH2F*)arr.FindObjectInCanvas("Center", "TH2F", "MHHillas"); 110 if (!hcog) 111 { 112 cout << "WARNING - Reading of MHHillas failed." << endl; 113 return 0; 114 } 115 108 116 MHMuonPar *hmuon = (MHMuonPar*)arr.FindObjectInCanvas("MHMuonPar", "MHMuonPar", "MHMuonPar"); 109 117 if (!hmuon) … … 112 120 return 0; 113 121 } 122 123 Double_t val[6]; 124 for (int x=1; x<hcog->GetNbinsX(); x++) 125 for (int y=1; y<hcog->GetNbinsY(); y++) 126 { 127 Stat_t px = hcog->GetXaxis()->GetBinCenter(x); 128 Stat_t py = hcog->GetYaxis()->GetBinCenter(y); 129 Int_t i = (TMath::Nint(3*TMath::ATan2(px,py)/TMath::Pi())+6)%6; 130 val[i] += hcog->GetBinContent(x, y); 131 } 132 133 Double_t inhom = TMath::RMS(6, val)*6/hcog->GetEntries()*100; 134 inhom = TMath::Nint(inhom*10)/10.; 135 TString inhomogen = Form("%5.1f", inhom); 114 136 115 137 Float_t mw = hmuon->GetMeanWidth(); … … 177 199 178 200 cout << "Sequence #" << seq << endl; 201 cout << " Inhomogeneity " << inhomogen << endl; 179 202 cout << " PSF [mm] " << PSF << endl; 180 203 cout << " Island Quality " << islands << endl; … … 199 222 " fPSF=%s, " 200 223 " fDataRate=%d, " 201 " fMaxHumidity=%s ", 224 " fMaxHumidity=%s ," 225 " fInhomogeneity=%s ", 202 226 seq, islands.Data(), ratio.Data(), 203 227 num, effontime, 204 228 muonrate.Data(), PSF.Data(), 205 datarate, maxhum.Data()); 229 datarate, maxhum.Data(), 230 inhomogen.Data()); 206 231 } 207 232 else … … 215 240 " fPSF=%s, " 216 241 " fDataRate=%d, " 217 " fMaxHumidity=%s " 242 " fMaxHumidity=%s, " 243 " fInhomogeneity=%s " 218 244 " WHERE fSequenceFirst=%d ", 219 245 islands.Data(), ratio.Data(), 220 246 num, effontime, 221 247 muonrate.Data(), PSF.Data(), 222 datarate, maxhum.Data(), seq); 248 datarate, maxhum.Data(), 249 inhomogen.Data(), seq); 223 250 } 224 251 -
trunk/MagicSoft/Mars/datacenter/macros/setupdb.C
r7394 r7405 565 565 " fDataRate INT UNSIGNED NOT NULL," 566 566 " fMaxHumidity FLOAT(6,1) NOT NULL," 567 " fInhomogeneity FLOAT(5,1) NOT NULL," 567 568 " fLastUpdate TIMESTAMP" 568 569 ")"));
Note:
See TracChangeset
for help on using the changeset viewer.