Changeset 705 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 03/27/01 15:52:41 (24 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/BaseLinkDef.h
r604 r705 4 4 #pragma link off all classes; 5 5 #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; 6 15 7 16 #pragma link C++ global gLog; -
trunk/MagicSoft/Mars/mbase/MLogManip.h
r698 r705 53 53 // 54 54 #ifndef __CINT__ 55 #define dbginf 55 #define dbginf __FILE__ << " l." << __LINE__ << ": " 56 56 #endif 57 57 // … … 63 63 // 64 64 #ifndef __CINT__ 65 #define DEBUG(lvl) 65 #define DEBUG(lvl) flush << debug(lvl) << dbginf 66 66 #endif 67 67 -
trunk/MagicSoft/Mars/mbase/MParList.cc
r698 r705 21 21 22 22 #include "MLog.h" 23 #include "MLogManip.h" 23 24 24 25 ClassImp(MParList) … … 91 92 if (fContainer.FindObject(obj)) 92 93 { 93 *fLog << "WARNING: MParList::add:Container already added" << endl;94 *fLog << dbginf << "Container already added" << endl; 94 95 return kTRUE; 95 96 } … … 103 104 if (!fContainer.FindObject(where)) 104 105 { 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; 106 107 return kFALSE; 107 108 } … … 139 140 // if object is not existing in the list try to create one 140 141 // 141 *fLog << "MParList::CreateObject - Warning:'" << name << "' not found... creating." << endl;142 *fLog << dbginf << "'" << name << "' not found... creating." << endl; 142 143 143 144 // … … 151 152 // if class is not existing in the root environment 152 153 // 153 *fLog << "MParList::CreateObject - Warning:Class '" << name << "' not existing in dictionary." << endl;154 *fLog << dbginf << "Class '" << name << "' not existing in dictionary." << endl; 154 155 return NULL; 155 156 } … … 175 176 // print some information about the current status of MParList 176 177 // 177 *fLog << "ParList: " << this->GetName() << " <" << this->GetTitle() << ">" << endl;178 *fLog << dbginf << "ParList: " << this->GetName() << " <" << this->GetTitle() << ">" << endl; 178 179 *fLog << endl; 179 180 -
trunk/MagicSoft/Mars/mbase/MReadTree.h
r698 r705 7 7 8 8 class TFile; 9 class T Tree;9 class TChain; 10 10 11 11 class MReadTree : public MTask … … 13 13 private: 14 14 TFile *fFile; // Pointer to file 15 T Tree *fTree;// Pointer to tree15 TChain *fChain; // Pointer to tree 16 16 17 17 UInt_t fNumEntry; // Number of actual entry 18 18 UInt_t fNumEntries; // Number of Events in Tree 19 19 20 TString fFileName; // Name of File21 TString fTreeName; // Name of Tree22 23 20 public: 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(); 25 23 26 24 Bool_t PreProcess(MParList *pList); 27 25 Bool_t Process(); 28 26 Bool_t PostProcess(); 27 28 void AddFile(const char *fname); 29 29 30 30 Bool_t GetEvent() ; … … 33 33 Bool_t IncEventNum(UInt_t inc=1); // increase number of event (position in tree) 34 34 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; } 37 38 38 39 ClassDef(MReadTree, 0) // Reads one tree
Note:
See TracChangeset
for help on using the changeset viewer.