Changeset 2173 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 06/13/03 16:42:37 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mfileio
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MCT1ReadAscii.cc
r2138 r2173 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 19 ! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)20 ! 21 ! Copyright: MAGIC Software Development, 2000-200 218 ! Author(s): Thomas Bretz, 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 ! Author(s): Harald Kornmayer, 1/2001 20 ! 21 ! Copyright: MAGIC Software Development, 2000-2003 22 22 ! 23 23 ! … … 41 41 #include "MCT1ReadAscii.h" 42 42 43 #include <fstream .h>43 #include <fstream> 44 44 45 45 #include <TList.h> … … 56 56 57 57 ClassImp(MCT1ReadAscii); 58 59 using namespace std; 58 60 59 61 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc
r2152 r2173 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 11/2002 <mailto:tbretz@astro.uni-wuerzburg.de>18 ! Author(s): Thomas Bretz, 11/2002 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 20 ! Copyright: MAGIC Software Development, 2000-2003 … … 47 47 #include "MCT1ReadPreProc.h" 48 48 49 #include <fstream .h>49 #include <fstream> 50 50 51 51 #include <TList.h> … … 85 85 86 86 ClassImp(MCT1ReadPreProc); 87 88 using namespace std; 87 89 88 90 // -------------------------------------------------------------------------- … … 469 471 } 470 472 471 fIn->read(( Byte_t*)&outpars, sizeof(struct outputpars));473 fIn->read((char*)&outpars, sizeof(struct outputpars)); 472 474 473 475 ProcessRunHeader(outpars); … … 509 511 510 512 struct filterresults filterres; 511 fIn->read(( Byte_t*)&filterres, sizeof(struct filterresults));513 fIn->read((char*)&filterres, sizeof(struct filterresults)); 512 514 /* 513 515 int imax_alt_arcs; // maximum altitude reached during the run … … 996 998 0, /* uiPco */ 997 999 0, /* uiPelS */ 998 fIsMcFile ? event.fmcsize_phel : 0, /* uiPelC, Simulated SIZE */1000 (int)(fIsMcFile ? event.fmcsize_phel : 0), /* uiPelC, Simulated SIZE */ 999 1001 0, /* elec */ 1000 1002 0, /* muon */ … … 1134 1136 1135 1137 // read the eventrecord from the file 1136 fIn->read(( Byte_t*)&event, sizeof(struct eventrecord));1138 fIn->read((char*)&event, sizeof(struct eventrecord)); 1137 1139 1138 1140 switch (ProcessEvent(event)) -
trunk/MagicSoft/Mars/mfileio/MChain.cc
r1583 r2173 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 18 ! Author(s): Thomas Bretz, 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 220 ! Copyright: MAGIC Software Development, 2000-2003 21 21 ! 22 22 ! -
trunk/MagicSoft/Mars/mfileio/MChain.h
r1664 r2173 15 15 MChain(const char *name, const char *title="") : TChain(name, title), fNotified(kFALSE) {} 16 16 17 void ResetTree() { fTree = 0; }17 void ResetTree() { fTree = 0; fTreeNumber = -1; } 18 18 19 19 virtual Bool_t Notify() { fNotified = kTRUE; return kTRUE; } -
trunk/MagicSoft/Mars/mfileio/MRead.cc
r2117 r2173 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 18 ! Author(s): Thomas Bretz, 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 220 ! Copyright: MAGIC Software Development, 2000-2003 21 21 ! 22 22 ! … … 41 41 42 42 ClassImp(MRead); 43 44 using namespace std; 43 45 44 46 Bool_t MRead::Rewind() -
trunk/MagicSoft/Mars/mfileio/MReadCurrents.cc
r2161 r2173 37 37 38 38 #include <stdlib.h> // atoi 39 #include <fstream .h>39 #include <fstream> 40 40 41 41 #include <TList.h> … … 51 51 52 52 ClassImp(MReadCurrents); 53 54 using namespace std; 53 55 54 56 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mfileio/MReadMarsFile.cc
r2123 r2173 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 218 ! Author(s): Thomas Bretz, 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 ! 20 ! Copyright: MAGIC Software Development, 2000-2003 21 21 ! 22 22 ! … … 33 33 // // 34 34 ///////////////////////////////////////////////////////////////////////////// 35 36 35 #include "MReadMarsFile.h" 37 36 … … 48 47 49 48 ClassImp(MReadMarsFile); 49 50 using namespace std; 50 51 51 52 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mfileio/MReadRflFile.cc
r2136 r2173 32 32 #include "MReadRflFile.h" 33 33 34 #include <fstream .h>34 #include <fstream> 35 35 36 36 #include <TSystem.h> … … 47 47 48 48 ClassImp(MReadRflFile); 49 50 using namespace std; 49 51 50 52 // ------------------------------------------------ … … 70 72 { 71 73 RflEventHeader_old revth; 72 fIn->read( &revth, sizeof(RflEventHeader_old));73 fEvtHeader->SetEvtNumber( revth.EvtNumber);74 fIn->read((char*)&revth, sizeof(RflEventHeader_old)); 75 fEvtHeader->SetEvtNumber((int)revth.EvtNumber); 74 76 // *fLog << "Event Number: " << revth.EvtNumber; 75 77 // *fLog << " Primary ID: " << revth.PrimaryID; … … 80 82 { 81 83 RflEventHeader revth; 82 fIn->read( &revth, sizeof(RflEventHeader));83 fEvtHeader->SetEvtNumber( revth.EvtNumber);84 fIn->read((char*)&revth, sizeof(RflEventHeader)); 85 fEvtHeader->SetEvtNumber((int)revth.EvtNumber); 84 86 // *fLog << "Event Number: " << revth.EvtNumber; 85 87 // *fLog << " Primary ID: " << revth.PrimaryID; … … 178 180 { 179 181 RflRunHeader rrunh; 180 fIn->read( &rrunh, sizeof(RflRunHeader));182 fIn->read((char*)&rrunh, sizeof(RflRunHeader)); 181 183 if (*fIn) 182 184 { 183 185 *fLog << inf << "FIXME: Call ReInit" << endl; 184 186 185 fRunHeader->SetRunNumber( rrunh.RunNumber);187 fRunHeader->SetRunNumber((int)rrunh.RunNumber); 186 188 *fLog << underline << "RunHeader:" << endl; 187 189 *fLog << " Run Number: " << rrunh.RunNumber << endl; -
trunk/MagicSoft/Mars/mfileio/MReadTree.cc
r2130 r2173 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 18 ! Author(s): Thomas Bretz, 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 220 ! Copyright: MAGIC Software Development, 2000-2003 21 21 ! 22 22 ! … … 51 51 #include "MReadTree.h" 52 52 53 #include <fstream .h>53 #include <fstream> 54 54 55 55 #include <TFile.h> // TFile::GetName … … 68 68 69 69 ClassImp(MReadTree); 70 71 using namespace std; 70 72 71 73 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mfileio/MWriteAsciiFile.cc
r1583 r2173 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 218 ! Author(s): Thomas Bretz, 06/2001 <mailto:tbretz@astro.uni-wuerzburg.de> 19 ! 20 ! Copyright: MAGIC Software Development, 2000-2003 21 21 ! 22 22 ! … … 48 48 #include "MWriteAsciiFile.h" 49 49 50 #include <fstream .h>50 #include <fstream> 51 51 52 52 #include <TMethodCall.h> // TMethodCall, AsciiWrite … … 63 63 64 64 ClassImp(MWriteAsciiFile); 65 66 using namespace std; 65 67 66 68 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mfileio/MWriteFile.cc
r1583 r2173 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 06/2001 <mailto:tbretz@astro.uni-wuerzburg.de>18 ! Author(s): Thomas Bretz, 6/2001 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 220 ! Copyright: MAGIC Software Development, 2000-2003 21 21 ! 22 22 ! … … 37 37 #include "MWriteFile.h" 38 38 39 #include <fstream .h>39 #include <fstream> 40 40 41 41 #include "MLog.h" … … 45 45 46 46 ClassImp(MWriteFile); 47 48 using namespace std; 47 49 48 50 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc
r2130 r2173 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 06/2001 <mailto:tbretz@astro.uni-wuerzburg.de>19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 218 ! Author(s): Thomas Bretz, 6/2001 <mailto:tbretz@astro.uni-wuerzburg.de> 19 ! 20 ! Copyright: MAGIC Software Development, 2000-2003 21 21 ! 22 22 ! … … 36 36 #include "MWriteRootFile.h" 37 37 38 #include <fstream .h>38 #include <fstream> 39 39 40 40 #include <TFile.h> … … 48 48 ClassImp(MRootFileBranch); 49 49 ClassImp(MWriteRootFile); 50 51 using namespace std; 50 52 51 53 static const TString gsDefName = "MWriteRootFile";
Note:
See TracChangeset
for help on using the changeset viewer.