Changeset 2377 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 10/04/03 12:47:13 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mfileio
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MReadCurrents.cc
r2206 r2377 24 24 25 25 ///////////////////////////////////////////////////////////////////////////// 26 // //27 // MReadCurrents //28 // //29 // Input Containers: //30 // -/- //31 // //32 // Output Containers: //33 // MCerPhotEvt //34 // //26 // 27 // MReadCurrents 28 // 29 // Input Containers: 30 // -/- 31 // 32 // Output Containers: 33 // MCerPhotEvt 34 // 35 35 ///////////////////////////////////////////////////////////////////////////// 36 36 #include "MReadCurrents.h" … … 63 63 const char *name, 64 64 const char *title) 65 : fIn(NULL) 65 : fIn(NULL), fNumPixel(577) 66 66 { 67 67 fName = name ? name : "MReadCurrents"; … … 225 225 fTime->SetTime(h, m, s, ms*1000000); 226 226 227 for (int i=0; i< 577; i++)227 for (int i=0; i<fNumPixel; i++) 228 228 *fIn >> (*fCurrents)[i]; 229 229 -
trunk/MagicSoft/Mars/mfileio/MReadCurrents.h
r2206 r2377 18 18 TList *fFileNames; // Array which stores the \0-terminated filenames 19 19 20 Int_t fNumPixel; 21 20 22 Bool_t OpenNextFile(); 21 23 … … 32 34 Int_t Process(); 33 35 36 void SetNumPixel(Int_t i) { fNumPixel=i; } 37 34 38 ClassDef(MReadCurrents, 0) // Reads a Central Control currents file 35 39 }; -
trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc
r2173 r2377 96 96 //fTrees.SetOwner(); 97 97 98 TString str(fname); 99 if (!str.EndsWith(".root", TString::kIgnoreCase)) 100 str += ".root"; 101 98 102 // 99 103 // Open the rootfile 100 104 // 101 fOut = new TFile( fname, opt, ftitle, comp);105 fOut = new TFile(str, opt, ftitle, comp); 102 106 } 103 107
Note:
See TracChangeset
for help on using the changeset viewer.