Changeset 14728
- Timestamp:
- 12/05/12 10:11:08 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/marsmacros/mc2csv/MonteCarlo.C
r14727 r14728 19 19 mFileName = filename; 20 20 21 OpenRootFile();22 if ( ! mRootFileOpend) return;21 // open root file return if it cannot be opend 22 if ( !OpenRootFile() ) return; 23 23 24 24 LoadEventTree( "Events"); … … 39 39 mFileName = filename; 40 40 41 OpenRootFile();42 if ( ! mRootFileOpend) return;41 // open root file return if it cannot be opend 42 if ( !OpenRootFile() ) return; 43 43 44 44 LoadEventTree( evtsTreeName); … … 60 60 mFileName = filename; 61 61 62 OpenRootFile();63 if ( ! mRootFileOpend) return;62 // open root file return if it cannot be opend 63 if ( !OpenRootFile() ) return; 64 64 65 65 LoadEventTree( evtsTreeName); … … 156 156 // 157 157 158 void 158 int 159 159 MonteCarlo::OpenRootFile() 160 160 { … … 167 167 cout << "ERROR - Could not find file " << mFileName << endl; 168 168 mRootFileOpend =false; 169 return ;169 return 0; 170 170 } 171 171 mRootFileOpend = true; 172 172 173 return ;173 return 1; 174 174 } 175 175
Note:
See TracChangeset
for help on using the changeset viewer.