Changeset 18568
- Timestamp:
- 09/03/16 20:39:51 (8 years ago)
- Location:
- trunk/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mbase/MParameters.cc
r9268 r18568 40 40 41 41 #include <fstream> 42 43 #include "fits.h" 42 44 43 45 #include "MLog.h" … … 156 158 return rc; 157 159 } 160 161 Bool_t MParameterD::SetupFits(fits &fin) 162 { 163 return fin.SetRefAddress(Form("%s.fVal", fName.Data()), fVal); 164 } 165 166 Bool_t MParameterDerr::SetupFits(fits &fin) 167 { 168 if (!fin.SetRefAddress(Form("%s.fErr", fName.Data()), fErr)) 169 return kFALSE; 170 return MParameterD::SetupFits(fin); 171 } 172 173 Bool_t MParameterI::SetupFits(fits &fin) 174 { 175 return fin.SetRefAddress(Form("%s.fVal", fName.Data()), fVal); 176 } -
trunk/Mars/mbase/MParameters.h
r9268 r18568 21 21 22 22 void Print(Option_t *o="") const; 23 Bool_t SetupFits(fits &fin); 23 24 24 25 Double_t *GetPtr() { return &fVal; } … … 42 43 43 44 void Print(Option_t *o="") const; 45 Bool_t SetupFits(fits &fin); 44 46 45 47 ClassDef(MParameterDerr, 2) // Container to hold a generalized parameters (double) and its Error … … 60 62 61 63 void Print(Option_t *o="") const; 64 Bool_t SetupFits(fits &fin); 62 65 63 66 Int_t *GetPtr() { return &fVal; }
Note:
See TracChangeset
for help on using the changeset viewer.