Ignore:
Timestamp:
03/27/01 15:52:41 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/BaseLinkDef.h

    r604 r705  
    44#pragma link off all classes;
    55#pragma link off all functions;
     6
     7#pragma link C++ global kCONTINUE;
     8#pragma link C++ global kGAMMA;
     9#pragma link C++ global kPROTON;
     10#pragma link C++ global kHELIUM;
     11#pragma link C++ global kOXIGEN;
     12#pragma link C++ global kIRON;
     13#pragma link C++ global kPI;
     14#pragma link C++ global kRad2Deg;
    615
    716#pragma link C++ global gLog;
  • trunk/MagicSoft/Mars/mbase/MLogManip.h

    r698 r705  
    5353//
    5454#ifndef __CINT__
    55 #define dbginf        __FILE__ << " l." << __LINE__ << ": "
     55#define dbginf      __FILE__ << " l." << __LINE__ << ": "
    5656#endif
    5757//
     
    6363//
    6464#ifndef __CINT__
    65 #define DEBUG(lvl)    flush << debug(lvl) << dbginf
     65#define DEBUG(lvl)  flush << debug(lvl) << dbginf
    6666#endif
    6767
  • trunk/MagicSoft/Mars/mbase/MParList.cc

    r698 r705  
    2121
    2222#include "MLog.h"
     23#include "MLogManip.h"
    2324
    2425ClassImp(MParList)
     
    9192  if (fContainer.FindObject(obj))
    9293  {
    93       *fLog << "WARNING: MParList::add: Container already added" << endl;
     94      *fLog << dbginf << "Container already added" << endl;
    9495      return kTRUE;
    9596  }
     
    103104      if (!fContainer.FindObject(where))
    104105      {
    105           *fLog << "ERROR: MParList::add: Cannot find parameter container after which the new one should be added!" << endl;
     106          *fLog << dbginf << "Cannot find parameter container after which the new one should be added!" << endl;
    106107          return kFALSE;
    107108      }
     
    139140    // if object is not existing in the list try to create one
    140141    //
    141     *fLog << "MParList::CreateObject - Warning: '" << name << "' not found... creating." << endl;
     142    *fLog << dbginf << "'" << name << "' not found... creating." << endl;
    142143
    143144    //
     
    151152        // if class is not existing in the root environment
    152153        //
    153         *fLog << "MParList::CreateObject - Warning: Class '" << name << "' not existing in dictionary." << endl;
     154        *fLog << dbginf << "Class '" << name << "' not existing in dictionary." << endl;
    154155        return NULL;
    155156    }
     
    175176  //   print some information about the current status of MParList
    176177  //
    177   *fLog << "ParList: " << this->GetName() << " <" << this->GetTitle() << ">" << endl;
     178  *fLog << dbginf << "ParList: " << this->GetName() << " <" << this->GetTitle() << ">" << endl;
    178179  *fLog << endl;
    179180 
  • trunk/MagicSoft/Mars/mbase/MReadTree.h

    r698 r705  
    77
    88class TFile;
    9 class TTree;
     9class TChain;
    1010
    1111class MReadTree : public MTask
     
    1313private:
    1414    TFile  *fFile;       // Pointer to file
    15     TTree  *fTree;       // Pointer to tree
     15    TChain *fChain;      // Pointer to tree
    1616
    1717    UInt_t  fNumEntry;   // Number of actual entry
    1818    UInt_t  fNumEntries; // Number of Events in Tree
    1919
    20     TString fFileName;   // Name of File
    21     TString fTreeName;   // Name of Tree
    22 
    2320public:
    24     MReadTree(const char *filename, const char *treename, const char *name=NULL, const char *title=NULL);
     21    MReadTree(const char *treename, const char *filename=NULL, const char *name=NULL, const char *title=NULL);
     22    ~MReadTree();
    2523
    2624    Bool_t PreProcess(MParList *pList);
    2725    Bool_t Process();
    2826    Bool_t PostProcess();
     27
     28    void AddFile(const char *fname);
    2929
    3030    Bool_t GetEvent() ;
     
    3333    Bool_t IncEventNum(UInt_t inc=1); // increase number of event (position in tree)
    3434    Bool_t SetEventNum(UInt_t nr);    // set number of event (position in tree)
    35     UInt_t GetEventNum() {return fNumEntry;}
    36     UInt_t GetEntries() {return fNumEntries;}
     35
     36    UInt_t GetEventNum() const { return fNumEntry;   }
     37    UInt_t GetEntries() const  { return fNumEntries; }
    3738
    3839    ClassDef(MReadTree, 0)      // Reads one tree
Note: See TracChangeset for help on using the changeset viewer.