Changeset 2173
- Timestamp:
- 06/13/03 16:42:37 (22 years ago)
- Location:
- trunk/MagicSoft
- Files:
-
- 199 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2172 r2173 1 1 -*-*- END OF LINE -*-*- 2 3 2003/06/13: Thomas Bretz (making Mars work with gcc 3.3 on Suse 8.2) 4 5 * Makefile.conf.linux: 6 - removed nonull-objects, Wtraditional and Wnested-externs 7 due to warnings in gcc 3.3 8 9 * *: 10 - added 'using namespace std;' 11 - exchanged *.h C++ headers by correct headers (like <fstream>) 12 - replaced forward declarations of streams by <iosfwd> 13 14 * manalysis/MCerPhotAnal.cc: 15 - cast arguments of sqrt to correct type 16 - corrected argument type for SetPedestalRms 17 18 * manalysis/MCurrents.h: 19 - const operator[] uses 'this' now 20 21 * manalysis/MEnergyEstParam.[h,cc], manalysis/MSigmabarParam.[h,cc]: 22 - fixed definition of Print 23 24 * manalysis/MMcPedestalCopy.cc, manalysis/MPedCalcPedRun.cc, 25 mgui/MCamDisplay.cc, mmontecarlo/MMcThresholdCalc.cc: 26 - cast arguments of sqrt to correct type 27 28 * manalysis/MMultiDimDistCalc.cc: 29 - changed type of numg/numh to Int_t 30 31 * mbase/BaseLinkDef.h: 32 - removed pragma for __omanip_debug 33 34 * mbase/MLog.[h,cc]: 35 - fixed copy constructor 36 - removed usage of mkstemp -- TO BE FIXED 37 38 * mbase/MLogManip.[h,cc]: 39 - completely replaced 40 41 * mdata/MDataArray.cc: 42 - fixed variable type ncols (Double_t -> Int_t) 43 44 * mdata/MDataChain.cc: 45 - fixed argument type of gRandom->Integer() 46 47 * meventdisp/MGEvtDisplay.[h,cc]: 48 - implemented skiping of events which have 0 Pixels 49 50 * mfileio/MCT1ReadPreProc.cc: 51 - fixed conversion for istream::read from Byte_t* to char* 52 - fixed argument type in Fill (fmcsize_phel) 53 54 * mfileio/MChain.h: 55 - ResetTree must also set fTreeNumber to -1 due to changes in 56 TChain::LoadTree 57 58 * mfilter/MFAlpha.[h,cc]: 59 fixed type of Alpha in Init (Float_t instead of Int_t) 60 61 * mfilter/MFEventSelector2.[h,cc]: 62 - renamed Read member function to ReadDistribution 63 64 * mfilter/MFilterList.h: 65 - fixed overloading of GetRule 66 67 * mhist/MBinning.cc, mhist/MH3.cc: 68 - removed default argument in source file 69 70 * mhist/MHArray.cc: 71 fixed type of sstyle (Stat_t -> Int_t) 72 73 * mhist/MHCerPhotEvt.[h,cc], mhist/MHCurrents.[h,cc]: 74 - fixed definition of Clear() 75 76 * mhist/MHFadcCam.[h,cc]: 77 - renamed Reset to ResetEntry 78 79 * mhistmc/MHMcEnergy.cc: 80 - fixed argument type of log 81 82 * mhistmc/MHMcRate.cc: 83 - cast argument of pow() to correct type 84 85 * mimage/MHillas.cc: 86 - replaced default value for MeanX and MeanY by 0 87 88 * mmain/MMars.cc: 89 - fixed argument type in TGLayoutHints 90 91 * mmain/MStatusDisplay.cc: 92 - fixed some argument types 93 - for the moment removed the update of the ps-header 94 95 * mmc/MMcTrig.cxx: 96 - use binary shift instead of pow for power of two 97 98 * mmontecarlo/MMcEnergyEst.[h,cc]: 99 - declared fcn as static 100 - fixed definition of Print 101 102 * mmontecarlo/MMcTimeGenerate.cc: 103 - fixed argument type of SetTime 104 105 * mmontecarlo/MMcTriggerRateCalc.[h,cc]: 106 - fixed definition of Draw 107 108 * mfileio/MReadRflFile.cc, mraw/MRawCrateData.cc, mraw/MRawEvtData.cc, 109 mraw/MRawEvtHeader.cc, mraw/MRawRunHeader.cc: 110 - fixed conversion for istream::read from Byte_t* to char* 111 112 * mreflector/MRflEvtData.cc, mreflector/MRflSinglePhoton.cc: 113 - fixed definition of Print 114 2 115 3 116 2003/06/13: Robert Wagner -
trunk/MagicSoft/Mars/Makefile.conf.linux
r2054 r2173 20 20 # ----->>> settings for compilation 21 21 # 22 OPTIM = -O5 -Wall -fnonnull-objects -fno-exceptions -fPIC -Wtraditional -Wpointer-arith -Wcast-align -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Woverloaded-virtual 22 OPTIM = -O5 -Wall -fno-exceptions -fPIC -Wpointer-arith -Wcast-align -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual 23 # ggc 3.2: removed -fnonnull-objects -Wtraditional -Wnested-externs 23 24 DEBUG = 24 25 ARCHDEF = -D__LINUX__ -
trunk/MagicSoft/Mars/macros/readMagic.C
r2026 r2173 46 46 } 47 47 48 void readMagic(const char *fname="~/ data/Gamma_0_7*.root")48 void readMagic(const char *fname="~/Proton_zbin0_0_7_11650to11659_w0.root") 49 49 { 50 50 MParList plist; -
trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.cc
r2015 r2173 67 67 #include "MBlindPixelCalc.h" 68 68 69 #include <fstream .h>69 #include <fstream> 70 70 71 71 #include "MLog.h" … … 83 83 84 84 ClassImp(MBlindPixelCalc); 85 86 using namespace std; 85 87 86 88 static const TString gsDefName = "MBlindPixelCalc"; -
trunk/MagicSoft/Mars/manalysis/MCT1PointingCorrCalc.cc
r2088 r2173 43 43 44 44 ClassImp(MCT1PointingCorrCalc); 45 46 using namespace std; 45 47 46 48 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MCT1SupercutsCalc.cc
r2109 r2173 31 31 32 32 #include <math.h> 33 #include <fstream .h>33 #include <fstream> 34 34 35 35 #include "MLog.h" … … 45 45 46 46 ClassImp(MCT1SupercutsCalc); 47 48 using namespace std; 47 49 48 50 void MCT1SupercutsCalc::InitParams() -
trunk/MagicSoft/Mars/manalysis/MCerPhotAnal.cc
r2135 r2173 54 54 ClassImp(MCerPhotAnal); 55 55 56 using namespace std; 57 56 58 // -------------------------------------------------------------------------- 57 59 // … … 178 180 179 181 sigmaped /= (fRawEvt->GetNumHiGainSamples()-5); 180 sigmaped = sqrt( sumlocal);182 sigmaped = sqrt((float)sumlocal); 181 183 182 184 const UInt_t pixid = pixel.GetPixelId(); … … 195 197 fCerPhotEvt->AddPixel(pixid, nphot, sigmaped/2.236); 196 198 ped.SetPedestal(pedes, sigmaped); 197 ped.SetPedestalRms(sigmaped/sqrt(fRawEvt->GetNumHiGainSamples()-5 ),198 sigmaped/sqrt(2 *(fRawEvt->GetNumHiGainSamples()-5)));199 ped.SetPedestalRms(sigmaped/sqrt(fRawEvt->GetNumHiGainSamples()-5.), 200 sigmaped/sqrt(2.*(fRawEvt->GetNumHiGainSamples()-5))); 199 201 200 202 // FIXME! Handling of Lo Gains is missing! -
trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.cc
r2135 r2173 57 57 ClassImp(MCerPhotCalc); 58 58 59 using namespace std; 60 59 61 // -------------------------------------------------------------------------- 60 62 // -
trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.cc
r2147 r2173 28 28 #include <math.h> 29 29 #include <limits.h> 30 #include <fstream .h>30 #include <fstream> 31 31 32 32 #include <TCanvas.h> … … 37 37 38 38 ClassImp(MCerPhotEvt); 39 40 using namespace std; 39 41 40 42 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MCerPhotPix.cc
r2056 r2173 29 29 ClassImp(MCerPhotPix); 30 30 31 using namespace std; 32 31 33 // -------------------------------------------------------------------------- 32 34 // -
trunk/MagicSoft/Mars/manalysis/MCompProbCalc.cc
r1574 r2173 46 46 47 47 ClassImp(MCompProbCalc); 48 49 using namespace std; 48 50 49 51 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MCurrents.cc
r2147 r2173 36 36 37 37 ClassImp(MCurrents); 38 39 using namespace std; 38 40 39 41 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MCurrents.h
r2147 r2173 27 27 UInt_t GetCurrent(Int_t i) const { return (*this)[i]; } 28 28 UInt_t &operator[](Int_t i) { return (UInt_t&)fArray[i]; } 29 const UInt_t &operator[](Int_t i) const { return ( (TArrayI)fArray)[i]; }29 const UInt_t &operator[](Int_t i) const { return (*this)[i]; } 30 30 31 31 UInt_t GetMin() const; -
trunk/MagicSoft/Mars/manalysis/MEnergyEst.cc
r1525 r2173 39 39 ClassImp(MEnergyEst); 40 40 41 using namespace std; 42 41 43 // -------------------------------------------------------------------------- 42 44 // -
trunk/MagicSoft/Mars/manalysis/MEnergyEstParam.cc
r1886 r2173 46 46 ClassImp(MEnergyEstParam); 47 47 48 using namespace std; 49 48 50 // -------------------------------------------------------------------------- 49 51 // … … 284 286 } 285 287 286 void MEnergyEstParam::Print(Option_t *opt) 288 void MEnergyEstParam::Print(Option_t *opt) const 287 289 { 288 290 for (int i=0; i<fA.GetSize(); i++) -
trunk/MagicSoft/Mars/manalysis/MEnergyEstParam.h
r1886 r2173 61 61 Double_t GetCoeff(Int_t i) { return i<fA.GetSize()? fA[i] : fB[i-fA.GetSize()]; } 62 62 63 void Print(Option_t *o=NULL) ;63 void Print(Option_t *o=NULL) const; 64 64 65 65 ClassDef(MEnergyEstParam, 0) // Task to estimate the energy -
trunk/MagicSoft/Mars/manalysis/MEnergyEstimate.cc
r1211 r2173 45 45 ClassImp(MEnergyEstimate); 46 46 47 using namespace std; 48 49 47 50 // -------------------------------------------------------------------------- 48 51 // -
trunk/MagicSoft/Mars/manalysis/MFiltercutsCalc.cc
r2125 r2173 47 47 48 48 ClassImp(MFiltercutsCalc); 49 50 using namespace std; 49 51 50 52 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MHadronness.cc
r1557 r2173 39 39 ClassImp(MHadronness); 40 40 41 using namespace std; 42 41 43 // -------------------------------------------------------------------------- 42 44 // -
trunk/MagicSoft/Mars/manalysis/MMcPedestalCopy.cc
r1965 r2173 53 53 54 54 ClassImp(MMcPedestalCopy); 55 56 using namespace std; 55 57 56 58 MMcPedestalCopy::MMcPedestalCopy(const char *name, const char *title) … … 136 138 137 139 const Float_t pedest = fMcPed->GetPedestal(i); 138 const Float_t pedrms = pedest/sqrt( num);140 const Float_t pedrms = pedest/sqrt((float)num); 139 141 140 142 const Float_t sigma = fMcPed->GetPedestalRms(i); 141 const Float_t sigrms = sigma/sqrt(num*2 );143 const Float_t sigrms = sigma/sqrt(num*2.); 142 144 143 145 pix.SetPedestal(pedest, sigma); -
trunk/MagicSoft/Mars/manalysis/MMcPedestalNSBAdd.cc
r2139 r2173 70 70 ClassImp(MMcPedestalNSBAdd); 71 71 72 using namespace std; 73 72 74 // -------------------------------------------------------------------------- 73 75 // -
trunk/MagicSoft/Mars/manalysis/MMcTriggerLvl2.cc
r2005 r2173 56 56 #include <TCanvas.h> 57 57 58 59 ClassImp(MMcTriggerLvl2) 58 ClassImp(MMcTriggerLvl2); 59 60 using namespace std; 60 61 61 62 // --------------------------- -
trunk/MagicSoft/Mars/manalysis/MMcTriggerLvl2Calc.cc
r1991 r2173 49 49 #include "MGeomCam.h" 50 50 51 ClassImp(MMcTriggerLvl2Calc); 51 52 52 ClassImp(MMcTriggerLvl2Calc);53 using namespace std; 53 54 54 55 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MMultiDimDistCalc.cc
r2114 r2173 45 45 #include "MMultiDimDistCalc.h" 46 46 47 #include <fstream .h>47 #include <fstream> 48 48 49 49 #include "MHMatrix.h" // must be before MLogManip.h … … 59 59 60 60 ClassImp(MMultiDimDistCalc); 61 62 using namespace std; 61 63 62 64 static const TString gsDefName = "MMultiDimDistCalc"; … … 176 178 *fData >> event; 177 179 178 Double_t numg = fNum;179 Double_t numh = fNum;180 Int_t numg = fNum; 181 Int_t numh = fNum; 180 182 if (fNum==0) 181 183 { -
trunk/MagicSoft/Mars/manalysis/MPadding.cc
r1951 r2173 98 98 ClassImp(MPadding); 99 99 100 using namespace std; 101 100 102 // -------------------------------------------------------------------------- 101 103 // -
trunk/MagicSoft/Mars/manalysis/MParameters.cc
r1947 r2173 35 35 #include "MParameters.h" 36 36 37 #include <fstream .h>37 #include <fstream> 38 38 39 39 #include "MLog.h" … … 43 43 ClassImp(MParameterI); 44 44 //ClassImp(MParameter); 45 46 using namespace std; 45 47 46 48 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc
r1081 r2173 50 50 51 51 ClassImp(MPedCalcPedRun); 52 53 using namespace std; 52 54 53 55 MPedCalcPedRun::MPedCalcPedRun(const char *name, const char *title) … … 135 137 Float_t MPedCalcPedRun::CalcHiGainMeanErr(Float_t higainrms) const 136 138 { 137 return higainrms/sqrt( fNumHiGainSamples);139 return higainrms/sqrt((float)fNumHiGainSamples); 138 140 } 139 141 -
trunk/MagicSoft/Mars/manalysis/MPedestalCam.cc
r2135 r2173 40 40 #include "MGeomCam.h" 41 41 42 ClassImp(MPedestalCam); 42 43 43 ClassImp(MPedestalCam);44 using namespace std; 44 45 45 46 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MSigmabar.cc
r2103 r2173 55 55 ClassImp(MSigmabar); 56 56 57 using namespace std; 58 57 59 // -------------------------------------------------------------------------- 58 60 // -
trunk/MagicSoft/Mars/manalysis/MSigmabarCalc.cc
r1951 r2173 50 50 51 51 ClassImp(MSigmabarCalc); 52 53 using namespace std; 52 54 53 55 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MSigmabarParam.cc
r1682 r2173 46 46 ClassImp(MSigmabarParam); 47 47 48 using namespace std; 49 48 50 MSigmabarParam::MSigmabarParam(const char *name, const char *title) : fSigmabarMin(0), fSigmabarMax(0), fMjdMin(0), fMjdMax(0), fThetaMin(0), fThetaMax(0), fRunNumber(0) 49 51 { … … 73 75 } 74 76 75 void MSigmabarParam::Print( )77 void MSigmabarParam::Print(Option_t *) const 76 78 { 77 79 *fLog << endl << "Run " << fRunNumber << " | " -
trunk/MagicSoft/Mars/manalysis/MSigmabarParam.h
r2001 r2173 33 33 Double_t GetThetaMax() const { return fThetaMax; } 34 34 35 void Print( );35 void Print(Option_t *o="") const; 36 36 37 37 ClassDef(MSigmabarParam, 1) // Storage container for characterizing a distribution of events in the Sigmabar-Theta plane -
trunk/MagicSoft/Mars/manalysis/MSrcPosCam.cc
r1487 r2173 34 34 #include "MSrcPosCam.h" 35 35 36 #include <fstream .h>36 #include <fstream> 37 37 38 38 #include "MLog.h" … … 40 40 41 41 ClassImp(MSrcPosCam); 42 43 using namespace std; 42 44 43 45 static const TString gsDefName = "MSrcPosCam"; -
trunk/MagicSoft/Mars/mars.cc
r2054 r2173 14 14 #include "MLogo.h" 15 15 #endif 16 17 using namespace std; 16 18 17 19 // ********************************************************************** -
trunk/MagicSoft/Mars/mbase/BaseLinkDef.h
r2156 r2173 10 10 #pragma link C++ global kRad2Deg; 11 11 //#pragma link C++ global kPI; 12 13 #pragma link C++ function __omanip_debug;14 12 15 13 #pragma link C++ global gLog; -
trunk/MagicSoft/Mars/mbase/MClone.cc
r1080 r2173 58 58 59 59 ClassImp(MClone); 60 61 using namespace std; 60 62 61 63 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mbase/MContinue.cc
r2117 r2173 50 50 51 51 ClassImp(MContinue); 52 53 using namespace std; 52 54 53 55 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r2161 r2173 70 70 71 71 #include <time.h> // time_t 72 #include <fstream.h> // ofstream, SavePrimitive 73 #include <iostream.h> 72 #include <fstream> // ofstream, SavePrimitive 74 73 75 74 #include <TTime.h> // TTime … … 91 90 92 91 ClassImp(MEvtLoop); 92 93 using namespace std; 93 94 94 95 -
trunk/MagicSoft/Mars/mbase/MGList.cc
r1353 r2173 35 35 #include "MGList.h" 36 36 37 #include <iostream .h>37 #include <iostream> 38 38 39 39 #include <TClass.h> … … 42 42 #include <TGPicture.h> 43 43 44 45 44 ClassImp(MGList); 45 46 using namespace std; 46 47 47 48 // -------------------------------------------------------------------------- … … 149 150 if (IsExisting(obj)) 150 151 { 152 // FIXME: Replace by gLog 151 153 const Int_t id = GetWidget(obj)->WidgetId(); 152 154 cout << "Widget with id #" << id << " ("; -
trunk/MagicSoft/Mars/mbase/MGTask.cc
r1080 r2173 41 41 42 42 ClassImp(MGTask); 43 44 using namespace std; 43 45 44 46 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mbase/MLog.cc
r2120 r2173 97 97 98 98 #include <stdlib.h> // mkstempe 99 #include <fstream .h>99 #include <fstream> 100 100 #ifdef _REENTRANT 101 101 #include <pthread.h> … … 106 106 107 107 ClassImp(MLog); 108 109 using namespace std; 108 110 109 111 // root 3.02: … … 210 212 // copyt constructor 211 213 // 212 MLog::MLog(MLog &log) 213 { 214 fOutputLevel = log.fOutputLevel; 215 fDebugLevel = log.fDebugLevel; 216 fDevice = log.fDevice; 217 } 214 /* 215 MLog::MLog(MLog const& log) 216 { 217 // fOutputLevel = log.fOutputLevel; 218 // fDebugLevel = log.fDebugLevel; 219 // fDevice = log.fDevice; 220 } 221 */ 218 222 219 223 void MLog::Underline() … … 447 451 void MLog::AllocateFile(const char *fname) 448 452 { 453 // gcc 3.2: 449 454 char *txt = (char*)"logXXXXXX"; 450 fout = fname ? new ofstream(fname) : new ofstream( mkstemp(txt));455 fout = fname ? new ofstream(fname) : new ofstream(/*mkstemp(*/txt/*)*/); 451 456 fOutAllocated = kTRUE; 452 457 } -
trunk/MagicSoft/Mars/mbase/MLog.h
r2123 r2173 9 9 #endif 10 10 11 #ifndef __CINT__ 12 #include <iostream.h> // base classes for MLog 13 #else 14 class streambuf; 15 class ostream; 16 #endif 11 #include <iostream> // base classes for MLog 17 12 18 13 #define bsz 160 // two standard lines … … 20 15 class TGTextView; 21 16 22 class MLog : public st reambuf, publicostream, public TObject17 class MLog : public std::streambuf, public std::ostream, public TObject 23 18 { 24 19 public: … … 94 89 MLog(const char *fname, int flag=-1); 95 90 96 MLog(MLog &log); 91 MLog(MLog const& log) : ostream((std::streambuf*)&log) 92 { 93 fOutputLevel = log.fOutputLevel; 94 fDebugLevel = log.fDebugLevel; 95 fDevice = log.fDevice; 96 } 97 97 ~MLog(); 98 98 … … 186 186 const int save = fOutputLevel; 187 187 SetOutputLevel(outlvl); 188 (*this) << str << endl;188 (*this) << str << std::endl; 189 189 fOutputLevel = save; 190 190 } -
trunk/MagicSoft/Mars/mbase/MLogManip.cc
r2120 r2173 25 25 #include "MLog.h" 26 26 #include "MLogManip.h" 27 27 /* 28 28 // ---------------------------------------------------------------- 29 29 // Definitions of the manipulator functions … … 124 124 return lout; 125 125 } 126 126 */ -
trunk/MagicSoft/Mars/mbase/MLogManip.h
r2142 r2173 2 2 #define MARS_MLogManip 3 3 4 #include <iomanip .h>4 #include <iomanip> 5 5 6 // ---------------------------------------------------------------- 7 // Definitions of the manipulators 8 // ---------------------------------------------------------------- 6 #include "MLog.h" 9 7 10 // 11 // define a general simple macro for manipulator definitions (int) 12 // 13 #define MANIPULATOR0(name) \ 14 extern ostream& ##name(ostream& lout); 8 // --------------------- simple manipulators ----------------------- 15 9 16 #ifndef OMANIP 17 #define MANIPULATOR1(name) \ 18 extern ostream& __omanip_##name(ostream& lout, int i); \ 19 inline omanip<int> ##name(int i) \ 20 { \ 21 return omanip<int>(__omanip_##name, i); \ 22 } 10 enum MLogManip { 11 underline 12 }; 23 13 24 #else 25 #define MANIPULATOR1(name) \ 26 extern ostream& __omanip_##name(ostream& lout, int i); \27 inline OMANIP(int) ##name(int i) \28 { \29 return OMANIP(int)(__omanip_##name, i); \30 14 inline std::ostream &operator<<(std::ostream &lout, MLogManip u) 15 { 16 MLog *log=/*<dynamic_cast>*/(MLog*)lout.rdbuf(); 17 if (log) 18 log->Underline(); 19 return lout; 20 } 31 21 32 #endif33 22 34 // 35 // definitions 36 // 37 MANIPULATOR0(underline); // underline output 38 MANIPULATOR1(debug); // set debug level 39 MANIPULATOR1(device); // set ouput devices 40 MANIPULATOR1(edev); // enable additional output devices 41 MANIPULATOR1(ddev); // disable given output 42 //#ifndef __CINT__ 43 //__DEFINE_IOMANIP_FN1(smanip, int, debug); // set debug level 44 //__DEFINE_IOMANIP_FN1(smanip, int, device); // set ouput devices 45 //__DEFINE_IOMANIP_FN1(smanip, int, edev); // enable additional output devices 46 //__DEFINE_IOMANIP_FN1(smanip, int, ddev); // disable given output 47 //#endif 23 // ----------------------------- debug ----------------------------- 48 24 49 // ---------------------------------------------------------------- 50 // Debug helper macros 51 // ---------------------------------------------------------------- 25 struct _Debug { int level; }; 52 26 53 // 54 // Output debug information into the stream 55 // - this can only be done by a macro 56 // 27 inline _Debug debug(int level) 28 { 29 _Debug d; 30 d.level = level; 31 return d; 32 } 33 34 inline std::ostream &operator<<(std::ostream &lout, _Debug d) 35 { 36 MLog *log=/*<dynamic_cast>*/(MLog*)lout.rdbuf(); 37 if (log) 38 log->SetOutputLevel(d.level); 39 return lout; 40 } 41 42 // ------------------------------- edev ---------------------------- 43 44 struct _EnableDev { MLog::_flags dev; }; 45 46 inline _EnableDev edev(MLog::_flags i) 47 { 48 _EnableDev e; 49 e.dev = i; 50 return e; 51 } 52 53 inline std::ostream &operator<<(std::ostream &lout, _EnableDev e) 54 { 55 MLog *log=/*<dynamic_cast>*/(MLog*)lout.rdbuf(); 56 if (log) 57 log->EnableOutputDevice(e.dev); 58 return lout; 59 } 60 61 // ------------------------------- sdev ---------------------------- 62 63 struct _DisableDev { MLog::_flags dev; }; 64 65 inline _DisableDev ddev(MLog::_flags i) 66 { 67 _DisableDev d; 68 d.dev = i; 69 return d; 70 } 71 72 inline std::ostream &operator<<(std::ostream &lout, _DisableDev d) 73 { 74 MLog *log=/*<dynamic_cast>*/(MLog*)lout.rdbuf(); 75 if (log) 76 log->EnableOutputDevice(d.dev); 77 return lout; 78 } 79 80 // ------------------------------ Macros --------------------------- 81 57 82 #ifndef __CINT__ 58 //#define dbginf dbg << __FILE__ << " l." << dec << __LINE__ << ": "59 83 #define dbginf __FILE__ << " l." << dec << __LINE__ << ": " 60 84 #define all debug(0) // use this for output in any case … … 64 88 #define dbg debug(4) // use this for debug messages (blue) 65 89 #endif 66 //67 // flush the old buffer, set a new debug level68 // and output the debug information code69 //70 // Be careful: Only use them with a MLogging stream facility.71 // Remark: All this is compiled into the code.72 //73 /*74 #ifndef __CINT__75 #define DEBUG(lvl) flush << debug(lvl) << dbginf76 #endif77 */78 /*79 class SMANIP(T) {80 ios& (*fct)(ios&,T) ;81 T arg ;82 public:83 SMANIP(T)(ios& (*f)(ios&, T), T a) :84 fct(f), arg(a) { }85 friend istream& operator>>(istream& i, const SMANIP(T)& m)86 {87 ios* s = &i ;88 (*m.fct)(*s,m.arg) ; return i ;89 }90 friend ostream& operator<<(ostream& o, const SMANIP(T)& m)91 {92 ios* s = &o ;93 (*m.fct)(*s,m.arg) ; return o ;94 }95 } ;96 */97 90 98 91 #endif -
trunk/MagicSoft/Mars/mbase/MParContainer.cc
r2109 r2173 38 38 39 39 #include <ctype.h> // isdigit 40 #include <fstream .h>// ofstream, AsciiWrite40 #include <fstream> // ofstream, AsciiWrite 41 41 42 42 #include <TEnv.h> // Env::Lookup … … 58 58 59 59 ClassImp(MParContainer); 60 61 using namespace std; 60 62 61 63 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mbase/MParContainer.h
r2120 r2173 20 20 #endif 21 21 22 class ofstream; 23 class ifstream; 22 // gcc 3.2 23 #include <iosfwd> 24 //class ofstream; 25 //class ifstream; 24 26 25 27 class TEnv; -
trunk/MagicSoft/Mars/mbase/MParList.cc
r2120 r2173 41 41 #include "MParList.h" 42 42 43 #include <fstream .h> // ofstream, SavePrimitive43 #include <fstream> // ofstream, SavePrimitive 44 44 45 45 #include <TNamed.h> … … 53 53 54 54 ClassImp(MParList); 55 56 using namespace std; 55 57 56 58 static const TString gsDefName = "MParList"; -
trunk/MagicSoft/Mars/mbase/MPrint.cc
r1542 r2173 46 46 47 47 ClassImp(MPrint); 48 49 using namespace std; 48 50 49 51 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mbase/MTask.cc
r2117 r2173 68 68 #include "MTask.h" 69 69 70 #include <fstream .h>70 #include <fstream> 71 71 #include <TBaseClass.h> 72 72 … … 79 79 80 80 ClassImp(MTask); 81 82 using namespace std; 81 83 82 84 MTask::MTask(const char *name, const char *title) -
trunk/MagicSoft/Mars/mbase/MTaskInteractive.cc
r2156 r2173 36 36 #include "MTaskInteractive.h" 37 37 38 #include <iostream.h>39 40 38 #include <Api.h> 41 39 #include <TMethodCall.h> … … 45 43 46 44 ClassImp(MTaskInteractive); 45 46 using namespace std; 47 47 48 48 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mbase/MTaskList.cc
r2120 r2173 57 57 #include "MTaskList.h" 58 58 59 #include <fstream .h> // ofstream, SavePrimitive59 #include <fstream> // ofstream, SavePrimitive 60 60 61 61 #include <TClass.h> … … 73 73 74 74 ClassImp(MTaskList); 75 76 using namespace std; 75 77 76 78 const TString MTaskList::gsDefName = "MTaskList"; -
trunk/MagicSoft/Mars/mbase/MTime.cc
r1080 r2173 33 33 #include "MTime.h" 34 34 35 #include <iomanip .h>35 #include <iomanip> 36 36 37 37 #include "MLog.h" 38 38 39 39 ClassImp(MTime); 40 41 using namespace std; 40 42 41 43 void MTime::Print(Option_t *) const -
trunk/MagicSoft/Mars/mdata/DataIncl.h
r1287 r2173 1 1 #ifndef __CINT__ 2 2 3 #include <fstream.h>3 //#include <fstream> 4 4 5 5 #include <TFile.h> -
trunk/MagicSoft/Mars/mdata/MData.cc
r1574 r2173 63 63 #include "MData.h" 64 64 65 #include <fstream .h>65 #include <fstream> 66 66 67 67 #include "MLog.h" 68 68 69 69 ClassImp(MData); 70 71 using namespace std; 70 72 71 73 Bool_t MData::AsciiWrite(ostream &out) const -
trunk/MagicSoft/Mars/mdata/MDataArray.cc
r2114 r2173 33 33 #include "MDataArray.h" 34 34 35 #include <fstream .h>35 #include <fstream> 36 36 37 37 #include <TVector.h> … … 43 43 44 44 ClassImp(MDataArray); 45 46 using namespace std; 45 47 46 48 static const TString gsDefName = "MDataArray"; … … 194 196 void MDataArray::GetData(TVector &v) const 195 197 { 196 Double_t ncols = GetNumEntries();198 Int_t ncols = GetNumEntries(); 197 199 198 200 v.ResizeTo(ncols); -
trunk/MagicSoft/Mars/mdata/MDataChain.cc
r2117 r2173 126 126 127 127 ClassImp(MDataChain); 128 129 using namespace std; 128 130 129 131 // -------------------------------------------------------------------------- … … 543 545 case kERad2Deg: return val*180/TMath::Pi(); 544 546 case kEDeg2Rad: return val*TMath::Pi()/180; 545 case kERandom: return gRandom ? gRandom->Uniform(val) : 0;546 case kERandomP: return gRandom ? gRandom->Poisson(val) : 0;547 case kERandomE: return gRandom ? gRandom->Exp(val) : 0;548 case kERandomI: return gRandom ? gRandom->Integer( val): 0;547 case kERandom: return gRandom ? gRandom->Uniform(val) : 0; 548 case kERandomP: return gRandom ? gRandom->Poisson(val) : 0; 549 case kERandomE: return gRandom ? gRandom->Exp(val) : 0; 550 case kERandomI: return gRandom ? gRandom->Integer((int)val) : 0; 549 551 case kERandomG: return gRandom ? gRandom->Gaus(0, val) : 0; 550 552 case kERandomL: return gRandom ? gRandom->Landau(0, val) : 0; -
trunk/MagicSoft/Mars/mdata/MDataElement.cc
r2098 r2173 38 38 #include "MDataElement.h" 39 39 40 #include <fstream .h>40 #include <fstream> 41 41 42 42 #include "MHMatrix.h" … … 48 48 49 49 ClassImp(MDataElement); 50 51 using namespace std; 50 52 51 53 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mdata/MDataList.cc
r1574 r2173 36 36 ClassImp(MDataList); 37 37 38 using namespace std; 39 38 40 // -------------------------------------------------------------------------- 39 41 // -
trunk/MagicSoft/Mars/mdata/MDataMember.cc
r1709 r2173 38 38 #include "MDataMember.h" 39 39 40 #include <fstream .h>40 #include <fstream> 41 41 42 42 #include <TMethodCall.h> … … 48 48 49 49 ClassImp(MDataMember); 50 51 using namespace std; 50 52 51 53 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mdata/MDataValue.cc
r1474 r2173 38 38 ClassImp(MDataValue); 39 39 40 using namespace std; 41 40 42 // -------------------------------------------------------------------------- 41 43 // -
trunk/MagicSoft/Mars/mdatacheck/MDumpEvtHeader.cc
r1081 r2173 51 51 ClassImp(MDumpEvtHeader); 52 52 53 using namespace std; 54 53 55 // -------------------------------------------------------------------------- 54 56 // -
trunk/MagicSoft/Mars/mdatacheck/MGDisplayAdc.cc
r2010 r2173 27 27 28 28 #include <stdlib.h> // mkstemp 29 #include <iostream .h>// cout for debugging29 #include <iostream> // cout for debugging 30 30 31 31 #include <TSystem.h> // gSystem … … 39 39 40 40 #include "MHFadcCam.h" 41 42 using namespace std; 41 43 42 44 enum ComIdentDisplayAdc -
trunk/MagicSoft/Mars/merpp.cc
r1936 r2173 16 16 #include "MRawCrateArray.h" 17 17 #include "MInputStreamID.h" 18 19 using namespace std; 18 20 19 21 ////////////////////////////////////////////////////////////////////////////// -
trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.cc
r2161 r2173 49 49 #include "MReadMarsFile.h" 50 50 #include "MGeomCamMagic.h" 51 #include "MRawEvtData.h" 51 52 #include "MRawEvtHeader.h" 52 53 … … 536 537 // and updates the display 537 538 // 538 void MGEvtDisplay::ReadinEvent() 539 { 540 if (GetTaskList()->Process()) 539 void MGEvtDisplay::ReadinEvent(Int_t dir) 540 { 541 MRawEvtData *raw = (MRawEvtData*)GetParList()->FindObject("MRawEvtData"); 542 if (!raw) 543 return; 544 do 541 545 { 546 if (dir<0 && !GetReader()->DecEventNum()) 547 return; 548 if (dir>0 && !GetReader()->IncEventNum()) 549 return; 550 551 if (!GetTaskList()->Process()) 552 return; 553 542 554 GetReader()->DecEventNum(); 543 UpdateMcLabel(); 544 UpdateDisplay(); 545 } 555 556 } while (raw->GetNumPixels()<1); 557 558 UpdateMcLabel(); 559 UpdateDisplay(); 546 560 547 561 fTxtEvtNr->SetText(Form("%d", GetReader()->GetNumEntry()+1)); … … 645 659 { 646 660 case kEvtPrev: 647 if (GetReader()->DecEventNum()) 648 ReadinEvent(); 661 ReadinEvent(-1); 649 662 return kTRUE; 650 663 651 664 case kEvtNext: 652 if (GetReader()->IncEventNum()) 653 ReadinEvent(); 665 ReadinEvent(+1); 654 666 return kTRUE; 655 667 } -
trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.h
r1668 r2173 44 44 45 45 void SaveAsDialog() const; 46 void ReadinEvent( );46 void ReadinEvent(Int_t dir=0); 47 47 48 48 Bool_t fInitOk; -
trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.cc
r1939 r2173 27 27 #include <limits.h> // INT_MAX 28 28 #include <stdlib.h> // atoi 29 #include <iostream .h>// cout for debugging29 #include <iostream> // cout for debugging 30 30 31 31 #include <TList.h> // TList … … 51 51 52 52 ClassImp(MGFadcDisp); 53 54 using namespace std; 53 55 54 56 enum MGFadcDispCommand -
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"; -
trunk/MagicSoft/Mars/mfilter/MF.cc
r2123 r2173 83 83 #include <ctype.h> // isalnum, ... 84 84 #include <stdlib.h> // strtod, ... 85 #include <fstream .h> // ofstream, ...85 #include <fstream> // ofstream, ... 86 86 87 87 #include <TMethodCall.h> … … 97 97 98 98 ClassImp(MF); 99 100 using namespace std; 99 101 100 102 const TString MF::gsDefName = "MF"; -
trunk/MagicSoft/Mars/mfilter/MFAlpha.cc
r1483 r2173 31 31 32 32 #include <math.h> 33 #include <fstream .h>33 #include <fstream> 34 34 35 35 #include "MLog.h" … … 42 42 ClassImp(MFAlpha); 43 43 44 using namespace std; 44 45 45 46 // -------------------------------------------------------------------------- … … 62 63 // -------------------------------------------------------------------------- 63 64 // 64 void MFAlpha::Init(const char type, const Int_t val,65 void MFAlpha::Init(const char type, const Float_t val, 65 66 const char *name, const char *title) 66 67 { -
trunk/MagicSoft/Mars/mfilter/MFAlpha.h
r1481 r2173 27 27 Float_t fValue; // [deg] 28 28 29 void Init(const char type, const Int_t val,29 void Init(const char type, const Float_t val, 30 30 const char *name, const char *title); 31 31 -
trunk/MagicSoft/Mars/mfilter/MFCT1SelBasic.cc
r2037 r2173 57 57 ClassImp(MFCT1SelBasic); 58 58 59 using namespace std; 60 59 61 // -------------------------------------------------------------------------- 60 62 // -
trunk/MagicSoft/Mars/mfilter/MFCT1SelFinal.cc
r2076 r2173 57 57 58 58 ClassImp(MFCT1SelFinal); 59 60 using namespace std; 59 61 60 62 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mfilter/MFCT1SelStandard.cc
r2059 r2173 58 58 ClassImp(MFCT1SelStandard); 59 59 60 using namespace std; 61 60 62 // -------------------------------------------------------------------------- 61 63 // -
trunk/MagicSoft/Mars/mfilter/MFDataChain.cc
r2098 r2173 44 44 #include "MFDataChain.h" 45 45 46 #include <fstream .h>46 #include <fstream> 47 47 48 48 #include <TMethodCall.h> … … 54 54 55 55 ClassImp(MFDataChain); 56 57 using namespace std; 56 58 57 59 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mfilter/MFDataMember.cc
r1661 r2173 44 44 #include "MFDataMember.h" 45 45 46 #include <fstream .h>46 #include <fstream> 47 47 48 48 #include <TMethodCall.h> … … 54 54 55 55 ClassImp(MFDataMember); 56 57 using namespace std; 56 58 57 59 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mfilter/MFEnergySlope.cc
r2010 r2173 48 48 #include "MFEnergySlope.h" 49 49 50 #include <fstream .h>50 #include <fstream> 51 51 #include <TRandom.h> 52 52 … … 60 60 61 61 ClassImp(MFEnergySlope); 62 63 using namespace std; 62 64 63 65 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mfilter/MFEventSelector.cc
r2118 r2173 74 74 ClassImp(MFEventSelector); 75 75 76 using namespace std; 77 76 78 static const TString gsDefName = "MFEventSelector"; 77 79 static const TString gsDefTitle = "Filter to select events"; -
trunk/MagicSoft/Mars/mfilter/MFEventSelector2.cc
r2118 r2173 112 112 113 113 ClassImp(MFEventSelector2); 114 115 using namespace std; 114 116 115 117 const TString MFEventSelector2::gsDefName = "MFEventSelector2"; … … 133 135 // would result in redistributing cos(Theta). 134 136 // 135 MFEventSelector2::MFEventSelector2(MH3 &hist, const char *name =NULL, const char *title=NULL)137 MFEventSelector2::MFEventSelector2(MH3 &hist, const char *name, const char *title) 136 138 : fHistOrig(NULL), fHistNom(&hist), fHistRes(NULL), 137 139 fDataX(hist.GetRule('x')), fDataY(hist.GetRule('y')), … … 178 180 // Reading task of the present loop is used in a new eventloop. 179 181 // 180 Bool_t MFEventSelector2::Read (MRead &read)182 Bool_t MFEventSelector2::ReadDistribution(MRead &read) 181 183 { 182 184 if (read.GetEntries() > INT_MAX) // FIXME: LONG_MAX ??? … … 355 357 356 358 // Read primary distribution 357 if (!Read (*read))359 if (!ReadDistribution(*read)) 358 360 return kFALSE; 359 361 -
trunk/MagicSoft/Mars/mfilter/MFEventSelector2.h
r2118 r2173 44 44 45 45 TH1 &InitHistogram(MH3* &hist); 46 Bool_t Read (MRead &read);46 Bool_t ReadDistribution(MRead &read); 47 47 void PrepareHistograms(); 48 48 Bool_t PreProcessData(MParList *parlist); -
trunk/MagicSoft/Mars/mfilter/MFParticleId.cc
r1483 r2173 34 34 #include "MFParticleId.h" 35 35 36 #include <fstream .h>36 #include <fstream> 37 37 38 38 #include "MLog.h" … … 45 45 ClassImp(MFParticleId); 46 46 47 using namespace std; 47 48 48 49 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mfilter/MFTriggerLvl1.cc
r1483 r2173 30 30 #include "MFTriggerLvl1.h" 31 31 32 #include <fstream .h>32 #include <fstream> 33 33 34 34 #include "MLog.h" … … 41 41 ClassImp(MFTriggerLvl1); 42 42 43 using namespace std; 43 44 44 45 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mfilter/MFTriggerLvl2.cc
r1777 r2173 20 20 ! Copyright: MAGIC Software Development, 2000-2003 21 21 ! 22 ! Filter for L2Trigger. 02/200323 !24 22 \* ======================================================================== */ 25 23 … … 33 31 #include "MFTriggerLvl2.h" 34 32 35 #include <fstream .h>33 #include <fstream> 36 34 37 35 #include "MLog.h" … … 44 42 ClassImp(MFTriggerLvl2); 45 43 44 using namespace std; 46 45 47 46 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mfilter/MFilterList.cc
r1936 r2173 30 30 #include "MFilterList.h" 31 31 32 #include <fstream .h>32 #include <fstream> 33 33 34 34 #include <TString.h> … … 40 40 41 41 ClassImp(MFilterList); 42 43 using namespace std; 42 44 43 45 static const TString gsDefName = "MFilterList"; -
trunk/MagicSoft/Mars/mfilter/MFilterList.h
r1486 r2173 50 50 51 51 void Print(Option_t *opt = "") const; 52 TString GetRule(Option_t *opt="") const; 52 TString GetRule() const { return GetRule(""); } 53 TString GetRule(Option_t *opt) const; 53 54 54 55 ClassDef(MFilterList, 1) // List to combine several filters logically -
trunk/MagicSoft/Mars/mgeom/MGeomCam.cc
r2135 r2173 43 43 44 44 ClassImp(MGeomCam); 45 46 using namespace std; 45 47 46 48 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mgeom/MGeomCamECO1000.cc
r2037 r2173 39 39 40 40 ClassImp(MGeomCamECO1000); 41 42 using namespace std; 41 43 42 44 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mgeom/MGeomCamECO1000HG.cc
r2126 r2173 43 43 44 44 ClassImp(MGeomCamECO1000HG); 45 46 using namespace std; 45 47 46 48 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mgeom/MGeomMirror.cc
r1696 r2173 37 37 38 38 ClassImp(MGeomMirror); 39 40 using namespace std; 39 41 40 42 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mgeom/MGeomPMT.cc
r1632 r2173 37 37 ClassImp(MGeomPMT); 38 38 39 using namespace std; 40 39 41 // -------------------------------------------------------------------------- 40 42 // -
trunk/MagicSoft/Mars/mgeom/MGeomPix.cc
r2135 r2173 47 47 48 48 ClassImp(MGeomPix); 49 50 using namespace std; 49 51 50 52 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mgui/MCamDisplay.cc
r2158 r2173 37 37 #include "MCamDisplay.h" 38 38 39 #include <fstream .h>40 #include <iostream .h>39 #include <fstream> 40 #include <iostream> 41 41 42 42 #include <TBox.h> … … 70 70 ClassImp(MCamDisplay); 71 71 72 using namespace std; 73 72 74 // ------------------------------------------------------------------------ 73 75 // … … 133 135 const Float_t h = 2./kItemsLegend; 134 136 135 const Float_t w = fRange/sqrt( fNumPixels);137 const Float_t w = fRange/sqrt((float)fNumPixels); 136 138 137 139 fLegend = new TClonesArray("TBox", kItemsLegend); -
trunk/MagicSoft/Mars/mgui/MHexagon.cc
r2135 r2173 32 32 #include "MHexagon.h" 33 33 34 #include <fstream .h>35 #include <iostream .h>34 #include <fstream> 35 #include <iostream> 36 36 37 37 #include <TVirtualPad.h> // gPad … … 40 40 41 41 ClassImp(MHexagon); 42 43 using namespace std; 42 44 43 45 // ------------------------------------------------------------------------ -
trunk/MagicSoft/Mars/mhist/MBinning.cc
r2117 r2173 31 31 32 32 #include <ctype.h> // tolower 33 #include <fstream .h>33 #include <fstream> 34 34 35 35 #include <TH1.h> // InheritsFrom … … 41 41 42 42 ClassImp(MBinning); 43 44 using namespace std; 43 45 44 46 static const TString gsDefName = "MBinning"; … … 75 77 } 76 78 77 void MBinning::SetEdges(const TH1 &h, const Char_t axis ='x')79 void MBinning::SetEdges(const TH1 &h, const Char_t axis) 78 80 { 79 81 TH1 &hist = (TH1&)h; // get rid of const qualifier -
trunk/MagicSoft/Mars/mhist/MFillH.cc
r2117 r2173 74 74 #include "MFillH.h" 75 75 76 #include <fstream .h>76 #include <fstream> 77 77 78 78 #include <TClass.h> … … 93 93 94 94 ClassImp(MFillH); 95 96 using namespace std; 95 97 96 98 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhist/MH.cc
r2150 r2173 75 75 ClassImp(MH); 76 76 77 using namespace std; 78 77 79 // -------------------------------------------------------------------------- 78 80 // -
trunk/MagicSoft/Mars/mhist/MH3.cc
r2117 r2173 61 61 62 62 #include <ctype.h> // tolower 63 #include <fstream .h>63 #include <fstream> 64 64 65 65 #include <TPad.h> … … 80 80 81 81 ClassImp(MH3); 82 83 using namespace std; 82 84 83 85 static const TString gsDefName = "MH3"; … … 638 640 } 639 641 640 TString MH3::GetRule(const Char_t axis ='x') const642 TString MH3::GetRule(const Char_t axis) const 641 643 { 642 644 switch (tolower(axis)) -
trunk/MagicSoft/Mars/mhist/MHAlphaEnergyTheta.cc
r2164 r2173 49 49 50 50 ClassImp(MHAlphaEnergyTheta); 51 52 using namespace std; 51 53 52 54 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhist/MHAlphaEnergyTime.cc
r2043 r2173 50 50 ClassImp(MHAlphaEnergyTime); 51 51 52 using namespace std; 52 53 53 54 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhist/MHArray.cc
r2043 r2173 80 80 ClassImp(MHArray); 81 81 82 using namespace std; 83 82 84 ////////////////////////////////////////////////////////////////////////////// 83 85 // … … 551 553 MH::MakeDefCanvas(this); 552 554 553 const Stat_t sstyle = gStyle->GetOptStat();555 const Int_t sstyle = gStyle->GetOptStat(); 554 556 gStyle->SetOptStat(0); 555 557 … … 672 674 o.Remove(scalemax, 9); 673 675 674 const Stat_t sstyle = gStyle->GetOptStat();676 const Int_t sstyle = gStyle->GetOptStat(); 675 677 gStyle->SetOptStat(0); 676 678 -
trunk/MagicSoft/Mars/mhist/MHBlindPixels.cc
r2128 r2173 43 43 44 44 ClassImp(MHBlindPixels); 45 46 using namespace std; 45 47 46 48 // ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhist/MHCerPhotEvt.cc
r2138 r2173 44 44 ClassImp(MHCerPhotEvt); 45 45 46 using namespace std; 47 46 48 // -------------------------------------------------------------------------- 47 49 // 48 50 // Reset all pixels to 0 and reset fEntries to 0. 49 51 // 50 void MHCerPhotEvt::Clear( )52 void MHCerPhotEvt::Clear(const Option_t *) 51 53 { 52 54 fSum.Reset(); -
trunk/MagicSoft/Mars/mhist/MHCerPhotEvt.h
r2161 r2173 26 26 ~MHCerPhotEvt(); 27 27 28 void Clear( );28 void Clear(const Option_t *o=""); 29 29 30 30 Bool_t SetupFill(const MParList *pList); -
trunk/MagicSoft/Mars/mhist/MHCompProb.cc
r2043 r2173 53 53 ClassImp(MHCompProb); 54 54 55 using namespace std; 56 55 57 // -------------------------------------------------------------------------- 56 58 // -
trunk/MagicSoft/Mars/mhist/MHCurrents.cc
r2157 r2173 44 44 ClassImp(MHCurrents); 45 45 46 using namespace std; 47 46 48 // -------------------------------------------------------------------------- 47 49 // 48 50 // Reset all pixels to 0 and reset fEntries to 0. 49 51 // 50 void MHCurrents::Clear( )52 void MHCurrents::Clear(const Option_t *) 51 53 { 52 54 // FIXME: Implement a clear function with setmem -
trunk/MagicSoft/Mars/mhist/MHCurrents.h
r2157 r2173 27 27 ~MHCurrents(); 28 28 29 void Clear( );29 void Clear(const Option_t *o=""); 30 30 31 31 Bool_t SetupFill(const MParList *pList); -
trunk/MagicSoft/Mars/mhist/MHEffOnTime.cc
r2015 r2173 58 58 ClassImp(MHEffOnTime); 59 59 60 using namespace std; 60 61 61 62 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhist/MHEnergyTheta.cc
r2043 r2173 44 44 45 45 ClassImp(MHEnergyTheta); 46 47 using namespace std; 46 48 47 49 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhist/MHEnergyTime.cc
r2043 r2173 45 45 46 46 ClassImp(MHEnergyTime); 47 48 using namespace std; 47 49 48 50 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhist/MHFadcCam.cc
r2043 r2173 41 41 42 42 ClassImp(MHFadcCam); 43 44 using namespace std; 43 45 44 46 // -------------------------------------------------------------------------- … … 130 132 { 131 133 for (Int_t i=0; i<577; i++) 132 Reset (i);134 ResetEntry(i); 133 135 } 134 136 135 void MHFadcCam::Reset (Int_t i)137 void MHFadcCam::ResetEntry(Int_t i) 136 138 { 137 139 GetHistHi(i)->Reset(); -
trunk/MagicSoft/Mars/mhist/MHFadcCam.h
r2043 r2173 49 49 50 50 void ResetHistograms(); 51 void Reset (Int_t i);51 void ResetEntry(Int_t i); 52 52 53 53 // -
trunk/MagicSoft/Mars/mhist/MHFlux.cc
r2016 r2173 58 58 ClassImp(MHFlux); 59 59 60 using namespace std; 61 60 62 MHFlux::MHFlux(const MHGamma &hist, const TString varname, const TString unit) 61 63 : fHOrig(), fHUnfold(), fHFlux() -
trunk/MagicSoft/Mars/mhist/MHGamma.cc
r1992 r2173 48 48 ClassImp(MHGamma); 49 49 50 using namespace std; 50 51 51 52 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhist/MHHadronness.cc
r2060 r2173 75 75 76 76 ClassImp(MHHadronness); 77 78 using namespace std; 77 79 78 80 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhist/MHMatrix.cc
r2133 r2173 47 47 #include "MHMatrix.h" 48 48 49 #include <fstream .h>49 #include <fstream> 50 50 51 51 #include <TList.h> … … 70 70 #include "MFilter.h" 71 71 72 73 72 ClassImp(MHMatrix); 73 74 using namespace std; 74 75 75 76 const TString MHMatrix::gsDefName = "MHMatrix"; -
trunk/MagicSoft/Mars/mhist/MHSigmaPixel.cc
r2043 r2173 48 48 49 49 ClassImp(MHSigmaPixel); 50 51 using namespace std; 50 52 51 53 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhist/MHSigmaTheta.cc
r2159 r2173 56 56 #include "MLogManip.h" 57 57 58 59 58 ClassImp(MHSigmaTheta); 60 59 60 using namespace std; 61 61 62 62 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhist/MHSigmabarTheta.cc
r2043 r2173 46 46 47 47 ClassImp(MHSigmabarTheta); 48 49 using namespace std; 48 50 49 51 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhist/MHStarMap.cc
r2060 r2173 50 50 ClassImp(MHStarMap); 51 51 52 using namespace std; 53 52 54 // -------------------------------------------------------------------------- 53 55 // -
trunk/MagicSoft/Mars/mhist/MHThetabarTheta.cc
r2043 r2173 44 44 45 45 ClassImp(MHThetabarTheta); 46 47 using namespace std; 46 48 47 49 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhist/MHThetabarTime.cc
r2043 r2173 46 46 ClassImp(MHThetabarTime); 47 47 48 using namespace std; 48 49 49 50 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhist/MHTimeDiffTheta.cc
r2043 r2173 47 47 ClassImp(MHTimeDiffTheta); 48 48 49 using namespace std; 49 50 50 51 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhist/MHTimeDiffTime.cc
r2043 r2173 47 47 ClassImp(MHTimeDiffTime); 48 48 49 using namespace std; 49 50 50 51 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhistmc/MHMcCT1CollectionArea.cc
r2043 r2173 41 41 #include "MLogManip.h" 42 42 43 44 43 ClassImp(MHMcCT1CollectionArea); 44 45 using namespace std; 45 46 46 47 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhistmc/MHMcCollectionArea.cc
r2097 r2173 45 45 ClassImp(MHMcCollectionArea); 46 46 47 using namespace std; 48 47 49 // -------------------------------------------------------------------------- 48 50 // -
trunk/MagicSoft/Mars/mhistmc/MHMcEnergy.cc
r2017 r2173 35 35 36 36 #include <stdlib.h> 37 #include <iostream .h>37 #include <iostream> 38 38 39 39 #include <TH1.h> … … 48 48 49 49 ClassImp(MHMcEnergy); 50 51 using namespace std; 50 52 51 53 // ------------------------------------------------------------------------- … … 217 219 Float_t MHMcEnergy::CalcThresholdErr(TF1 *gauss) 218 220 { 219 const Float_t lg10 = log(10 );221 const Float_t lg10 = log(10.); 220 222 const Float_t p1 = gauss->GetParameter(1); 221 223 const Float_t p1err = gauss->GetParError(1); -
trunk/MagicSoft/Mars/mhistmc/MHMcEnergyMigration.cc
r2111 r2173 50 50 ClassImp(MHMcEnergyMigration); 51 51 52 using namespace std; 52 53 53 54 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhistmc/MHMcIntRate.cc
r1974 r2173 44 44 45 45 ClassImp(MHMcIntRate); 46 47 using namespace std; 46 48 47 49 // ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mhistmc/MHMcRate.cc
r2017 r2173 40 40 ClassImp(MHMcRate); 41 41 42 using namespace std; 43 42 44 void MHMcRate::Init(const char *name, const char *title) 43 45 { … … 196 198 const Double_t specidx = 1.0-fSpecIndex; 197 199 198 const Double_t epowmax = pow( fEnergyMax, specidx);199 const Double_t epowmin = pow( fEnergyMin, specidx);200 const Double_t epowmax = pow((double)fEnergyMax, specidx); 201 const Double_t epowmin = pow((double)fEnergyMin, specidx); 200 202 201 203 if (fShowerRate <= 0) -
trunk/MagicSoft/Mars/mhistmc/MHMcTriggerLvl2.cc
r2043 r2173 51 51 #include "MBinning.h" 52 52 53 using namespace std; 54 53 55 /* 54 56 Please, DON'T USE IFDEFS IN SUCH A CONTEXT, Thomas. -
trunk/MagicSoft/Mars/mimage/MCameraSmooth.cc
r1940 r2173 46 46 47 47 ClassImp(MCameraSmooth); 48 49 using namespace std; 48 50 49 51 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mimage/MHHillas.cc
r2098 r2173 53 53 ClassImp(MHHillas); 54 54 55 using namespace std; 56 55 57 // -------------------------------------------------------------------------- 56 58 // -
trunk/MagicSoft/Mars/mimage/MHHillasExt.cc
r2084 r2173 52 52 ClassImp(MHHillasExt); 53 53 54 using namespace std; 55 54 56 // -------------------------------------------------------------------------- 55 57 // -
trunk/MagicSoft/Mars/mimage/MHHillasSrc.cc
r2117 r2173 50 50 ClassImp(MHHillasSrc); 51 51 52 using namespace std; 53 52 54 // -------------------------------------------------------------------------- 53 55 // -
trunk/MagicSoft/Mars/mimage/MHNewImagePar.cc
r2142 r2173 48 48 49 49 ClassImp(MHNewImagePar); 50 51 using namespace std; 50 52 51 53 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mimage/MHillas.cc
r2026 r2173 60 60 #include "MHillas.h" 61 61 62 #include <fstream .h>62 #include <fstream> 63 63 64 64 #include <TArrayF.h> … … 75 75 76 76 ClassImp(MHillas); 77 78 using namespace std; 77 79 78 80 // -------------------------------------------------------------------------- … … 111 113 112 114 fSize = -1; 113 fMeanX = -1;114 fMeanY = -1;115 fMeanX = 0; 116 fMeanY = 0; 115 117 116 118 Clear(); -
trunk/MagicSoft/Mars/mimage/MHillasCalc.cc
r2100 r2173 68 68 69 69 ClassImp(MHillasCalc); 70 71 using namespace std; 70 72 71 73 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mimage/MHillasExt.cc
r2092 r2173 59 59 #include "MHillasExt.h" 60 60 61 #include <fstream .h>61 #include <fstream> 62 62 #include <TArrayF.h> 63 63 … … 74 74 75 75 ClassImp(MHillasExt); 76 77 using namespace std; 76 78 77 79 // ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mimage/MHillasSrc.cc
r2026 r2173 63 63 #include "MHillasSrc.h" 64 64 65 #include <fstream .h>65 #include <fstream> 66 66 #include <TArrayF.h> 67 67 … … 72 72 73 73 ClassImp(MHillasSrc); 74 75 using namespace std; 74 76 75 77 // -------------------------------------------------------------------------- … … 98 100 Bool_t MHillasSrc::Calc(const MHillas *hillas) 99 101 { 100 const Double_t mx = hillas->GetMeanX();// [mm]101 const Double_t my = hillas->GetMeanY();// [mm]102 const Double_t mx = hillas->GetMeanX(); // [mm] 103 const Double_t my = hillas->GetMeanY(); // [mm] 102 104 103 const Double_t sx = mx - fSrcPos->GetX();// [mm]104 const Double_t sy = my - fSrcPos->GetY();// [mm]105 const Double_t sx = mx - fSrcPos->GetX(); // [mm] 106 const Double_t sy = my - fSrcPos->GetY(); // [mm] 105 107 106 const Double_t sd = hillas->GetSinDelta();// [1]107 const Double_t cd = hillas->GetCosDelta();// [1]108 const Double_t sd = hillas->GetSinDelta(); // [1] 109 const Double_t cd = hillas->GetCosDelta(); // [1] 108 110 109 111 // … … 112 114 // The calculation has failed and returnes kFALSE. 113 115 // 114 const Double_t dist = sqrt(sx*sx + sy*sy); 116 const Double_t dist = sqrt(sx*sx + sy*sy); // [mm] 115 117 if (dist==0) 116 118 return kFALSE; … … 124 126 // *OLD* fAlpha = asin(arg)*kRad2Deg; 125 127 126 const Double_t arg1 = cd*sy-sd*sx; 127 const Double_t arg2 = cd*sx+sd*sy; 128 const Double_t arg1 = cd*sy-sd*sx; // [mm] 129 const Double_t arg2 = cd*sx+sd*sy; // [mm] 128 130 129 fAlpha = asin(arg1/dist)*kRad2Deg; 130 fCosDeltaAlpha = arg2/dist; 131 fDist = dist; 131 fAlpha = asin(arg1/dist)*kRad2Deg; // [deg] 132 fCosDeltaAlpha = arg2/dist; // [1] 133 fDist = dist; // [mm] 132 134 133 135 SetReadyToSave(); -
trunk/MagicSoft/Mars/mimage/MHillasSrcCalc.cc
r2161 r2173 33 33 #include "MHillasSrcCalc.h" 34 34 35 #include <fstream .h>35 #include <fstream> 36 36 37 37 #include "MParList.h" … … 44 44 45 45 ClassImp(MHillasSrcCalc); 46 47 using namespace std; 46 48 47 49 static const TString gsDefName = "MHillasSrcCalc"; -
trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc
r2099 r2173 253 253 254 254 #include <stdlib.h> // atof 255 #include <fstream .h>// ofstream, SavePrimitive255 #include <fstream> // ofstream, SavePrimitive 256 256 257 257 #include <TGFrame.h> // TGFrame … … 272 272 273 273 ClassImp(MImgCleanStd); 274 275 using namespace std; 274 276 275 277 enum { -
trunk/MagicSoft/Mars/mimage/MNewImagePar.cc
r2092 r2173 35 35 #include "MNewImagePar.h" 36 36 37 #include <fstream .h>37 #include <fstream> 38 38 39 39 #include "MLog.h" … … 49 49 50 50 ClassImp(MNewImagePar); 51 52 using namespace std; 51 53 52 54 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mmain/MAnalysis.cc
r2142 r2173 24 24 #include "MAnalysis.h" 25 25 26 #include <iostream .h>26 #include <iostream> 27 27 28 28 #include <TGLabel.h> // TGlabel … … 33 33 #include "MImgCleanStd.h" // MImgCleanStd 34 34 35 ClassImp(MAnalysis) 35 ClassImp(MAnalysis); 36 37 using namespace std; 36 38 37 39 enum { -
trunk/MagicSoft/Mars/mmain/MBrowser.cc
r1668 r2173 26 26 #include "MBrowser.h" 27 27 28 #include <iostream .h>28 #include <iostream> 29 29 #include <sys/stat.h> // S_ISDIR 30 30 … … 45 45 46 46 ClassImp(MBrowser); 47 48 using namespace std; 47 49 48 50 enum { -
trunk/MagicSoft/Mars/mmain/MMars.cc
r1668 r2173 26 26 #include "MMars.h" 27 27 28 #include <iostream .h>28 #include <iostream> 29 29 30 30 #include <TApplication.h> // gROOT->GetApplication()->... … … 44 44 #include "MCameraDisplay.h" 45 45 46 ClassImp(MMars) 46 ClassImp(MMars); 47 48 using namespace std; 47 49 48 50 enum { … … 94 96 fList->Add(magic); 95 97 magic->Associate(this); 96 TGLayoutHints *lay1 = new TGLayoutHints(kLHintsLeft, 10 ., 10., 20., 10.);98 TGLayoutHints *lay1 = new TGLayoutHints(kLHintsLeft, 10, 10, 20, 10); 97 99 fList->Add(lay1); 98 100 top->AddFrame(magic, lay1); … … 105 107 fList->Add(mars); 106 108 mars->Associate(this); 107 TGLayoutHints *lay2 = new TGLayoutHints(kLHintsRight, 10 ., 10., 10., 10.);109 TGLayoutHints *lay2 = new TGLayoutHints(kLHintsRight, 10, 10, 10, 10); 108 110 fList->Add(lay2); 109 111 top->AddFrame(mars, lay2); -
trunk/MagicSoft/Mars/mmain/MMonteCarlo.cc
r1911 r2173 27 27 28 28 #include <stdlib.h> 29 #include <iostream .h>29 #include <iostream> 30 30 31 31 #include <TGLabel.h> // TGLabel … … 37 37 #include "MGList.h" 38 38 39 ClassImp(MMonteCarlo) 39 ClassImp(MMonteCarlo); 40 41 using namespace std; 40 42 41 43 enum { -
trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc
r2117 r2173 61 61 #include "MStatusDisplay.h" 62 62 63 #include <fstream .h>// fstream63 #include <fstream> // fstream 64 64 65 65 #include <TLine.h> // TLine … … 98 98 99 99 ClassImp(MStatusDisplay); 100 101 using namespace std; 100 102 101 103 // ------------ Workaround for a non working TGTextView::Search ------------- … … 1356 1358 const TString newstr("%%DocumentPaperSizes: a4\n%%Orientation: Landscape"); 1357 1359 1360 // gcc 3.2: 1361 /* 1358 1362 fstream f(name, ios::in|ios::out|ios::nocreate); 1359 1363 … … 1393 1397 delete c2; 1394 1398 delete c1; 1399 */ 1395 1400 } 1396 1401 … … 1770 1775 // canculate new size of frame (canvas @ 1:sqrt(2)) 1771 1776 if (hchanged) 1772 w = (UInt_t)((h-ch)*sqrt(2 )+.5)+cw;1777 w = (UInt_t)((h-ch)*sqrt(2.)+.5)+cw; 1773 1778 else 1774 h = (UInt_t)((w-cw)/sqrt(2 )+.5)+ch;1779 h = (UInt_t)((w-cw)/sqrt(2.)+.5)+ch; 1775 1780 1776 1781 //cout << "Res: " << w << " " << h << " " << evt->fX << " " << evt->fY << endl; -
trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.cc
r2036 r2173 49 49 50 50 ClassImp(MMcCollectionAreaCalc); 51 52 using namespace std; 51 53 52 54 MMcCollectionAreaCalc::MMcCollectionAreaCalc(const char *input, -
trunk/MagicSoft/Mars/mmontecarlo/MMcEnergyEst.cc
r2119 r2173 62 62 #include "MLogManip.h" 63 63 64 ClassImp(MMcEnergyEst); 65 66 using namespace std; 64 67 65 68 //------------------------------------------------------------------------ … … 67 70 // fcn calculates the function to be minimized (using TMinuit::Migrad) 68 71 // 69 void fcn(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag)72 static void fcn(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag) 70 73 { 71 74 MEvtLoop *evtloop = (MEvtLoop*)gMinuit->GetObjectFit(); … … 82 85 f = eval->GetChisq(); 83 86 } 84 85 ClassImp(MMcEnergyEst);86 87 87 88 // -------------------------------------------------------------------------- … … 323 324 // Print current values of parameters 324 325 // 325 void MMcEnergyEst::Print(Option_t *o) 326 void MMcEnergyEst::Print(Option_t *o) const 326 327 { 327 328 for (Int_t i = 0; i < fA.GetSize(); i++) -
trunk/MagicSoft/Mars/mmontecarlo/MMcEnergyEst.h
r2119 r2173 47 47 48 48 void FindParams(); 49 void Print(Option_t *o="") ;49 void Print(Option_t *o="") const; 50 50 51 51 ClassDef(MMcEnergyEst, 1) // Class for optimization of Energy estimator -
trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.cc
r1108 r2173 52 52 ClassImp(MMcThresholdCalc); 53 53 54 const Float_t MMcThresholdCalc::fSqrt2 = sqrt(2); 54 using namespace std; 55 56 const Float_t MMcThresholdCalc::fSqrt2 = sqrt(2.); 55 57 56 58 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mmontecarlo/MMcTimeGenerate.cc
r1238 r2173 86 86 const UInt_t t = fTime->GetTimeLo(); 87 87 88 fTime->SetTime( t+dt*10000, 0); // [0.1ms]88 fTime->SetTime((int)(t+dt*10000), 0); // [0.1ms] 89 89 90 90 return kTRUE; -
trunk/MagicSoft/Mars/mmontecarlo/MMcTriggerRateCalc.cc
r1893 r2173 29 29 #include "MMcTriggerRateCalc.h" 30 30 31 #include <math.h> 32 33 #include <TCanvas.h> 34 31 35 #include "MLog.h" 32 36 #include "MLogManip.h" 33 37 34 38 #include "MParList.h" 35 #include "MHMcRate.h"36 39 37 40 #include "MMcEvt.hxx" … … 42 45 43 46 #include "MH.h" 44 #include <TCanvas.h> 45 #include <math.h> 46 47 #include "MHMcRate.h" 47 48 48 49 ClassImp(MMcTriggerRateCalc); 50 51 using namespace std; 49 52 50 53 void MMcTriggerRateCalc::Init(int dim, float *trigbg, float simbg, … … 364 367 // Draw rate as a funtion of discriminator threshold. 365 368 // 366 void MMcTriggerRateCalc::Draw( )369 void MMcTriggerRateCalc::Draw(Option_t *) 367 370 { 368 371 /* -
trunk/MagicSoft/Mars/mmontecarlo/MMcTriggerRateCalc.h
r1792 r2173 67 67 TH1F* GetHist(Int_t i) {return fHist[i];} 68 68 69 void Draw( );69 void Draw(const Option_t *o=""); 70 70 71 71 ClassDef(MMcTriggerRateCalc, 0) // Task to compute the trigger rate -
trunk/MagicSoft/Mars/mranforest/MHRanForest.cc
r2071 r2173 50 50 51 51 ClassImp(MHRanForest); 52 53 using namespace std; 52 54 53 55 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mranforest/MHRanForestGini.cc
r2071 r2173 48 48 49 49 ClassImp(MHRanForestGini); 50 51 using namespace std; 50 52 51 53 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mranforest/MRanForest.cc
r2114 r2173 53 53 ClassImp(MRanForest); 54 54 55 using namespace std; 56 55 57 // -------------------------------------------------------------------------- 56 58 // -
trunk/MagicSoft/Mars/mranforest/MRanForestCalc.cc
r2115 r2173 50 50 51 51 ClassImp(MRanForestCalc); 52 53 using namespace std; 52 54 53 55 static const TString gsDefName = "MRanForestCalc"; -
trunk/MagicSoft/Mars/mranforest/MRanForestFill.cc
r2071 r2173 44 44 45 45 ClassImp(MRanForestFill); 46 47 using namespace std; 46 48 47 49 static const TString gsDefName = "MRanForestFill"; -
trunk/MagicSoft/Mars/mranforest/MRanForestGrow.cc
r2071 r2173 43 43 44 44 ClassImp(MRanForestGrow); 45 46 using namespace std; 45 47 46 48 static const TString gsDefName = "MRanForestGrow"; -
trunk/MagicSoft/Mars/mranforest/MRanTree.cc
r2114 r2173 33 33 #include "MRanTree.h" 34 34 35 #include <iostream .h>35 #include <iostream> 36 36 37 37 #include <TVector.h> … … 45 45 46 46 ClassImp(MRanTree); 47 48 using namespace std; 47 49 48 50 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mraw/MRawCrateData.cc
r1082 r2173 33 33 #include "MRawCrateData.h" 34 34 35 #include <iostream .h>36 #include <iomanip .h>35 #include <iostream> 36 #include <iomanip> 37 37 38 #include <fstream .h>38 #include <fstream> 39 39 40 40 #include "MLog.h" … … 42 42 43 43 ClassImp(MRawCrateData); 44 45 using namespace std; 44 46 45 47 MRawCrateData::MRawCrateData() : fDAQCrateNumber(0), fFADCEvtNumber(0), fFADCClockTick(0) … … 54 56 void MRawCrateData::ReadEvt(istream& fin) 55 57 { 56 fin.read(( Byte_t*)&fDAQCrateNumber, 2);57 fin.read(( Byte_t*)&fFADCEvtNumber, 4);58 fin.read(( Byte_t*)&fFADCClockTick, 4);58 fin.read((char*)&fDAQCrateNumber, 2); 59 fin.read((char*)&fFADCEvtNumber, 4); 60 fin.read((char*)&fFADCClockTick, 4); 59 61 } 60 62 -
trunk/MagicSoft/Mars/mraw/MRawCrateData.h
r1031 r2173 6 6 #endif 7 7 8 class ifstream; 8 //gcc 3.2 9 //class ifstream; 10 #include <iosfwd> 9 11 10 12 class MRawCrateData : public MParContainer -
trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
r1947 r2173 50 50 #include "MRawEvtData.h" 51 51 52 #include <fstream .h>52 #include <fstream> 53 53 54 54 #include <TH1.h> … … 65 65 66 66 ClassImp(MRawEvtData); 67 68 using namespace std; 67 69 68 70 // -------------------------------------------------------------------------- … … 430 432 // 431 433 fHiGainPixId->AddAt(npix, ipos); 432 fin.read( higainsam, nhi);434 fin.read((char*)higainsam, nhi); 433 435 higainsam += nhi; 434 436 … … 437 439 //{ 438 440 fLoGainPixId->AddAt(npix, ipos); 439 fin.read( logainsam, nlo);441 fin.read((char*)logainsam, nlo); 440 442 logainsam += nlo; 441 443 //} -
trunk/MagicSoft/Mars/mraw/MRawEvtData.h
r1045 r2173 6 6 #endif 7 7 8 class ifstream; 8 // gcc 3.2 9 //class ifstream; 10 #include <iosfwd> 11 9 12 class MRawRunHeader; 10 13 -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc
r1542 r2173 95 95 #include "MRawEvtHeader.h" 96 96 97 #include <iomanip .h>98 #include <fstream .h>97 #include <iomanip> 98 #include <fstream> 99 99 100 100 #include "MLog.h" … … 106 106 107 107 ClassImp(MRawEvtHeader); 108 109 using namespace std; 108 110 109 111 // -------------------------------------------------------------------------- … … 235 237 int MRawEvtHeader::ReadEvt(istream &fin) 236 238 { 237 fin.read(( Byte_t*)&fDAQEvtNumber, 4);239 fin.read((char*)&fDAQEvtNumber, 4); 238 240 239 241 UInt_t fAbsTime[2]; 240 fin.read(( Byte_t*)fAbsTime, 8);242 fin.read((char*)fAbsTime, 8); 241 243 242 244 // … … 247 249 Byte_t dummy[4]; 248 250 249 fin.read(( Byte_t*)&fNumTrigLvl1, 4);250 fin.read(( Byte_t*)&fNumTrigLvl2, 4);251 fin.read(( Byte_t*)fTrigPattern, 8);252 fin.read(( Byte_t*)&fTrigType, 2);253 fin.read(( Byte_t*)dummy, 2); // was fAllLoGainOn254 fin.read(( Byte_t*)fPixLoGainOn->GetArray(), fPixLoGainOn->GetSize());251 fin.read((char*)&fNumTrigLvl1, 4); 252 fin.read((char*)&fNumTrigLvl2, 4); 253 fin.read((char*)fTrigPattern, 8); 254 fin.read((char*)&fTrigType, 2); 255 fin.read((char*)dummy, 2); // was fAllLoGainOn 256 fin.read((char*)fPixLoGainOn->GetArray(), fPixLoGainOn->GetSize()); 255 257 256 258 fNumLoGainOn = 0; … … 260 262 fNumLoGainOn++; 261 263 262 fin.read(( Byte_t*)&dummy, 4);264 fin.read((char*)&dummy, 4); 263 265 264 266 return !fin.eof(); -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.h
r1542 r2173 6 6 #endif 7 7 8 class ifstream; 8 // gcc 3.2 9 //class ifstream; 10 #include <iosfwd> 11 9 12 class MTime; 10 13 class MArrayB; -
trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
r1082 r2173 41 41 #include "MRawFileRead.h" 42 42 43 #include <fstream .h>43 #include <fstream> 44 44 45 45 #include "MLog.h" … … 56 56 ClassImp(MRawFileRead); 57 57 58 using namespace std; 58 59 59 60 /* ----------- please don't delete and don't care about (Thomas) ------------ -
trunk/MagicSoft/Mars/mraw/MRawFileRead.h
r1031 r2173 6 6 #endif 7 7 8 class ifstream; 8 // gcc 3.2 9 //class ifstream; 10 #include <iosfwd> 9 11 10 12 class MTime; -
trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc
r1108 r2173 54 54 55 55 ClassImp(MRawFileWrite); 56 57 using namespace std; 56 58 57 59 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc
r1082 r2173 33 33 #include "MRawRunHeader.h" 34 34 35 #include <fstream .h>36 #include <iomanip .h>35 #include <fstream> 36 #include <iomanip> 37 37 38 38 #include "MLog.h" … … 42 42 43 43 ClassImp(MRawRunHeader); 44 45 using namespace std; 44 46 45 47 // -------------------------------------------------------------------------- … … 74 76 // read one RUN HEADER from the input stream 75 77 // 76 fin.read(( Byte_t*)&fMagicNumber, 2);78 fin.read((char*)&fMagicNumber, 2); 77 79 78 80 // … … 87 89 Byte_t dummy[16]; 88 90 89 fin.read(( Byte_t*)&fFormatVersion, 2);90 fin.read(( Byte_t*)&fSoftVersion, 2);91 fin.read(( Byte_t*)&fRunType, 2);92 fin.read(( Byte_t*)&fRunNumber, 4);93 fin.read(( Byte_t*)&fProjectName, 22);94 fin.read(( Byte_t*)&fSourceName, 12);95 fin.read(( Byte_t*)dummy, 4); // was RA (moved to tracking system)96 fin.read(( Byte_t*)dummy, 4); // was DEC (moved to tracking system)97 fin.read(( Byte_t*)&fSourceEpochChar, 2);98 fin.read(( Byte_t*)&fSourceEpochDate, 2);99 fin.read(( Byte_t*)&fMJD, 4);100 fin.read(( Byte_t*)&fDateYear, 2);101 fin.read(( Byte_t*)&fDateMonth, 2);102 fin.read(( Byte_t*)&fDateDay, 2);103 fin.read(( Byte_t*)&fNumCrates, 2);104 fin.read(( Byte_t*)&fNumPixInCrate, 2);105 fin.read(( Byte_t*)&fNumSamplesLoGain, 2);106 fin.read(( Byte_t*)&fNumSamplesHiGain, 2);107 fin.read(( Byte_t*)&fNumEvents, 4);91 fin.read((char*)&fFormatVersion, 2); 92 fin.read((char*)&fSoftVersion, 2); 93 fin.read((char*)&fRunType, 2); 94 fin.read((char*)&fRunNumber, 4); 95 fin.read((char*)&fProjectName, 22); 96 fin.read((char*)&fSourceName, 12); 97 fin.read((char*)dummy, 4); // was RA (moved to tracking system) 98 fin.read((char*)dummy, 4); // was DEC (moved to tracking system) 99 fin.read((char*)&fSourceEpochChar, 2); 100 fin.read((char*)&fSourceEpochDate, 2); 101 fin.read((char*)&fMJD, 4); 102 fin.read((char*)&fDateYear, 2); 103 fin.read((char*)&fDateMonth, 2); 104 fin.read((char*)&fDateDay, 2); 105 fin.read((char*)&fNumCrates, 2); 106 fin.read((char*)&fNumPixInCrate, 2); 107 fin.read((char*)&fNumSamplesLoGain, 2); 108 fin.read((char*)&fNumSamplesHiGain, 2); 109 fin.read((char*)&fNumEvents, 4); 108 110 109 111 … … 114 116 fPixAssignment->Set(nPixel); 115 117 116 fin.read(( Byte_t*)fPixAssignment->GetArray(), nPixel*2);117 fin.read(( Byte_t*)&dummy, 16);118 fin.read((char*)fPixAssignment->GetArray(), nPixel*2); 119 fin.read((char*)&dummy, 16); 118 120 } 119 121 -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.h
r1059 r2173 11 11 #endif 12 12 13 // gcc 3.2 14 //class ifstream; 15 #include <iosfwd> 16 13 17 class TBuffer; 14 class ifstream;15 18 class MArrayS; 16 19 -
trunk/MagicSoft/Mars/mreflector/MRflEvtData.cc
r2135 r2173 44 44 ClassImp(MRflEvtData); 45 45 46 using namespace std; 47 46 48 // -------------------------------------------------------------------------- 47 49 // … … 59 61 // Dump informations off all photons 60 62 // 61 void MRflEvtData::Print(Option_t *o ="") const63 void MRflEvtData::Print(Option_t *o) const 62 64 { 63 65 *fLog << all << underline << GetDescriptor() << ":" << endl; -
trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.cc
r2135 r2173 37 37 ClassImp(MRflSinglePhoton); 38 38 39 using namespace std; 40 39 41 // -------------------------------------------------------------------------- 40 42 // 41 43 // Dump all photon information 42 44 // 43 void MRflSinglePhoton::Print(Option_t *o ="") const45 void MRflSinglePhoton::Print(Option_t *o) const 44 46 { 45 47 *fLog << all << "x=" << fX << " y=" << fY << endl; -
trunk/MagicSoft/Mars/mtools/MChisqEval.cc
r1840 r2173 29 29 #include "MChisqEval.h" 30 30 31 #include <fstream .h>31 #include <fstream> 32 32 33 33 #include "MDataChain.h" 34 34 35 35 ClassImp(MChisqEval); 36 37 using namespace std; 36 38 37 39 void MChisqEval::StreamPrimitive(ofstream &out) const -
trunk/MagicSoft/Mars/mtools/MagicCivilization.cc
r1439 r2173 57 57 #include "MagicCivilization.h" 58 58 59 #include <iostream .h>59 #include <iostream> 60 60 61 61 #include <KeySymbols.h> … … 72 72 73 73 ClassImp(MagicCivilization); 74 75 using namespace std; 74 76 75 77 void MagicCivilization::Free() -
trunk/MagicSoft/Mars/mtools/MagicDomino.cc
r1435 r2173 59 59 #include "MagicDomino.h" 60 60 61 #include <iostream .h>61 #include <iostream> 62 62 63 63 #include <KeySymbols.h> … … 74 74 75 75 ClassImp(MagicDomino); 76 77 using namespace std; 76 78 77 79 // ------------------------------------------------------------------------ -
trunk/MagicSoft/Mars/mtools/MagicReversi.cc
r1907 r2173 51 51 #include "MagicReversi.h" 52 52 53 #include <iostream .h>53 #include <iostream> 54 54 55 55 #include <KeySymbols.h> … … 69 69 70 70 ClassImp(MagicReversi); 71 72 using namespace std; 73 71 74 /* 72 75 const Int_t MagicReversi::fColorBombs[7] = { -
trunk/MagicSoft/Mars/mtools/MagicShow.cc
r1435 r2173 57 57 #include "MagicShow.h" 58 58 59 #include <iostream .h>59 #include <iostream> 60 60 61 61 #include <KeySymbols.h> … … 71 71 72 72 ClassImp(MagicShow); 73 74 using namespace std; 73 75 74 76 // ------------------------------------------------------------------------ -
trunk/MagicSoft/Mars/mtools/MagicSnake.cc
r1533 r2173 53 53 #include "MagicSnake.h" 54 54 55 #include <iostream .h>55 #include <iostream> 56 56 57 57 #include <KeySymbols.h> … … 70 70 71 71 ClassImp(MagicSnake); 72 73 using namespace std; 72 74 73 75 void MagicSnake::Free() -
trunk/MagicSoft/Mars/mtools/MineSweeper.cc
r1435 r2173 48 48 #include "MineSweeper.h" 49 49 50 #include <iostream .h>50 #include <iostream> 51 51 52 52 #include <TText.h> … … 64 64 65 65 ClassImp(MineSweeper); 66 67 using namespace std; 66 68 67 69 const Int_t MineSweeper::fColorBombs[7] = { -
trunk/MagicSoft/Mars/readraw.cc
r1914 r2173 19 19 #include "MMcEvt.hxx" 20 20 #include "MMcTrig.hxx" 21 22 using namespace std; 21 23 22 24 ///////////////////////////////////////////////////////////////////////////// -
trunk/MagicSoft/include-Classes/MMcFormat/MMcConfigRunHeader.cc
r1632 r2173 37 37 #include "MMcConfigRunHeader.h" 38 38 39 #include <fstream .h>40 #include <iomanip .h>39 #include <fstream> 40 #include <iomanip> 41 41 42 42 #include <TArrayF.h> … … 46 46 47 47 ClassImp(MMcConfigRunHeader); 48 49 using namespace std; 48 50 49 51 // -------------------------------------------------------------------------- -
trunk/MagicSoft/include-Classes/MMcFormat/MMcCorsikaRunHeader.cc
r1717 r2173 36 36 37 37 ClassImp(MMcCorsikaRunHeader); 38 39 using namespace std; 38 40 39 41 // -------------------------------------------------------------------------- -
trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.cxx
r1983 r2173 23 23 ClassImp(MMcEvt); 24 24 25 using namespace std; 25 26 26 27 -
trunk/MagicSoft/include-Classes/MMcFormat/MMcFadcHeader.cxx
r1032 r2173 1 1 #include "MMcFadcHeader.hxx" 2 2 3 #include <iostream .h>3 #include <iostream> 4 4 5 5 //========== … … 15 15 ClassImp(MMcFadcHeader); 16 16 17 using namespace std; 17 18 18 19 -
trunk/MagicSoft/include-Classes/MMcFormat/MMcRunHeader.cxx
r1983 r2173 69 69 #include "MMcRunHeader.hxx" 70 70 71 #include <fstream .h>72 #include <iomanip .h>71 #include <fstream> 72 #include <iomanip> 73 73 74 74 #include "MLog.h" 75 75 76 76 ClassImp(MMcRunHeader); 77 78 using namespace std; 77 79 78 80 // -------------------------------------------------------------------------- -
trunk/MagicSoft/include-Classes/MMcFormat/MMcTrig.cxx
r1313 r2173 1 1 #include "MMcTrig.hxx" 2 2 3 #include <iostream .h>3 #include <iostream> 4 4 5 5 … … 24 24 ClassImp(MMcTrig); 25 25 26 using namespace std; 26 27 27 28 … … 123 124 // 124 125 125 Byte_t ret=0; 126 Byte_t reminder; 127 Int_t body; 126 const Int_t body=npix/8; 127 const Byte_t reminder= 1>>(npix%8); 128 128 129 body=npix/8; 130 reminder=(Byte_t)(pow(2,npix%8)); 131 132 ret=reminder&fPixelsFirst[body][nfirstlevel]; 133 return(ret); 134 129 return reminder&fPixelsFirst[body][nfirstlevel]; 135 130 } -
trunk/MagicSoft/include-Classes/MMcFormat/MMcTrigHeader.cxx
r1314 r2173 1 1 #include "MMcTrigHeader.hxx" 2 2 3 #include <iostream .h>3 #include <iostream> 4 4 5 5 … … 28 28 ClassImp(MMcTrigHeader); 29 29 30 using namespace std; 30 31 31 32
Note:
See TracChangeset
for help on using the changeset viewer.