Changeset 9252
- Timestamp:
- 01/24/09 01:49:53 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r9249 r9252 19 19 -*-*- END OF LINE -*-*- 20 20 21 22 21 2009/01/23 Daniela Dorner 23 22 … … 47 46 48 47 2009/01/23 Thomas Bretz 48 49 * mcorsika/MCorsikaEvtHeader.[h,cc], msim/MPhotonData.[h,cc], 50 msimcamera/MSimExcessNoise.cc, msimreflector/MMirrorDisk.cc, 51 msimreflector/MMirrorHex.cc, msimreflector/MMirrorSquare.[h,cc], 52 msimreflector/MReflector.cc, msimreflector/MSimReflector.cc, 53 melectronics/MAnalogSignal.cc: 54 - moved code which needs TMath to source file 55 - included TMath for newer root versions 56 - included TObjArray for newer root versions 49 57 50 58 * msimcamera/MSimAPD.[h,cc], msimcamera/MSimBundlePhotons.[h,cc], -
trunk/MagicSoft/Mars/mcorsika/MCorsikaEvtHeader.cc
r9229 r9252 33 33 #include <fstream> 34 34 35 #include <TMath.h> 36 35 37 #include "MLog.h" 36 38 #include "MLogManip.h" … … 50 52 fName = name ? name : "MCorsikaEvtHeader"; 51 53 fTitle = title ? title : "Raw Event Header Information"; 54 } 55 56 // -------------------------------------------------------------------------- 57 // 58 // Return Hypot(x, y) 59 // 60 Double_t MCorsikaEvtHeader::GetImpact() const 61 { 62 return TMath::Hypot(fX, fY); 52 63 } 53 64 -
trunk/MagicSoft/Mars/mcorsika/MCorsikaEvtHeader.h
r9229 r9252 58 58 Float_t GetY() const { return fY; } 59 59 60 Double_t GetImpact() const { return TMath::Hypot(fX, fY); }60 Double_t GetImpact() const; 61 61 62 62 Int_t ReadEvt(istream& fin); // read in event header block -
trunk/MagicSoft/Mars/melectronics/MAnalogSignal.cc
r9243 r9252 34 34 35 35 #include <TRandom.h> 36 #include <TObjArray.h> 36 37 37 38 #include "MLog.h" -
trunk/MagicSoft/Mars/msim/MPhotonData.cc
r9243 r9252 40 40 #include <iostream> 41 41 42 #include <TMath.h> 43 42 44 #include "MLog.h" 43 45 #include "MLogManip.h" … … 95 97 // -------------------------------------------------------------------------- 96 98 // 99 // return the cosine of the Theta-angle == sqrt(1-CosU^2-CosV^2) 100 // 101 Double_t MPhotonData::GetCosW() const 102 { 103 return TMath::Sqrt(1 - fCosU*fCosU - fCosV*fCosV); 104 } 105 106 // -------------------------------------------------------------------------- 107 // 108 // Return the theta angle in radians 109 // 110 Double_t MPhotonData::GetTheta() const 111 { 112 return TMath::ACos(GetCosW()); 113 } 114 115 // -------------------------------------------------------------------------- 116 // 117 // Return a TQuaternion with the first three components x, y, and z 118 // and the fourth component the time. 119 // 120 TQuaternion MPhotonData::GetPosQ() const 121 { 122 return TQuaternion(GetPos3(), fTime); 123 } 124 125 // -------------------------------------------------------------------------- 126 // 127 // return a TQuaternion with the first three components the direction 128 // moving in space (GetDir3()) and the fourth component is the 129 // one devided by the speed of light (converted to cm/ns) 130 // 131 // FIXME: v in air! 132 // 133 TQuaternion MPhotonData::GetDirQ() const 134 { 135 return TQuaternion(GetDir3(), 1./(TMath::C()*100/1e9)); 136 } 137 138 // -------------------------------------------------------------------------- 139 // 97 140 // Set the data member according to the 8 floats read from a reflector-file. 98 141 // This function MUST reset all data-members, no matter whether these are -
trunk/MagicSoft/Mars/msim/MPhotonData.h
r9232 r9252 21 21 //class ifstream; 22 22 #include <iosfwd> 23 /* 24 class TH1; 25 class TH2; 26 class TH3; 27 */ 23 28 24 class MCorsikaRunHeader; 29 25 … … 67 63 Float_t GetCosU() const { return fCosU; } 68 64 Float_t GetCosV() const { return fCosV; } 69 Double_t GetCosW() const { return TMath::Sqrt(1 - fCosU*fCosU - fCosV*fCosV); } // cos(Theta)70 Double_t GetTheta() const { return TMath::ACos(GetCosW()); }65 Double_t GetCosW() const; 66 Double_t GetTheta() const; 71 67 72 68 Double_t GetTime() const { return fTime; } … … 81 77 TVector3 GetDir3() const { return TVector3(fCosU, fCosV, -GetCosW()); } 82 78 83 // Getter 4D // cm // ns 84 TQuaternion GetPosQ() const { return TQuaternion(GetPos3(), fTime); } 85 // FIXME: v in air! // m/s cm? / ns 86 TQuaternion GetDirQ() const { return TQuaternion(GetDir3(), 1./(TMath::C()*100/1e9)); } 79 // Getter 4D 80 TQuaternion GetPosQ() const; 81 TQuaternion GetDirQ() const; 87 82 88 83 // Getter Others -
trunk/MagicSoft/Mars/msimcamera/MSimExcessNoise.cc
r9243 r9252 39 39 #include "MSimExcessNoise.h" 40 40 41 #include <TMath.h> 41 42 #include <TRandom.h> 42 43 -
trunk/MagicSoft/Mars/msimreflector/MMirrorDisk.cc
r9243 r9252 31 31 ////////////////////////////////////////////////////////////////////////////// 32 32 #include "MMirrorDisk.h" 33 34 #include <stdlib.h> // atof (Ubuntu 8.10) 35 36 #include <TObjArray.h> 33 37 34 38 #include <TEllipse.h> -
trunk/MagicSoft/Mars/msimreflector/MMirrorHex.cc
r9243 r9252 31 31 ////////////////////////////////////////////////////////////////////////////// 32 32 #include "MMirrorHex.h" 33 34 #include <stdlib.h> // atof (Ubuntu 8.10) 35 36 #include <TMath.h> 37 #include <TObjArray.h> 33 38 34 39 #include <TEllipse.h> -
trunk/MagicSoft/Mars/msimreflector/MMirrorSquare.cc
r9243 r9252 32 32 #include "MMirrorSquare.h" 33 33 34 #include <stdlib.h> // atof (Ubuntu 8.10) 35 36 #include <TMath.h> 37 #include <TObjArray.h> 38 34 39 #include <TBox.h> 35 40 #include <TEllipse.h> … … 41 46 42 47 using namespace std; 48 49 Double_t MMirrorSquare::GetMaxR() const 50 { 51 return TMath::Sqrt(2.)*fSideLength; 52 } 43 53 44 54 // ------------------------------------------------------------------------ -
trunk/MagicSoft/Mars/msimreflector/MMirrorSquare.h
r9236 r9252 13 13 MMirrorSquare() : fSideLength(24.75) { } 14 14 15 Double_t GetMaxR() const { return TMath::Sqrt(2.)*fSideLength; }15 Double_t GetMaxR() const; 16 16 17 17 // This should fit with Paint() -
trunk/MagicSoft/Mars/msimreflector/MReflector.cc
r9243 r9252 33 33 #include <errno.h> 34 34 35 #include <stdlib.h> // atof (Ubuntu 8.10) 36 37 #include <TClass.h> 35 38 #include <TSystem.h> 36 39 -
trunk/MagicSoft/Mars/msimreflector/MSimReflector.cc
r9239 r9252 30 30 #include "MSimReflector.h" 31 31 32 #include <TMath.h> 32 33 #include <TRandom.h> 33 34
Note:
See TracChangeset
for help on using the changeset viewer.