Changeset 8907
- Timestamp:
- 06/02/08 09:52:26 (16 years ago)
- Location:
- trunk/MagicSoft
- Files:
-
- 65 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MEventRate.cc
r2780 r8907 46 46 #include "MEventRate.h" 47 47 48 #include <TMath.h> 49 48 50 #include "MLog.h" 49 51 #include "MLogManip.h" … … 62 64 fTitle = title ? title : "Storage container for the event rate [Hz]"; 63 65 } 66 67 Double_t MEventRate::GetError() const 68 { 69 return TMath::Sqrt(1./fNumEvents); 70 } -
trunk/MagicSoft/Mars/manalysis/MEventRate.h
r2779 r8907 17 17 void SetRate(Double_t r, UInt_t n) { fRate = r; fNumEvents = n; } 18 18 Double_t GetRate() const { return fRate; } 19 Double_t GetError() const { return TMath::Sqrt(1./fNumEvents); }19 Double_t GetError() const;// { return TMath::Sqrt(1./fNumEvents); } 20 20 UInt_t GetNumEvents() const { return fNumEvents; } 21 21 -
trunk/MagicSoft/Mars/manalysis/MMultiDimDistCalc.cc
r8075 r8907 47 47 #include <fstream> 48 48 49 #include <math.h> 50 49 51 #include <TVector.h> 50 52 -
trunk/MagicSoft/Mars/mars.cc
r8684 r8907 1 #include <TClass.h> 1 2 #include <TApplication.h> 2 3 -
trunk/MagicSoft/Mars/mastro/MAstro.cc
r8765 r8907 44 44 45 45 ClassImp(MAstro); 46 47 Double_t MAstro::RadToHor() 48 { 49 return 24/TMath::TwoPi(); 50 } 51 52 Double_t MAstro::HorToRad() 53 { 54 return TMath::TwoPi()/24; 55 } 46 56 47 57 Double_t MAstro::Trunc(Double_t val) -
trunk/MagicSoft/Mars/mastro/MAstro.h
r8765 r8907 31 31 static Double_t HorToDeg() { return 1./15; } 32 32 33 static Double_t RadToHor() 34 static Double_t HorToRad() 33 static Double_t RadToHor(); // { return 24/TMath::TwoPi(); } 34 static Double_t HorToRad(); // { return TMath::TwoPi()/24; } 35 35 36 36 // Angle/Time conversion functions -
trunk/MagicSoft/Mars/mastro/MAstroCatalog.cc
r8725 r8907 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MAstroCatalog.cc,v 1. 29 2007-09-02 13:53:55tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MAstroCatalog.cc,v 1.30 2008-06-02 08:46:39 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 20 20 ! Author(s): Thomas Bretz, 03/2004 <mailto:tbretz@astro.uni-wuerzburg.de> 21 21 ! 22 ! Copyright: MAGIC Software Development, 2002-200 522 ! Copyright: MAGIC Software Development, 2002-2008 23 23 ! 24 24 ! … … 143 143 #include <TPaveText.h> // TPaveText 144 144 145 #include <TGraph.h> 145 #include <TH1.h> // TH1F 146 #include <TGraph.h> // TGraph 146 147 147 148 #include "MLog.h" … … 218 219 } 219 220 } 221 222 // -------------------------------------------------------------------------- 223 // 224 // Set Radius of FOV using the pixsize [arcsec/pix], width 225 // and height [pixel] of image 226 // 227 void MAstroCatalog::SetRadiusFOV(Double_t pixsize, Double_t w, Double_t h) 228 { 229 // pixsize [arcsec/pixel] 230 // w [pixel] 231 // h [pixel] 232 const Double_t scale = TMath::Hypot(w, h)/2; 233 SetRadiusFOV(scale*pixsize/3600); 234 } 220 235 221 236 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mastro/MAstroCatalog.h
r8066 r8907 108 108 void SetObservatory(const MObservatory &obs); 109 109 void SetLimMag(Double_t mag) { fLimMag=mag; Update(); } // *MENU* *ARGS={mag=>fLimMag} 110 111 void SetRadiusFOV(Double_t pixsize, Double_t w, Double_t h); 110 112 void SetRadiusFOV(Double_t deg) 111 113 { … … 121 123 Update(); 122 124 } // *MENU* *ARGS={deg=>fRadiusFOV} 123 void SetRadiusFOV(Double_t pixsize, Double_t w, Double_t h)124 {125 // pixsize [arcsec/pixel]126 // w [pixel]127 // h [pixel]128 const Double_t scale = TMath::Hypot(w, h)/2;129 SetRadiusFOV(scale*pixsize/3600);130 } // Set Radius of FOV using the pixsize [arcsec/pix], width and height [pixel] of image131 125 132 126 void SetRaDec(Double_t ra, Double_t dec) { fRaDec.SetRaDec(ra, dec, 1); Update(); } -
trunk/MagicSoft/Mars/mastro/MVector3.cc
r4977 r8907 18 18 ! Author(s): Thomas Bretz, 03/2004 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2002-200 420 ! Copyright: MAGIC Software Development, 2002-2008 21 21 ! 22 22 ! … … 33 33 #include <iostream> 34 34 35 #include <TMath.h> 36 35 37 #include "MLog.h" 36 38 #include "MLogManip.h" … … 39 41 40 42 using namespace std; 43 44 void MVector3::SetThetaPhiMag(Double_t theta, Double_t phi, Double_t mag) 45 { 46 SetMagThetaPhi(TMath::Power(10, -mag/2.5), theta, phi); 47 } 48 49 Double_t MVector3::Magnitude() const 50 { 51 return -2.5*TMath::Log10(Mag()); 52 } 53 54 void MVector3::SetRaDec(Double_t ra, Double_t dec, Double_t mag) 55 { 56 fType = kIsRaDec; 57 SetThetaPhiMag(TMath::Pi()/2-dec, ra, mag); 58 } 59 60 void MVector3::SetAltAz(Double_t alt, Double_t az, Double_t mag) 61 { 62 fType = kIsAltAz; 63 SetThetaPhiMag(TMath::Pi()/2-alt, az, mag); 64 } 41 65 42 66 void MVector3::WriteBinary(ostream &out) const -
trunk/MagicSoft/Mars/mastro/MVector3.h
r8725 r8907 22 22 TString fName; 23 23 24 void SetThetaPhiMag(Double_t theta, Double_t phi, Double_t mag) 25 { 26 SetMagThetaPhi(TMath::Power(10, -mag/2.5), theta, phi); 27 } 24 void SetThetaPhiMag(Double_t theta, Double_t phi, Double_t mag); // SetMagThetaPhi(TMath::Power(10, -mag/2.5), theta, phi); 28 25 29 26 public: … … 35 32 } 36 33 MVector3(const TVector3 &v3) : TVector3(v3) { fType=kIsArbitrary; } 37 Double_t Magnitude() const { return -2.5*TMath::Log10(Mag()); }34 Double_t Magnitude() const;// { return -2.5*TMath::Log10(Mag()); } 38 35 39 36 Bool_t IsValid() const { return fType!=kIsInvalid; } 40 37 41 void SetRaDec(Double_t ra, Double_t dec, Double_t mag=0) 42 { 43 fType = kIsRaDec; 44 SetThetaPhiMag(TMath::Pi()/2-dec, ra, mag); 45 } 46 void SetName(const TString &str) { fName = str.Strip(TString::kBoth); } 38 void SetRaDec(Double_t ra, Double_t dec, Double_t mag=0); // SetThetaPhiMag(TMath::Pi()/2-dec, ra, mag); 39 void SetAltAz(Double_t alt, Double_t az, Double_t mag=0); // SetThetaPhiMag(TMath::Pi()/2-alt, az, mag); 47 40 void SetZdAz(Double_t zd, Double_t az, Double_t mag=0) 48 41 { … … 50 43 SetThetaPhiMag(zd, az, mag); 51 44 } 52 void SetAltAz(Double_t alt, Double_t az, Double_t mag=0)53 {54 fType = kIsAltAz;55 SetThetaPhiMag(TMath::Pi()/2-alt, az, mag);56 }57 45 46 void SetName(const TString &str) { fName = str.Strip(TString::kBoth); } 58 47 const char *GetName() const { return fName; } 59 48 -
trunk/MagicSoft/Mars/mbase/MDirIter.cc
r7808 r8907 18 18 ! Author(s): Thomas Bretz, 6/2003 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 320 ! Copyright: MAGIC Software Development, 2000-2008 21 21 ! 22 22 ! … … 65 65 #include <iostream> 66 66 67 #include <TList.h> 67 68 #include <TNamed.h> 68 69 #include <TRegexp.h> -
trunk/MagicSoft/Mars/mbase/MEnv.cc
r8741 r8907 49 49 #include <Gtypes.h> 50 50 #include <TObjString.h> 51 #include <TObjArray.h> 51 52 52 53 #include <TPave.h> … … 594 595 case kFullDotMedium: val = "fulldotmedium"; 595 596 case kFullDotLarge: val = "fulldotlarge"; 596 case kOpenTriangleDown: val = "opentriangledown";597 case kFullCross: val = "fullcross";597 // case kOpenTriangleDown: val = "opentriangledown"; 598 // case kFullCross: val = "fullcross"; 598 599 case kFullCircle: val = "fullcircle"; 599 600 case kFullSquare: val = "fullsquare"; -
trunk/MagicSoft/Mars/mbase/MFilter.cc
r6892 r8907 18 18 ! Author(s): Thomas Bretz, 07/2001 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 420 ! Copyright: MAGIC Software Development, 2000-2008 21 21 ! 22 22 ! … … 71 71 ///////////////////////////////////////////////////////////////////////////// 72 72 #include "MFilter.h" 73 74 #include <TMath.h> 73 75 74 76 #include "MLog.h" -
trunk/MagicSoft/Mars/mbase/MGMap.cc
r7808 r8907 18 18 ! Author(s): Thomas Bretz, 05/2004 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2002-200 420 ! Copyright: MAGIC Software Development, 2002-2008 21 21 ! 22 22 ! … … 39 39 #include "MGMap.h" 40 40 41 #include <limits.h> // INT_MAX 41 //#include <limits.h> // INT_MAX 42 43 #include <TMath.h> 42 44 43 45 #include <TPad.h> // gPad, TPad::GetMaxDistance() -
trunk/MagicSoft/Mars/mbase/MGTask.cc
r2206 r8907 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 11/2001 <mailto:tbretz@ uni-sw.gwdg.de>18 ! Author(s): Thomas Bretz 11/2001 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 120 ! Copyright: MAGIC Software Development, 2000-2008 21 21 ! 22 22 ! … … 33 33 #include "MGTask.h" 34 34 35 #include <TClass.h> 35 36 #include <TMethod.h> 36 37 -
trunk/MagicSoft/Mars/mbase/MRunIter.cc
r7808 r8907 19 19 ! Author(s): Javier Rico, 4/2004 <mailto:jrico@ifae.es> 20 20 ! 21 ! Copyright: MAGIC Software Development, 2000-200 421 ! Copyright: MAGIC Software Development, 2000-2008 22 22 ! 23 23 ! … … 35 35 #include "MRunIter.h" 36 36 37 #include <iostream> 38 39 #include <TMath.h> 37 40 #include <TSystem.h> 38 #include <iostream>39 41 40 42 ClassImp(MRunIter); 41 43 42 44 using namespace std; 45 46 void MRunIter::SortRuns() 47 { 48 const int n = GetNumRuns(); 49 50 TArrayI idx(n); 51 TMath::Sort(n, fRuns.GetArray(), idx.GetArray(), kFALSE); 52 53 for (int i=0; i<n; i++) 54 idx[i] = fRuns[idx[i]]; 55 56 fRuns = idx; 57 } 43 58 44 59 Int_t MRunIter::AddRun(UInt_t run, const char *path) -
trunk/MagicSoft/Mars/mbase/MRunIter.h
r5469 r8907 28 28 } 29 29 30 void SortRuns() 31 { 32 const int n = GetNumRuns(); 33 34 TArrayI idx(n); 35 TMath::Sort(n, fRuns.GetArray(), idx.GetArray(), kFALSE); 36 37 for (int i=0; i<n; i++) 38 idx[i] = fRuns[idx[i]]; 39 40 fRuns = idx; 41 } 30 void SortRuns(); 42 31 43 32 public: -
trunk/MagicSoft/Mars/mbase/MTask.cc
r8642 r8907 98 98 #include <fstream> 99 99 100 #include <TClass.h> 100 101 #include <TBaseClass.h> // OverwritesProcess 101 102 #include <TStopwatch.h> // TStopwatch -
trunk/MagicSoft/Mars/mbase/MTime.cc
r8765 r8907 18 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 320 ! Copyright: MAGIC Software Development, 2000-2008 21 21 ! 22 22 ! … … 510 510 return fmod(sum, 1)*TMath::TwoPi();//+TMath::TwoPi(); 511 511 } 512 513 // -------------------------------------------------------------------------- 514 // 515 // Return Day of the week: Sun=0, Mon=1, ..., Sat=6 516 // 517 Byte_t MTime::WeekDay() const 518 { 519 return TMath::FloorNint(GetMjd()+3)%7; 520 } 512 521 513 522 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mbase/MTime.h
r8765 r8907 21 21 #include <TTime.h> 22 22 #endif 23 24 #include <TMath.h> 23 25 24 26 struct timeval; … … 131 133 UInt_t Month() const { UShort_t y; Byte_t m, d; GetDate(y,m,d); return m; } 132 134 UInt_t Day() const { UShort_t y; Byte_t m, d; GetDate(y,m,d); return d; } 133 Byte_t WeekDay() const { return TMath::Nint(TMath::Floor(GetMjd()+3))%7; } // Return Day of the week: Sun=0, Mon=1, ..., Sat=6135 Byte_t WeekDay() const; // { return TMath::FloorNint(GetMjd()+3)%7; } // Return Day of the week: Sun=0, Mon=1, ..., Sat=6 134 136 UInt_t Hour() const { Byte_t h, m, s; GetTime(h,m,s); return h; } 135 137 UInt_t Min() const { Byte_t h, m, s; GetTime(h,m,s); return m; } -
trunk/MagicSoft/Mars/mcalib/MCalibrationBlindPix.cc
r8106 r8907 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MCalibrationBlindPix.cc,v 1.1 5 2006-10-17 17:15:59tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MCalibrationBlindPix.cc,v 1.16 2008-06-02 08:46:44 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 56 56 #include "MCalibrationBlindPix.h" 57 57 58 #include <TMath.h> 58 59 #include <TH1.h> 59 60 -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r8644 r8907 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MCalibrationChargeCalc.cc,v 1.18 3 2007-07-24 13:36:35tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MCalibrationChargeCalc.cc,v 1.184 2008-06-02 08:46:44 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 261 261 const Float_t MCalibrationChargeCalc::fgUnsuitablesLimit = 0.1; 262 262 const Float_t MCalibrationChargeCalc::fgUnreliablesLimit = 0.3; 263 const TString MCalibrationChargeCalc::fgNamePedestalCam = "MPedestalCam"; 263 264 const char *MCalibrationChargeCalc::fgNamePedestalCam = "MPedestalCam"; 264 265 265 266 -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.h
r8478 r8907 49 49 static const Float_t fgUnreliablesLimit; //! Default for fUnreliableLimit (now set to: 0.3) 50 50 51 static const TStringfgNamePedestalCam; //! "MPedestalCam"51 static const char *fgNamePedestalCam; //! "MPedestalCam" 52 52 53 53 // Variables … … 213 213 void SetExternalNumPhes ( const Float_t f=0. ) { fExternalNumPhes = f; } 214 214 void SetExternalNumPhesRelVar( const Float_t f=0. ) { fExternalNumPhesRelVar = f; } 215 void SetNamePedestalCam ( const char *name=fgNamePedestalCam .Data()) { fNamePedestalCam = name; }215 void SetNamePedestalCam ( const char *name=fgNamePedestalCam ) { fNamePedestalCam = name; } 216 216 void SetPheErrLowerLimit ( const Float_t f=fgPheErrLowerLimit ) { fPheErrLowerLimit = f; } 217 217 void SetPheErrUpperLimit ( const Float_t f=fgPheErrUpperLimit ) { fPheErrUpperLimit = f; } -
trunk/MagicSoft/Mars/mcalib/MCalibrationPix.cc
r5916 r8907 43 43 #include "MCalibrationPix.h" 44 44 45 #include <TMath.h> 46 45 47 ClassImp(MCalibrationPix); 46 48 -
trunk/MagicSoft/Mars/mcalib/MCalibrationQEPix.cc
r7829 r8907 183 183 #include "MCalibrationQEPix.h" 184 184 185 #include <TMath.h> 186 185 187 #include "MLog.h" 186 188 #include "MLogManip.h" -
trunk/MagicSoft/Mars/mdata/MDataChain.cc
r7784 r8907 168 168 #include <stdlib.h> // strtod, ... 169 169 170 #include <TMath.h> 171 #include <TClass.h> 170 172 #include <TRegexp.h> 171 173 #include <TRandom.h> -
trunk/MagicSoft/Mars/mdata/MDataList.cc
r8073 r8907 31 31 #include "MDataList.h" 32 32 33 #include <math.h> 34 33 35 #include "MLog.h" 34 36 #include "MLogManip.h" -
trunk/MagicSoft/Mars/mdata/MDataPhrase.cc
r8719 r8907 18 18 ! Author(s): Thomas Bretz, 04/2004 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 620 ! Copyright: MAGIC Software Development, 2000-2008 21 21 ! 22 22 ! … … 111 111 #include "MDataPhrase.h" 112 112 113 #include <TMath.h> 113 114 #include <TArrayI.h> 114 115 #include <TPRegexp.h> … … 677 678 } 678 679 680 // -------------------------------------------------------------------------- 681 // 682 // Return the value converted to a Bool_t 683 // 684 Bool_t MDataPhrase::GetBool() const 685 { 686 return TMath::Nint(GetValue())!=0; 687 } 688 679 689 /* 680 690 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mdata/MDataPhrase.h
r8704 r8907 16 16 class TFormula; 17 17 class MParList; 18 19 18 20 19 class MDataPhrase : public MData … … 60 59 61 60 // MDataPhrase 62 Bool_t GetBool() const { return TMath::Nint(GetValue())!=0; }61 Bool_t GetBool() const; 63 62 Bool_t SetRule(const TString &phrase); 64 63 -
trunk/MagicSoft/Mars/mfilter/MFEnergySlope.cc
r7724 r8907 49 49 50 50 #include <fstream> 51 52 #include <TMath.h> 51 53 #include <TRandom.h> 52 54 -
trunk/MagicSoft/Mars/mgeom/MGeomMirror.cc
r3710 r8907 32 32 #include "MGeomMirror.h" 33 33 34 #include <TMath.h> 34 35 #include <TRotation.h> 35 36 -
trunk/MagicSoft/Mars/mgui/MCamEvent.cc
r7438 r8907 39 39 ////////////////////////////////////////////////////////////////////////////// 40 40 #include "MCamEvent.h" 41 42 #include <TMath.h> 41 43 42 44 #include "MGeomCam.h" -
trunk/MagicSoft/Mars/mhbase/MBinning.cc
r8679 r8907 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MBinning.cc,v 1.1 8 2007-08-19 21:35:00tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MBinning.cc,v 1.19 2008-06-02 08:46:47 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 46 46 47 47 #include <TH1.h> // InheritsFrom 48 #include <TMath.h> 48 49 49 50 #include "MLog.h" -
trunk/MagicSoft/Mars/mhbase/MH3.cc
r8895 r8907 150 150 151 151 #include <TObjString.h> 152 #include <THashList.h> 152 153 153 154 //#include <TPad.h> -
trunk/MagicSoft/Mars/mhbase/MHArray.cc
r2735 r8907 64 64 #include <TH2.h> 65 65 #include <TH3.h> 66 #include <TClass.h> 66 67 #include <TStyle.h> 67 68 #include <TGaxis.h> -
trunk/MagicSoft/Mars/mhbase/MHMatrix.cc
r8075 r8907 49 49 #include <fstream> 50 50 51 #include <TMath.h> 52 51 53 #include <TList.h> 52 54 #include <TArrayF.h> -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationPix.cc
r8020 r8907 44 44 #include <TH1.h> 45 45 #include <TF1.h> 46 #include <TMath.h> 46 47 #include <TGraph.h> 47 48 -
trunk/MagicSoft/Mars/mhcalib/MHGausEvents.cc
r8023 r8907 79 79 #include "MHGausEvents.h" 80 80 81 #include <TMath.h> 81 82 #include <TH1.h> 82 83 #include <TF1.h> -
trunk/MagicSoft/Mars/mhflux/MHEnergyEst.cc
r8709 r8907 37 37 #include <TF1.h> 38 38 #include <TLine.h> 39 #include <TMath.h> 39 40 #include <TCanvas.h> 40 41 #include <TStyle.h> -
trunk/MagicSoft/Mars/mhflux/MMcSpectrumWeight.cc
r8883 r8907 282 282 Double_t MMcSpectrumWeight::GetSpecNewIntegral(Double_t emin, Double_t emax) const 283 283 { 284 TF1 funcnew("Dummy", GetFormulaSpecNewX() );284 TF1 funcnew("Dummy", GetFormulaSpecNewX().Data()); 285 285 return funcnew.Integral(emin, emax); 286 286 } … … 293 293 Double_t MMcSpectrumWeight::GetSpecOldIntegral(Double_t emin, Double_t emax) const 294 294 { 295 TF1 funcold("Dummy", GetFormulaSpecOldX() );295 TF1 funcold("Dummy", GetFormulaSpecOldX().Data()); 296 296 return funcold.Integral(emin, emax); 297 297 } … … 304 304 Double_t MMcSpectrumWeight::CalcSpecNew(Double_t e) const 305 305 { 306 TF1 funcnew("Dummy", GetFormulaSpecNewX() );306 TF1 funcnew("Dummy", GetFormulaSpecNewX().Data()); 307 307 return funcnew.Eval(e); 308 308 } … … 315 315 Double_t MMcSpectrumWeight::CalcSpecOld(Double_t e) const 316 316 { 317 TF1 funcnew("Dummy", GetFormulaSpecOldX() );317 TF1 funcnew("Dummy", GetFormulaSpecOldX().Data()); 318 318 return funcnew.Eval(e); 319 319 } … … 412 412 } 413 413 414 fFunc = new TF1("", GetFormulaWeightsX() );414 fFunc = new TF1("", GetFormulaWeightsX().Data()); 415 415 gROOT->GetListOfFunctions()->Remove(fFunc); 416 416 fFunc->SetName("SpectralWeighs"); -
trunk/MagicSoft/Mars/mhist/MHCamEventRot.cc
r5158 r8907 55 55 #include <TF1.h> 56 56 #include <TH2.h> 57 #include <TMath.h> 57 58 #include <TGraph.h> 58 59 #include <TStyle.h> -
trunk/MagicSoft/Mars/mhist/MHHadronness.cc
r8022 r8907 64 64 #include "MHHadronness.h" 65 65 66 #include <TH1.h> 66 67 #include <TPad.h> 68 #include <TMath.h> 67 69 #include <TGraph.h> 68 70 #include <TStyle.h> -
trunk/MagicSoft/Mars/mhist/MHWeather.cc
r7971 r8907 32 32 #include "MHWeather.h" 33 33 34 #include <TH1.h> 34 35 #include <TPad.h> 35 36 #include <TCanvas.h> -
trunk/MagicSoft/Mars/mhvstime/MHPixVsTime.cc
r8022 r8907 43 43 #include "MHPixVsTime.h" 44 44 45 #include <TH1.h> 45 46 #include <TCanvas.h> 46 47 -
trunk/MagicSoft/Mars/mhvstime/MHVsTime.cc
r8478 r8907 73 73 #include <TCanvas.h> 74 74 75 #include <TH1.h> 75 76 #include <TGraphErrors.h> 76 77 -
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r8724 r8907 33 33 #include <TEnv.h> 34 34 #include <TFile.h> 35 #include <TClass.h> 35 36 36 37 // Environment -
trunk/MagicSoft/Mars/mjoptim/MJOptimizeCuts.cc
r8671 r8907 80 80 #include "MJOptimizeCuts.h" 81 81 82 #include <TClass.h> 83 82 84 #include "MHMatrix.h" 83 85 -
trunk/MagicSoft/Mars/mpedestal/MPedestalSubtract.cc
r8891 r8907 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MPedestalSubtract.cc,v 1.1 1 2008-05-15 18:37:26tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MPedestalSubtract.cc,v 1.12 2008-06-02 08:46:54 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 67 67 using namespace std; 68 68 69 const TStringMPedestalSubtract::fgNamePedestalCam = "MPedestalCam";70 const TStringMPedestalSubtract::fgNamePedestalSubtractedEvt = "MPedestalSubtractedEvt";69 const char *MPedestalSubtract::fgNamePedestalCam = "MPedestalCam"; 70 const char *MPedestalSubtract::fgNamePedestalSubtractedEvt = "MPedestalSubtractedEvt"; 71 71 72 72 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mpedestal/MPedestalSubtract.h
r8888 r8907 14 14 { 15 15 private: 16 static const TStringfgNamePedestalCam; //! "MPedestalCam"17 static const TStringfgNamePedestalSubtractedEvt; //! "MPedestalSubtractedEvt"16 static const char *fgNamePedestalCam; //! "MPedestalCam" 17 static const char *fgNamePedestalSubtractedEvt; //! "MPedestalSubtractedEvt" 18 18 19 19 MRawRunHeader *fRunHeader; //! Run Header … … 35 35 36 36 void SetPedestalCam(MPedestalCam *pedcam) { fPedestals = pedcam; } 37 void SetNamePedestalCam(const char *name=fgNamePedestalCam .Data()) { fNamePedestalCam = name; }37 void SetNamePedestalCam(const char *name=fgNamePedestalCam) { fNamePedestalCam = name; } 38 38 39 void SetNamePedestalSubtractedEvt(const char *name=fgNamePedestalSubtractedEvt .Data()) { fNamePedestalSubtractedEvt = name; }39 void SetNamePedestalSubtractedEvt(const char *name=fgNamePedestalSubtractedEvt) { fNamePedestalSubtractedEvt = name; } 40 40 41 41 ClassDef(MPedestalSubtract, 0) // Class to subtract pedestal including AB-noise -
trunk/MagicSoft/Mars/mpointing/MHPointing.cc
r7971 r8907 37 37 #include "MHPointing.h" 38 38 39 #include <TH1.h> 39 40 #include <TPad.h> 40 41 #include <TCanvas.h> -
trunk/MagicSoft/Mars/mranforest/MHRanForest.cc
r3325 r8907 34 34 #include "MHRanForest.h" 35 35 36 #include <TH1.h> 36 37 #include <TPad.h> 38 #include <TMath.h> 37 39 #include <TGraph.h> 38 40 #include <TStyle.h> -
trunk/MagicSoft/Mars/mranforest/MHRanForestGini.cc
r8203 r8907 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHRanForestGini.cc,v 1. 7 2006-11-02 08:57:00tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHRanForestGini.cc,v 1.8 2008-06-02 08:46:43 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 36 36 #include "MHRanForestGini.h" 37 37 38 #include <TH1.h> 38 39 #include <TPad.h> 39 40 #include <TGraph.h> -
trunk/MagicSoft/Mars/mranforest/MRanForest.cc
r8644 r8907 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MRanForest.cc,v 1.2 7 2007-07-24 13:35:39tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MRanForest.cc,v 1.28 2008-06-02 08:46:43 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 45 45 #include "MRanForest.h" 46 46 47 #include <TMath.h> 47 48 #include <TRandom.h> 48 49 -
trunk/MagicSoft/Mars/mreflector/MHReflector.cc
r8695 r8907 30 30 #include "MHReflector.h" 31 31 32 #include <TMath.h> 32 33 #include <TLegend.h> 33 34 #include <TCanvas.h> -
trunk/MagicSoft/Mars/mreflector/MRflEvtHeader.cc
r8765 r8907 30 30 #include "MRflEvtHeader.h" 31 31 32 #include <TMath.h> 33 32 34 #include "MLog.h" 33 35 #include "MLogManip.h" -
trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.cc
r8290 r8907 31 31 ///////////////////////////////////////////////////////////////////////////// 32 32 #include "MRflSinglePhoton.h" 33 34 #include <TMath.h> 33 35 34 36 #include <TH2.h> -
trunk/MagicSoft/Mars/msignal/MExtractTime.cc
r8358 r8907 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MExtractTime.cc,v 1.2 4 2007-03-03 22:48:30tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MExtractTime.cc,v 1.25 2008-06-02 08:46:53 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 85 85 using namespace std; 86 86 87 const TString MExtractTime::fgNameTimeCam= "MArrivalTimeCam";87 const char *MExtractTime::fgNameTimeCam = "MArrivalTimeCam"; 88 88 89 89 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/msignal/MExtractTime.h
r8154 r8907 13 13 protected: 14 14 15 static const TString fgNameTimeCam;//! "MArrivalTimeCam"15 static const char *fgNameTimeCam; //! "MArrivalTimeCam" 16 16 TString fNameTimeCam; // Name of the 'MArrivalTimeCam' container 17 17 … … 33 33 void Print(Option_t *o) const; //*MENU* 34 34 35 void SetNameTimeCam ( const char *name=fgNameTimeCam.Data()) { fNameTimeCam = name; }35 void SetNameTimeCam(const char *name=fgNameTimeCam) { fNameTimeCam = name; } 36 36 37 37 ClassDef(MExtractTime, 3) // Arrival Time Extractor Base Class -
trunk/MagicSoft/Mars/msignal/MExtractor.cc
r8744 r8907 119 119 120 120 const UInt_t MExtractor::fgSaturationLimit = 245; 121 const TStringMExtractor::fgNameSignalCam = "MExtractedSignalCam";121 const char *MExtractor::fgNameSignalCam = "MExtractedSignalCam"; 122 122 const Float_t MExtractor::fgOffsetLoGain = 1.51; // 5 ns 123 123 -
trunk/MagicSoft/Mars/msignal/MExtractor.h
r8502 r8907 32 32 protected: 33 33 static const UInt_t fgSaturationLimit; //! Default for fSaturationLimit (now set to: 254) 34 static const TStringfgNameSignalCam; //! "MExtractedSignalCam"34 static const char *fgNameSignalCam; //! "MExtractedSignalCam" 35 35 36 36 Float_t fOffsetLoGain; // Offset of the low-gain signal w.r.t. the High-Gain slices … … 103 103 void SetOffsetLoGain ( const Float_t f=fgOffsetLoGain ) { fOffsetLoGain = f; } 104 104 void SetSaturationLimit ( const UInt_t lim=fgSaturationLimit ) { fSaturationLimit = lim; } 105 void SetNameSignalCam ( const char *name=fgNameSignalCam .Data()) { fNameSignalCam = name; }105 void SetNameSignalCam ( const char *name=fgNameSignalCam ) { fNameSignalCam = name; } 106 106 void SetNoiseCalculation( const Bool_t b=kTRUE ) { fNoiseCalculation = b; } 107 107 -
trunk/MagicSoft/Mars/msql/MSQLServer.cc
r8709 r8907 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MSQLServer.cc,v 1.1 4 2007-08-25 15:30:26tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MSQLServer.cc,v 1.15 2008-06-02 08:46:49 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 46 46 47 47 #include <TROOT.h> 48 #include <TMath.h> 48 49 49 50 #include <TH1.h> -
trunk/MagicSoft/Mars/mtools/MSimulatedAnnealing.cc
r5837 r8907 121 121 #include <iostream> 122 122 123 #include <TMath.h> 123 124 #include <TRandom.h> 124 125 -
trunk/MagicSoft/Mars/mtools/MTFillMatrix.cc
r8644 r8907 80 80 81 81 #include <TFile.h> 82 #include <TMath.h> 82 83 83 84 // environment -
trunk/MagicSoft/Mars/sinope.cc
r8106 r8907 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: sinope.cc,v 1.1 2 2006-10-17 17:15:58tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: sinope.cc,v 1.13 2008-06-02 08:46:36 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 19 19 ! 20 20 ! Author(s): Thomas Bretz 21 ! Author(s): Daniela Do ener21 ! Author(s): Daniela Dorner 22 22 ! 23 23 ! Copyright: MAGIC Software Development, 2000-2006 … … 29 29 30 30 #include <TROOT.h> 31 #include <TClass.h> 31 32 #include <TApplication.h> 32 33 #include <TObjectTable.h> -
trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.cxx
r8438 r8907 54 54 ///////////////////////////////////////////////////////////////////////////// 55 55 #include "MMcEvt.hxx" 56 57 #include <TMath.h> 56 58 57 59 #include "MLog.h"
Note:
See TracChangeset
for help on using the changeset viewer.