Changeset 14935
- Timestamp:
- 02/20/13 14:49:37 (12 years ago)
- Location:
- trunk/Mars
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/DrsCalib.h
r14865 r14935 5 5 #include <errno.h> // errno 6 6 7 #ifndef MARS_fits 7 8 #include "fits.h" 9 #endif 10 11 #ifndef MARS_ofits 8 12 #include "ofits.h" 13 #endif 9 14 10 15 #ifdef __MARS__ … … 929 934 std::string ReadFitsImp(const std::string &str, std::vector<float> &vec) 930 935 { 936 #ifndef __MARS__ 931 937 std::fits file(str); 938 #else 939 fits file(str); 940 #endif 932 941 if (!file) 933 942 { … … 1054 1063 const size_t n = 1440*1024*4 + 1440*fRoi*2 + fNumTm*fRoi*2 + 3; 1055 1064 1065 #ifndef __MARS__ 1056 1066 std::ofits file(filename.c_str()); 1067 #else 1068 ofits file(filename.c_str()); 1069 #endif 1057 1070 if (!file) 1058 1071 { -
trunk/Mars/mcore/fits.h
r14933 r14935 57 57 namespace std 58 58 { 59 #else 60 using namespace std; 59 61 #endif 60 62 -
trunk/Mars/mcore/ofits.h
r14933 r14935 21 21 namespace std 22 22 { 23 #else 24 using namespace std; 23 25 #endif 24 26 … … 803 805 }; 804 806 805 #if def __MARS__807 #ifndef __MARS__ 806 808 }; 807 809 #endif -
trunk/Mars/mfileio/MFitsArray.h
r14792 r14935 4 4 //#include "astroroot.h" 5 5 //#include "fitsio.h" 6 #include "../mcore/fits.h" 7 #include "../mcore/ofits.h" 6 #ifndef MARS_fits 7 #include "fits.h" 8 #endif 9 10 #ifndef MARS_ofits 11 #include "ofits.h" 12 #endif 8 13 9 14 class TClonesArray; 10 15 class MLog; 11 12 16 13 17 /////////////////////////////////////////////////////////////////////////////// … … 18 22 19 23 // the FITS table to which the data are written 20 std::ofits* fFitsTable;24 ofits* fFitsTable; 21 25 22 26 // number of elements in fClonesArray / MArrayX / TArrayX during … … 26 30 27 31 public: 28 std::ofits* GetFitsTable() {return fFitsTable;}32 ofits* GetFitsTable() {return fFitsTable;} 29 33 UInt_t * GetArraySizePtr() {return &fArraySize;} 30 34 -
trunk/Mars/mfileio/MTopFitsGroup.cc
r14869 r14935 8 8 // Note: This FITS group as well as the table must be open, before calling 9 9 // this method! 10 void MTopFitsGroup::Attach( std::ofits* table)10 void MTopFitsGroup::Attach(ofits* table) 11 11 { 12 12 // fTopGroup.SetChild(table); … … 19 19 // If table is an already open FITS table, then that table we be closed, 20 20 // before the new child is assigned to "table" 21 Bool_t MTopFitsGroup::GetNextChild( std::ofits* table)21 Bool_t MTopFitsGroup::GetNextChild(ofits* table) 22 22 { 23 23 // fTopGroup.SetChild(table); -
trunk/Mars/mfileio/MTopFitsGroup.h
r14792 r14935 1 1 #ifndef MARS_MTopFitsGroup 2 2 #define MARS_MTopFitsGroup 3 4 3 5 4 #include <sys/types.h> 6 5 #include <sys/stat.h> 7 6 8 #include "TString.h" 7 #ifndef ROOT_TString 8 #include <TString.h> 9 #endif 9 10 10 //#include "astroroot.h" 11 //#include "fitsio.h" 12 #include "../mcore/fits.h" 13 #include "../mcore/ofits.h" 11 #ifndef MARS_fits 12 #include "fits.h" 13 #endif 14 15 #ifndef MARS_ofits 16 #include "ofits.h" 17 #endif 14 18 15 19 /////////////////////////////////////////////////////////////////////////////// … … 40 44 41 45 // the top level group as AstroROOT-2 data structure 42 std::ofits* fTopGroup;46 ofits* fTopGroup; 43 47 44 48 // number of usage of this group by different MWriteFitsFile instances … … 46 50 47 51 public: 48 MTopFitsGroup(const char * fileName, std::ofits* file) : fFileName(fileName),52 MTopFitsGroup(const char * fileName, ofits* file) : fFileName(fileName), 49 53 fTopGroup(file), 50 54 fNumOpen(1) … … 55 59 Int_t GetNumUsage() {return fNumOpen;} 56 60 57 void Attach( std::ofits* table);58 Bool_t GetNextChild( std::ofits* table);61 void Attach(ofits* table); 62 Bool_t GetNextChild(ofits* table); 59 63 60 std::ofits* GetGroup() {return fTopGroup;}61 TString & GetFileName(){return fFileName;}64 ofits* GetGroup() {return fTopGroup;} 65 const TString &GetFileName() const {return fFileName;} 62 66 63 67 }; -
trunk/Mars/mfileio/MWriteFitsFile.cc
r14870 r14935 20 20 21 21 ClassImp(MWriteFitsFile); 22 //ClassImp(MArrayHelper);23 //ClassImp(MTopFitsGroup);24 22 25 23 using namespace std; 26 //ClassImp(std::ofits);27 28 24 29 25 map<MUniqueFileId, MTopFitsGroup> MWriteFitsFile::fTopFitsGroups; … … 98 94 MWriteFitsFile::~MWriteFitsFile() 99 95 { 100 for (std::map<TString, std::ofits*>::iterator it=fFitsTables.begin(); it!= fFitsTables.end();it++)96 for (std::map<TString, ofits*>::iterator it=fFitsTables.begin(); it!= fFitsTables.end();it++) 101 97 { 102 98 if (it->second != NULL) … … 332 328 Int_t MWriteFitsFile::PostProcess() 333 329 { 334 for (std::map<TString, std::ofits*>::iterator it=fFitsTables.begin(); it!= fFitsTables.end();it++)330 for (std::map<TString, ofits*>::iterator it=fFitsTables.begin(); it!= fFitsTables.end();it++) 335 331 { 336 332 it->second->close(); … … 479 475 const char* unit, 480 476 const char* comment, 481 std::ofits* outFile)477 ofits* outFile) 482 478 { 483 479 if (outFile == NULL) … … 1089 1085 // close the current files 1090 1086 CloseTopLevelGroup(); 1091 for (std::map<TString, std::ofits*>::iterator it=fFitsTables.begin(); it!=fFitsTables.end(); it++)1087 for (std::map<TString,ofits*>::iterator it=fFitsTables.begin(); it!=fFitsTables.end(); it++) 1092 1088 { 1093 1089 (it->second)->close(); -
trunk/Mars/mfileio/MWriteFitsFile.h
r14792 r14935 12 12 #endif 13 13 14 #ifndef MARS_MTopFitsGroup 14 15 #include "MTopFitsGroup.h" 16 #endif 17 18 #ifndef MARS_MFitsArray 15 19 #include "MFitsArray.h" 16 20 #endif 17 21 18 22 /////////////////////////////////////////////////////////////////////////////// … … 73 77 // TClonesArray are not in this map. 74 78 //ETIENNE ofits objects cannot be copied. So store pointers instead 75 std::map<TString, std::ofits*> fFitsTables;79 std::map<TString, ofits*> fFitsTables; 76 80 77 81 // all information needed to write data of TClonesArray to their … … 106 110 Bool_t InitColumns(const TString & tableName, 107 111 const TString & parentVarName, 108 std::ofits* fitsTable,112 ofits* fitsTable, 109 113 void * baseAdr, 110 114 TClass * classDef); … … 122 126 const char* unit=NULL, 123 127 const char* comment=NULL, 124 std::ofits* outFile=NULL);128 ofits* outFile=NULL); 125 129 126 130 // MWrite -
trunk/Mars/mjobs/Makefile
r14910 r14935 25 25 -I../mhvstime -I../mtrigger -I../mmuon -I../mmc -I../mmovie \ 26 26 -I../mextralgo -I../mhflux -I../msql -I../mreport -I../mcorsika \ 27 -I../msim -I../msimreflector -I../msimcamera -I../melectronics 27 -I../msim -I../msimreflector -I../msimcamera -I../melectronics \ 28 -I../mcore 28 29 29 30 SRCFILES = MSequence.cc \ -
trunk/Mars/mreport/MReport.h
r12776 r14935 9 9 #endif 10 10 11 namespace std 12 { 13 class fits; 14 } 11 class fits; 12 15 13 class MTime; 16 14 class MParList; … … 37 35 38 36 virtual Bool_t SetupReading(MParList &plist); 39 virtual Bool_t SetupReadingFits( std::fits &fits) { return kTRUE; }37 virtual Bool_t SetupReadingFits(fits &) { return kTRUE; } 40 38 virtual Int_t InterpreteBody(TString &str, Int_t ver); 41 39 42 40 Int_t Interprete(TString &str, const MTime &start, const MTime &stop, const Int_t ver); 43 virtual Int_t InterpreteFits(const std::fits &fits) { return kTRUE; }41 virtual Int_t InterpreteFits(const fits &) { return kTRUE; } 44 42 Bool_t CheckIdentifier(TString &str) const 45 43 { -
trunk/Mars/mreport/MReportCC.cc
r12773 r14935 255 255 } 256 256 257 Bool_t MReportWeather::SetupReadingFits( std::fits &file)257 Bool_t MReportWeather::SetupReadingFits(fits &file) 258 258 { 259 259 return -
trunk/Mars/mreport/MReportCC.h
r12773 r14935 19 19 Float_t fSolarRadiation; // [W/m^2] IR-Radiation 20 20 21 Bool_t SetupReadingFits( std::fits &fits);21 Bool_t SetupReadingFits(fits &fits); 22 22 23 23 public: -
trunk/Mars/mreport/MReportDrive.cc
r14861 r14935 88 88 } 89 89 90 Bool_t MReportDrive::SetupReadingFits( std::fits &file)90 Bool_t MReportDrive::SetupReadingFits(fits &file) 91 91 { 92 92 return … … 100 100 } 101 101 102 Int_t MReportDrive::InterpreteFits(const std::fits &fits)102 Int_t MReportDrive::InterpreteFits(const fits &fits) 103 103 { 104 104 fCurrentZd = fNominalZd - fErrorZd; -
trunk/Mars/mreport/MReportDrive.h
r12734 r14935 23 23 Double_t fErrorAz; // [deg] sistem error in the azimuth angle axis 24 24 25 Bool_t SetupReadingFits( std::fits &fits);26 Int_t InterpreteFits(const std::fits &fits);25 Bool_t SetupReadingFits(fits &fits); 26 Int_t InterpreteFits(const fits &fits); 27 27 Int_t InterpreteBody(TString &str, Int_t ver); 28 28 -
trunk/Mars/mreport/MReportFitsRead.h
r14483 r14935 17 17 #include <map> 18 18 19 namespace std 20 { 21 class fits; 22 } 19 class fits; 23 20 class THashTable; 24 21 … … 52 49 53 50 protected: 54 std::fits *fIn; //! buffered input stream (file to read from)51 fits *fIn; //! buffered input stream (file to read from) 55 52 56 53 public: -
trunk/Mars/mreport/MReportHumidity.cc
r12861 r14935 51 51 } 52 52 53 Bool_t MReportHumidity::SetupReadingFits( std::fits &file)53 Bool_t MReportHumidity::SetupReadingFits(fits &file) 54 54 { 55 55 return … … 58 58 } 59 59 60 Int_t MReportHumidity::InterpreteFits(const std::fits &fits)60 Int_t MReportHumidity::InterpreteFits(const fits &fits) 61 61 { 62 62 return kTRUE; -
trunk/Mars/mreport/MReportHumidity.h
r12861 r14935 12 12 Float_t fHumidity[4]; // H[%] Humidity sensors readout 13 13 14 Bool_t SetupReadingFits( std::fits &fits);15 Int_t InterpreteFits(const std::fits &fits);14 Bool_t SetupReadingFits(fits &fits); 15 Int_t InterpreteFits(const fits &fits); 16 16 17 17 public: -
trunk/Mars/mreport/MReportRates.cc
r12862 r14935 53 53 } 54 54 55 Bool_t MReportRates::SetupReadingFits( std::fits &file)55 Bool_t MReportRates::SetupReadingFits(fits &file) 56 56 { 57 57 return … … 66 66 } 67 67 68 Int_t MReportRates::InterpreteFits(const std::fits &fits)68 Int_t MReportRates::InterpreteFits(const fits &fits) 69 69 { 70 70 if (fElapsedTime>0 || fElapsedOnTime>0) -
trunk/Mars/mreport/MReportRates.h
r12860 r14935 18 18 Float_t fElapsedOnTime; // [s] On-time elapsed since previous report 19 19 20 Bool_t SetupReadingFits( std::fits &fits);21 Int_t InterpreteFits(const std::fits &fits);20 Bool_t SetupReadingFits(fits &fits); 21 Int_t InterpreteFits(const fits &fits); 22 22 23 23 public: -
trunk/Mars/mreport/MReportTemperatures.cc
r12861 r14935 56 56 } 57 57 58 Bool_t MReportTemperatures::SetupReadingFits( std::fits &file)58 Bool_t MReportTemperatures::SetupReadingFits(fits &file) 59 59 { 60 60 return … … 68 68 } 69 69 70 Int_t MReportTemperatures::InterpreteFits(const std::fits &fits)70 Int_t MReportTemperatures::InterpreteFits(const fits &fits) 71 71 { 72 72 return kTRUE; -
trunk/Mars/mreport/MReportTemperatures.h
r12861 r14935 17 17 Float_t fTempEthernet[4]; // [deg C] Ethernet switches temperatures top (front/back), bottom (front/back) 18 18 19 Bool_t SetupReadingFits( std::fits &fits);20 Int_t InterpreteFits(const std::fits &fits);19 Bool_t SetupReadingFits(fits &fits); 20 Int_t InterpreteFits(const fits &fits); 21 21 22 22 public:
Note:
See TracChangeset
for help on using the changeset viewer.