Ignore:
Timestamp:
05/04/04 17:29:39 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MExtractPINDiode.cc

    r3951 r3962  
    4141//////////////////////////////////////////////////////////////////////////////
    4242#include "MExtractPINDiode.h"
    43 #include "MExtractor.h"
    4443
    4544#include <fstream>
     
    278277}
    279278
    280 // --------------------------------------------------------------------------
    281 //
    282 // Implementation of SavePrimitive. Used to write the call to a constructor
    283 // to a macro. In the original root implementation it is used to write
    284 // gui elements to a macro-file.
    285 //
    286 void MExtractPINDiode::StreamPrimitive(ofstream &out) const
    287 {
    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.