Changeset 4826 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 09/01/04 18:06:06 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mfileio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc
r4817 r4826 233 233 name += branch->GetName(); 234 234 235 *fLog << " " << name.Strip(TString::kTrailing, '.') << ": \t" << branch->GetEntries() << " entries." << endl;235 *fLog << " " << name.Strip(TString::kTrailing, '.') << ": \t" << (ULong_t)branch->GetEntries() << " entries." << endl; 236 236 } 237 237 … … 240 240 while ((t=(TTree*)NextTree())) 241 241 if (t->TestBit(kIsNewTree)) 242 *fLog << " " << t->GetName() << ": \t" << t->GetEntries() << " entries." << endl;242 *fLog << " " << t->GetName() << ": \t" << (ULong_t)t->GetEntries() << " entries." << endl; 243 243 *fLog << endl; 244 244 } … … 257 257 void MWriteRootFile::AddContainer(const char *cname, const char *tname, Bool_t must) 258 258 { 259 TIter Next(&fBranches); 260 TObject *o=0; 261 while ((o=Next())) 262 if (TString(o->GetName())==TString(tname) && TString(o->GetTitle())==TString(cname)) 263 { 264 *fLog << "WARNING - Container '" << cname << "' in Tree '" << tname << "' already scheduled... ignored." << endl; 265 return; 266 } 267 259 268 // 260 269 // create a new entry in the list of branches to write and … … 281 290 Bool_t must) 282 291 { 292 TIter Next(&fBranches); 293 TObject *o=0; 294 while ((o=Next())) 295 if (TString(o->GetName())==TString(tname) && 296 static_cast<MRootFileBranch*>(o)->GetContainer()==cont) 297 { 298 *fLog << "WARNING - Container " << cont << " in Tree '" << tname << "' already scheduled... ignored." << endl; 299 return; 300 } 301 283 302 // 284 303 // create a new entry in the list of branches to write and -
trunk/MagicSoft/Mars/mfileio/MWriteRootFile.h
r4698 r4826 23 23 24 24 MParContainer *fContainer; 25 TString fContName;26 25 27 26 Bool_t fMust; … … 37 36 { 38 37 Init(NULL, kFALSE); 39 f ContName = "";38 fTitle = ""; 40 39 } 41 40 … … 44 43 { 45 44 Init(tname, must); 46 f ContName = cname;45 fTitle = cname; 47 46 } 48 47 49 48 MRootFileBranch(MParContainer *cont, const char *tname=NULL, Bool_t must=kFALSE) 50 : fTree(NULL), fBranch(NULL), f ContName(""), fMust(0)49 : fTree(NULL), fBranch(NULL), fMust(0) 51 50 { 52 51 Init(tname, must); 52 fTitle = ""; 53 53 fContainer = cont; 54 54 } … … 58 58 void *GetAddress() { return &fContainer; } 59 59 TBranch *GetBranch() const { return fBranch; } 60 const char *GetContName() const { return f ContName; }60 const char *GetContName() const { return fTitle; } 61 61 Bool_t MustHave() const { return fMust; } 62 62
Note:
See TracChangeset
for help on using the changeset viewer.