Changeset 9041 for trunk/MagicSoft/Mars/mtools
- Timestamp:
- 07/25/08 15:17:20 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mtools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtools/MTFillMatrix.cc
r8907 r9041 76 76 // fill.WriteMatrices("myfile.root"); 77 77 // 78 // 79 // Task List execution 80 // ---------------------------------------------- 81 // 82 // The tasklist is excuted in the follwowing order: 83 // - fReader set by SetReader 84 // - fPreTasks in the order as set with the SetPreTask functions 85 // - fPreCuts in the order as set with the SetPreCut functions 86 // - Selection the event selection 87 // - fPostTasks in the order as set with the SetPostTask functions 88 // - Fill Matrix 89 // - Write output 90 // 78 91 ///////////////////////////////////////////////////////////////////////////// 79 92 #include "MTFillMatrix.h" … … 163 176 MTFillMatrix::MTFillMatrix(const char *name, const char *title) 164 177 : fReference(0), fReader(0), fDestMatrix1(0), fDestMatrix2(0), 165 fNumDestEvents1(0), fNumDestEvents2(0), fWriteFile1(0), fWriteFile2(0) 178 fNumDestEvents1(0), fNumDestEvents2(0), fNumMaxEvents(0), 179 fWriteFile1(0), fWriteFile2(0) 166 180 { 167 181 Init(name, title); … … 180 194 MTFillMatrix::MTFillMatrix(const MH3 *ref, const char *name, const char *title) 181 195 : fReference(0), fReader(0), fDestMatrix1(0), fDestMatrix2(0), 182 fNumDestEvents1(0), fNumDestEvents2(0), fWriteFile1(0), fWriteFile2(0) 196 fNumDestEvents1(0), fNumDestEvents2(0), fNumMaxEvents(0), 197 fWriteFile1(0), fWriteFile2(0) 183 198 { 184 199 Init(name, title); … … 413 428 evtloop.SetLogStream(fLog); 414 429 415 const Bool_t rc = evtloop.Eventloop( );430 const Bool_t rc = evtloop.Eventloop(fNumMaxEvents); 416 431 417 432 if (selector) -
trunk/MagicSoft/Mars/mtools/MTFillMatrix.h
r8644 r9041 27 27 Int_t fNumDestEvents2; 28 28 29 Int_t fNumMaxEvents; 30 29 31 MTask *fWriteFile1; 30 32 MTask *fWriteFile2; … … 52 54 fDestMatrix1 = matrix; 53 55 if (num>0) 54 fNumDestEvents1 = num;56 SetNumDestEvents1(num); 55 57 } 56 58 void SetWriteFile1(MTask *write, UInt_t num=0) … … 58 60 fWriteFile1 = write; 59 61 if (num>0) 60 fNumDestEvents1 = num; 61 } 62 void SetNumDestEvents1(UInt_t num) 63 { 64 fNumDestEvents1 = num; 62 SetNumDestEvents1(num); 65 63 } 66 64 void SetDestMatrix2(MHMatrix *matrix, UInt_t num=0) … … 68 66 fDestMatrix2 = matrix; 69 67 if (num>0) 70 fNumDestEvents2 = num;68 SetNumDestEvents2(num); 71 69 } 72 70 void SetWriteFile2(MTask *write, UInt_t num=0) … … 74 72 fWriteFile2 = write; 75 73 if (num>0) 76 fNumDestEvents2 = num;74 SetNumDestEvents2(num); 77 75 } 78 void SetNumDestEvents2(UInt_t num) 79 { 80 fNumDestEvents2 = num; 81 } 76 void SetNumDestEvents1(UInt_t num) { fNumDestEvents1 = num; } 77 void SetNumDestEvents2(UInt_t num) { fNumDestEvents2 = num; } 78 void SetMaxEvents(UInt_t num) { fNumMaxEvents = num; } 82 79 83 80 void SetReader(MRead *task) { fReader = task; }
Note:
See TracChangeset
for help on using the changeset viewer.