Changeset 768 for trunk/MagicSoft/Mars
- Timestamp:
- 04/24/01 11:22:42 (24 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/CT1Hillas.C
r716 r768 35 35 // Now setup the tasks and tasklist: 36 36 // 37 // 1) read in the data from a ct1 ascii file 38 // 2) clean the image 39 // 3) calculate hillas 40 // 4) fill the hillas into the histograms 37 // 1) read in the data from a ct1 ascii file MCTReadAscii 38 // 2) clean the image MImgCleanStd 39 // 3) calculate hillas MHillasCalc 40 // 4) fill the hillas into the histograms MFillHHillas 41 41 // 42 MCT1ReadAscii read; 43 read.AddFile("CT1_99_off1.dat"); 44 read.AddFile("CT1_99_off2.dat"); 42 MCT1ReadAscii read("data/MCCT1_97_ga45.dat"); 43 // read.AddFile("data/MCCT1_97_ga20.dat"); 45 44 46 45 MImgCleanStd clean; -
trunk/MagicSoft/Mars/macros/MagicHillas.C
r710 r768 38 38 // Now setup the tasks and tasklist: 39 39 // 40 // 1) read in the data from a ct1 ascii file40 // 1) read in the data from a magic root file MReadTree 41 41 // 2) clean the image 42 42 // 3) calculate hillas 43 43 // 4) fill the hillas into the histograms 44 44 // 45 MReadTree read("Events", "oscar_protons.root"); 46 read.AddFile("test.root"); 45 46 // 47 // The first argument is the tree you want to read. 48 // Events: Cosmic ray events 49 // PedEvents: Pedestal Events 50 // CalEvents: Calibration Events 51 // 52 MReadTree read("Events", "data/my_file.root"); 53 // read.AddFile("data/test.root"); 47 54 48 55 MCerPhotCalc ncalc; -
trunk/MagicSoft/Mars/mbase/MReadTree.cc
r760 r768 63 63 // 64 64 MReadTree::MReadTree(const char *tname, const char *fname, 65 const char *name, const char *title) 65 const char *name, const char *title) : fNumEntry(0) 66 66 { 67 67 *fName = name ? name : "MReadTree"; … … 131 131 132 132 // 133 // set pointer to first event134 //135 fNumEntry = 0;136 137 //138 133 // output logging information 139 134 // … … 200 195 // check for end of file 201 196 // 202 if (fNumEntry ==fNumEntries)197 if (fNumEntry>=fNumEntries) 203 198 return kFALSE; 204 199 … … 272 267 // this function makes Process() read event number nr next 273 268 // 269 // Remark: You can use this function to set the event number from which 270 // you want to start reading. 271 // 274 272 Bool_t MReadTree::SetEventNum(UInt_t nr) 275 273 {
Note:
See TracChangeset
for help on using the changeset viewer.