Changeset e5ea42e in git
- 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)
- Files:
-
- 6 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: -
modules/Delphes.cc
r8a4fba8 re5ea42e 89 89 //------------------------------------------------------------------------------ 90 90 91 void Delphes::Clear( )91 void Delphes::Clear(Option_t* option) 92 92 { 93 if(fFactory) fFactory->Clear( );93 if(fFactory) fFactory->Clear(option); 94 94 } 95 95 -
modules/Delphes.h
r8a4fba8 re5ea42e 49 49 DelphesFactory *GetFactory() const { return fFactory; } 50 50 51 v oid Clear();51 virtual void Clear(Option_t* option = ""); 52 52 53 53 virtual void Init();
Note:
See TracChangeset
for help on using the changeset viewer.