- Timestamp:
- Mar 7, 2017, 4:47:10 PM (8 years ago)
- Children:
- bdf9e2e
- Parents:
- 8a4fba8
- git-author:
- Joschka Lingemann <joschka.lingemann@…> (03/07/17 16:42:04)
- git-committer:
- Joschka Lingemann <joschka.lingemann@…> (03/07/17 16:47:10)
- Location:
- external/ExRootAnalysis
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
external/ExRootAnalysis/ExRootTreeBranch.cc
r8a4fba8 re5ea42e 82 82 //------------------------------------------------------------------------------ 83 83 84 void ExRootTreeBranch::Clear( )84 void ExRootTreeBranch::Clear(Option_t *option) 85 85 { 86 86 fSize = 0; 87 if(fData) fData->Clear( );87 if(fData) fData->Clear(option); 88 88 } 89 89 -
external/ExRootAnalysis/ExRootTreeBranch.h
r8a4fba8 re5ea42e 24 24 25 25 TObject *NewEntry(); 26 v oid Clear();26 virtual void Clear(Option_t *option=""); 27 27 28 28 private: -
external/ExRootAnalysis/ExRootTreeWriter.cc
r8a4fba8 re5ea42e 59 59 //------------------------------------------------------------------------------ 60 60 61 void ExRootTreeWriter::Write() 61 Int_t ExRootTreeWriter::Write(const char *name, Int_t option, Int_t bufsize) const 62 62 { 63 fFile = fTree ? fTree->GetCurrentFile() : 0; 64 if(fFile) fFile->Write(); 63 if (fTree != 0) { 64 return fTree->GetCurrentFile()->Write(name, option, bufsize); 65 } 66 return 0; 65 67 } 66 68 67 69 //------------------------------------------------------------------------------ 68 70 69 void ExRootTreeWriter::Clear() 71 Int_t ExRootTreeWriter::Write(const char *name, Int_t option, Int_t bufsize) 72 { 73 // forward call to const version of this function 74 return static_cast<const ExRootTreeWriter*>(this)->Write(name, option, bufsize); 75 } 76 77 //------------------------------------------------------------------------------ 78 79 void ExRootTreeWriter::Clear(Option_t *option) 70 80 { 71 81 set<ExRootTreeBranch*>::iterator itBranches; 72 82 for(itBranches = fBranches.begin(); itBranches != fBranches.end(); ++itBranches) 73 83 { 74 (*itBranches)->Clear( );84 (*itBranches)->Clear(option); 75 85 } 76 86 } -
external/ExRootAnalysis/ExRootTreeWriter.h
r8a4fba8 re5ea42e 31 31 ExRootTreeBranch *NewBranch(const char *name, TClass *cl); 32 32 33 v oid Clear();33 virtual void Clear(Option_t *option = ""); 34 34 void Fill(); 35 void Write(); 35 virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0) const; 36 virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0); 36 37 37 38 private:
Note:
See TracChangeset
for help on using the changeset viewer.