Changeset 3962 for trunk/MagicSoft/Mars/msignal/MExtractPINDiode.cc
- Timestamp:
- 05/04/04 17:29:39 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractPINDiode.cc
r3951 r3962 41 41 ////////////////////////////////////////////////////////////////////////////// 42 42 #include "MExtractPINDiode.h" 43 #include "MExtractor.h"44 43 45 44 #include <fstream> … … 278 277 } 279 278 280 // --------------------------------------------------------------------------281 //282 // Implementation of SavePrimitive. Used to write the call to a constructor283 // to a macro. In the original root implementation it is used to write284 // gui elements to a macro-file.285 //286 void MExtractPINDiode::StreamPrimitive(ofstream &out) const287 {288 out << " " << ClassName() << " " << GetUniqueName() << "(\"";289 out << "\"" << fName << "\", \"" << fTitle << "\");" << endl;290 291 if (fSaturationLimit!=fgSaturationLimit)292 {293 out << " " << GetUniqueName() << ".SetSaturationLimit(";294 out << (int)fSaturationLimit << ");" << endl;295 }296 297 const Bool_t arg2 = fNumSamples+fHiGainFirst-1 != fgLoGainLast;298 const Bool_t arg1 = arg2 || fHiGainFirst != fgHiGainFirst;299 300 if (!arg1)301 return;302 303 out << " " << GetUniqueName() << ".SetRange(";304 out << (int)fHiGainFirst;305 if (arg2)306 out << ", " << (int)(fNumSamples+fHiGainFirst-1);307 out << ");" << endl;308 }
Note:
See TracChangeset
for help on using the changeset viewer.