Changeset 8625 for trunk/MagicSoft/Mars/mmuon
- Timestamp:
- 06/29/07 13:34:23 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mmuon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmuon/MHSingleMuon.cc
r8117 r8625 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHSingleMuon.cc,v 1.1 4 2006-10-18 10:35:52tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHSingleMuon.cc,v 1.15 2007-06-29 12:29:47 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 144 144 bins.Apply(fHistWidth); 145 145 146 bins.SetEdges(101, - 10, 10);146 bins.SetEdges(101, -33, 33); // +/- 33ns 147 147 bins.Apply(fHistTime); 148 148 } … … 221 221 222 222 // use only the inner pixles. FIXME: This is geometry dependent 223 if( i>397)223 if(gpix.GetAidx()>0) 224 224 continue; 225 225 … … 227 227 } 228 228 // Setup the function and perform the fit 229 TF1 g1("g1", "gaus" , -10, 10);229 TF1 g1("g1", "gaus");//, -fHistTime.GetXmin(), fHistTime.GetXmax()); 230 230 231 231 // Choose starting values as accurate as possible 232 232 g1.SetParameter(0, fHistTime.GetMaximum()); 233 233 g1.SetParameter(1, 0); 234 g1.SetParameter(2, 0.2); 235 236 g1.SetParLimits(1, -0.5, 0.5); 237 g1.SetParLimits(2, 0, 1); 234 g1.SetParameter(2, 0.7); // FIXME! GetRMS instead??? 235 236 // According to fMuonSearchPar->GetTimeRMS() identified muons 237 // do not have an arrival time rms>3 238 g1.SetParLimits(1, -1.7, 1.7); 239 g1.SetParLimits(2, 0, 3.4); 240 238 241 // options : N do not store the function, do not draw 239 242 // I use integral of function in bin rather than value at bin center 240 243 // R use the range specified in the function range 241 244 // Q quiet mode 242 fHistTime.Fit(&g1, "QN RB");245 fHistTime.Fit(&g1, "QNB"); 243 246 244 247 // Double_t err; -
trunk/MagicSoft/Mars/mmuon/MMuonSearchPar.cc
r8535 r8625 197 197 // ----------------- Setup and call minuit ------------------- 198 198 const Float_t delta = 30.; // 3 mm (1/10 of an inner pixel size) Step to move. 199 const Double_t r = geom.GetMaxRadius()*2;199 //const Double_t r = geom.GetMaxRadius()*2; 200 200 201 201 // Save gMinuit … … 207 207 minuit.Command("set nowarn"); // Switch off warning 208 208 // Define Parameters 209 minuit.DefineParameter(0, "x", x, delta, -r, r);210 minuit.DefineParameter(1, "y", y, delta, -r, r);209 minuit.DefineParameter(0, "x", x, delta, 0, 0);//-r, r); 210 minuit.DefineParameter(1, "y", y, delta, 0, 0);//-r, r); 211 211 minuit.DefineParameter(2, "r", 0, 1, 0, 0); 212 212 minuit.DefineParameter(3, "sigma", 0, 1, 0, 0); -
trunk/MagicSoft/Mars/mmuon/MMuonSearchPar.h
r7367 r8625 42 42 Float_t GetCenterX() const { return fCenterX; } 43 43 Float_t GetCenterY() const { return fCenterY; } 44 Float_t GetDist() const { return TMath::Hypot(fCenterX, fCenterY); } 44 45 Float_t GetTime() const { return fTime; } 45 46 Float_t GetTimeRms() const { return fTimeRms; }
Note:
See TracChangeset
for help on using the changeset viewer.