- Timestamp:
- 09/27/05 17:11:09 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7368 r7369 32 32 * mmuon/MHMuonPar.[h,cc]: 33 33 - commented out old obsolete member function 34 - updated reference lines 34 35 35 36 * mmuon/MHSingleMuon.[h,cc]: … … 48 49 - replaced wrong calculation of size via integral by 49 50 new member function CalcSize 51 52 * datacenter/macros/fillstar.C: 53 - updated reference values 50 54 51 55 -
trunk/MagicSoft/Mars/datacenter/macros/fillstar.C
r7341 r7369 113 113 } 114 114 115 Float_t psf = (hmuon->GetMeanWidth() - 0.04816)/0.001294; 115 Float_t mw = hmuon->GetMeanWidth(); 116 Float_t psf = -194.031674+404.077598*mw-192.532597*mw*mw; 116 117 psf = TMath::Nint(psf*10)/10.; 117 118 TString PSF = Form("%5.1f", psf); 118 119 Int_t num = (int)hmuon->GetEntries(); 119 120 120 Float_t integralmc = -1.43*psf + 1035; 121 Float_t ratiodatamc = (hmuon->GetMeanSize()/integralmc)*100; 121 Float_t ratiodatamc = (hmuon->GetMeanSize()/9326.)*100; 122 122 TString ratio = Form("%5.1f", ratiodatamc); 123 123 -
trunk/MagicSoft/Mars/mmuon/MHMuonPar.cc
r7366 r7369 214 214 txt.SetTextColor(kBlue); 215 215 216 TF1 ref("RefShape100%", "573*x + 430", fgIntegralLoLim, fgIntegralUpLim); 216 TF1 ref("RefShape100%", "-254+1640*x-565*x*x", fgIntegralLoLim, fgIntegralUpLim); 217 // old: 573*x + 430 217 218 ref.SetLineColor(kBlue); 218 219 ref.SetLineWidth(1); … … 230 231 231 232 ref.SetName("RefShape12mm"); 232 ref.Compile("0.0 766*x*x - 0.250*x + 0.239");233 ref.Compile("0.0655*x*x - 0.226*x + 0.226"); 233 234 gROOT->GetListOfFunctions()->Remove(ref.DrawCopy("same")); 234 235 -
trunk/MagicSoft/Mars/mmuon/MHSingleMuon.cc
r7367 r7369 142 142 bins.Apply(fHistWidth); 143 143 144 bins.SetEdges(10 0, -10, 10);144 bins.SetEdges(101, -10, 10); 145 145 bins.Apply(fHistTime); 146 146 } … … 230 230 g1.SetParameter(0, fHistTime.GetMaximum()); 231 231 g1.SetParameter(1, 0); 232 g1.SetParameter(2, 0.3); 232 g1.SetParameter(2, 0.2); 233 233 234 g1.SetParLimits(1, -0.5, 0.5); 234 235 g1.SetParLimits(2, 0, 1); … … 261 262 } 262 263 } 264 263 265 // error estimation (temporaly) 264 266 // The error is estimated from the signal. In order to do so, we have to … … 505 507 */ 506 508 509 Float_t MHSingleMuon::CalcSize() const 510 { 511 const Int_t n = fHistPhi.GetNbinsX(); 512 513 Double_t sz=0; 514 for (Int_t i=1; i<=n; i++) 515 sz += fHistPhi.GetBinContent(i)*fHistPhi.GetBinEntries(i); 516 517 return sz; 518 } 519 507 520 void MHSingleMuon::Paint(Option_t *o) 508 521 { -
trunk/MagicSoft/Mars/mmuon/MHSingleMuon.h
r7367 r7369 43 43 const TProfile &GetHistWidth() const { return fHistWidth; } 44 44 45 Float_t CalcSize() const; 46 45 47 void Draw(Option_t *o=""); 46 48 void Paint(Option_t *o=""); -
trunk/MagicSoft/Mars/mmuon/MMuonCalibParCalc.cc
r7008 r7369 167 167 168 168 // Get Muon Size 169 fMuonCalibPar->SetMuonSize(fHist->GetHistPhi().Integral()); 169 //fMuonCalibPar->SetMuonSize(fHist->GetHistPhi().Integral()); 170 171 fMuonCalibPar->SetMuonSize(fHist->CalcSize()); 170 172 171 173 // Calculate ArcPhi -
trunk/MagicSoft/Mars/mmuon/MMuonSearchPar.cc
r7367 r7369 159 159 Int_t q=0; 160 160 161 Float_t mean=0;162 Float_t sq =0;161 Double_t mean=0; 162 Double_t sq =0; 163 163 164 164 for (int i=0; i<n; i++) 165 165 { 166 166 const MSignalPix &pix = evt[i]; 167 168 if (pix.IsPixelUsed()) 169 { 170 fSignal[p] = pix.GetNumPhotons(); 171 172 fX[p] = geom[i].GetX(); 173 fY[p] = geom[i].GetY(); 174 p++; 175 176 //timing 177 if (!pix.IsPixelCore()) 178 continue; 179 180 mean += pix.GetArrivalTime(); 181 sq += pix.GetArrivalTime()*pix.GetArrivalTime(); 182 q++; 183 } 167 if (!pix.IsPixelUsed()) 168 continue; 169 170 fSignal[p] = pix.GetNumPhotons(); 171 172 fX[p] = geom[i].GetX(); 173 fY[p] = geom[i].GetY(); 174 p++; 175 176 //timing 177 if (!pix.IsPixelCore()) 178 continue; 179 180 mean += pix.GetArrivalTime(); 181 sq += pix.GetArrivalTime()*pix.GetArrivalTime(); 182 q++; 184 183 } 185 184
Note:
See TracChangeset
for help on using the changeset viewer.