Ignore:
Timestamp:
04/12/05 17:05:49 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfbase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfbase/MF.cc

    r6905 r6932  
    106106// Default Constructor. Don't use.
    107107//
    108 MF::MF() : fF(NULL)
     108MF::MF() : fF(NULL), fAllowEmpty(kFALSE)
    109109{
    110110    fName  = gsDefName.Data();
     
    117117// the class description above.
    118118//
    119 MF::MF(const char *text, const char *name, const char *title)
     119MF::MF(const char *text, const char *name, const char *title) : fAllowEmpty(kFALSE)
    120120{
    121121    fName  = name  ? name  : gsDefName.Data();
  • trunk/MagicSoft/Mars/mfbase/MF.h

    r5911 r6932  
    2121    static const TString gsDefTitle; //!
    2222
    23     MFilter *fF; // Filter
     23    MFilter *fF;                     // Filter
     24    Bool_t fAllowEmpty;              // Not a Bit to be stored
    2425
    2526    Int_t IsRule(TString &txt, TString &rule) const;
     
    3233    void StreamPrimitive(ofstream &out) const;
    3334
    34     enum { kAllowEmpty = BIT(14) };
    35 
    3635public:
    3736    MF();
     
    4039
    4140    // MF
    42     void SetAllowEmpty(Bool_t b=kTRUE) { b ? SetBit(kAllowEmpty) : ResetBit(kAllowEmpty); }
    43     Bool_t IsAllowEmpty() const { return TestBit(kAllowEmpty); }
     41    void SetAllowEmpty(Bool_t b=kTRUE) { fAllowEmpty = b; }
     42    Bool_t IsAllowEmpty() const { return fAllowEmpty; }
    4443
    4544    // MFilter
     
    6160    Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE);
    6261
    63     ClassDef(MF, 0) // A Filter for cuts in any data member
     62    ClassDef(MF, 1) // A Filter for cuts in any data member
    6463};
    6564
Note: See TracChangeset for help on using the changeset viewer.