Changeset 7418 for trunk/MagicSoft
- Timestamp:
- 11/22/05 10:25:49 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7414 r7418 18 18 19 19 -*-*- END OF LINE -*-*- 20 2005/11/22 Thomas Bretz 21 22 * macros/train/traindisp.C: 23 - added a comment 24 25 * mdata/MDataFormula.cc: 26 - fixed along outstanding bug. Because TFormula had no name 27 some axis tick marks disappeared randomly 28 - fixed a typo (Add instead of Remove) 29 30 * mfbase/MFEventSelector.cc: 31 - also reset fSelRatio if totalnumber of events from file. 32 33 34 20 35 2005/11/21 Thomas Bretz 21 36 -
trunk/MagicSoft/Mars/NEWS
r7414 r7418 2 2 3 3 *** Version <cvs> 4 5 - general: Fixed a long outstanding bug which made axis tick marks 6 disappear if MDataFormula was used (eg. abs(x)) 4 7 5 8 - general: Updated MMath with new functions to calculate the results of -
trunk/MagicSoft/Mars/macros/train/traindisp.C
r7413 r7418 60 60 opt.AddPreCut("MHillasSrc.fDCA*MGeomCam.fConvMm2Deg<0.3"); 61 61 62 // The number is the number of events read from the file 63 // randomly and is the number of events before cuts 62 64 opt.Train("rf-disp.root", set, 30000); 63 65 } -
trunk/MagicSoft/Mars/mdata/MDataFormula.cc
r6949 r7418 139 139 140 140 fFormula = new TFormula; 141 142 //Must have a name otherwise all axis label disappear like a miracle 143 fFormula->SetName(fName); 144 141 145 if (fFormula->Compile(txt)) 142 146 { … … 172 176 173 177 fFormula = f ? (TFormula*)f->Clone() : 0; 174 gROOT->GetListOfFunctions()-> Add(fFormula);178 gROOT->GetListOfFunctions()->Remove(fFormula); 175 179 176 180 fMembers.SetOwner(); -
trunk/MagicSoft/Mars/mfbase/MFEventSelector.cc
r3330 r7418 169 169 fResult = gRandom->Uniform() < fSelRatio; 170 170 171 if (!fResult) 172 return kTRUE; 173 174 fNumSelectedEvts++; 171 if (fResult) 172 fNumSelectedEvts++; 173 175 174 return kTRUE; 176 175 } … … 201 200 //--------------------------------- 202 201 if (TestBit(kNumTotalFromFile)) 202 { 203 203 fNumTotalEvts = -1; 204 if (fNumSelectEvts>0) 205 fSelRatio = -1; 206 } 204 207 205 208 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.