Ignore:
Timestamp:
02/19/03 13:47:29 (22 years ago)
Author:
wittek
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfilter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfilter/MFEventSelector.cc

    r1668 r1762  
    9494// the class description above.
    9595//
    96 MFEventSelector::MFEventSelector(const char *name, const char *title)
     96MFEventSelector::MFEventSelector(const char *name, const char *title,
     97                                 const char *read)
    9798: fNumTotalEvts(-1), fNumSelectEvts(-1), fSelRatio(-1), fNumSelectedEvts(0)
    9899{
    99100    fName  = name  ? name  : gsDefName.Data();
    100101    fTitle = title ? title : gsDefTitle.Data();
     102
     103    fRead = read;
    101104}
    102105
     
    127130            return kFALSE;
    128131        }
    129         MRead *read = (MRead*)tlist->FindObject("MRead");
     132        MRead *read = (MRead*)tlist->FindObject(fRead);
    130133        if (!read)
    131134        {
     
    134137        }
    135138        fNumTotalEvts = read->GetEntries();
     139
     140        *fLog << "MFEventSelector::PreProcess; fNumTotalEvts = "
     141              << fNumTotalEvts << endl;
    136142
    137143        SetBit(kNumTotalFromFile);
  • trunk/MagicSoft/Mars/mfilter/MFEventSelector.h

    r1668 r1762  
    2424
    2525    Bool_t  fResult;
     26    TString fRead;
    2627
    2728    void StreamPrimitive(ofstream &out) const;
     
    3839public:
    3940    // MFEventSelector();
    40     MFEventSelector(const char *name=NULL, const char *title=NULL);
     41    MFEventSelector(const char *name=NULL, const char *title=NULL,
     42                    const char *read="MRead");
    4143    ~MFEventSelector();
    4244
Note: See TracChangeset for help on using the changeset viewer.