Changeset 1524 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 09/16/02 10:10:17 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/AnalysisLinkDef.h
r1466 r1524 36 36 #pragma link C++ class MEnergyEst+; 37 37 #pragma link C++ class MEnergyEstimate+; 38 #pragma link C++ class MEnergyEstParam+; 39 40 #pragma link C++ class MMatrixLoop+; 38 41 39 42 #pragma link C++ class MPedCalcPedRun+; -
trunk/MagicSoft/Mars/manalysis/MEnergyEst.h
r1211 r1524 10 10 private: 11 11 Double_t fEnergy; // [GeV] Estimated Energy 12 Double_t fImpact; // [cm] Estimated Impact 12 13 13 14 public: … … 15 16 16 17 void SetEnergy(Double_t e) { fEnergy = e; } 18 void SetImpact(Double_t i) { fImpact = i; } 17 19 Double_t GetEnergy() const { return fEnergy; } 20 Double_t GetImpact() const { return fImpact; } 18 21 19 ClassDef(MEnergyEst, 1) // Storage Container for the estimated Energy 22 void Print(Option_t *o="") const; 23 24 ClassDef(MEnergyEst, 0) // Storage Container for the estimated Energy 20 25 }; 21 26 -
trunk/MagicSoft/Mars/manalysis/MHillas.cc
r1466 r1524 55 55 #include <fstream.h> 56 56 57 #include <TArrayF.h> 57 58 #include <TEllipse.h> 58 59 … … 78 79 79 80 Reset(); 80 // FIXME: (intelligent) initialization of values missing81 81 82 82 fEllipse = new TEllipse; … … 380 380 // -------------------------------------------------------------------------- 381 381 // 382 // This function is ment for special usage, please never try to set 383 // values via this function 384 // 385 void MHillas::Set(const TArrayF &arr) 386 { 387 if (arr.GetSize() != 8) 388 return; 389 390 fLength = arr.At(0); // [mm] major axis of ellipse 391 fWidth = arr.At(1); // [mm] minor axis of ellipse 392 fDelta = arr.At(2); // [rad] angle of major axis with x-axis 393 fSize = arr.At(3); // [#CerPhot] sum of content of all pixels (number of Cherenkov photons) 394 fMeanX = arr.At(4); // [mm] x-coordinate of center of ellipse 395 fMeanY = arr.At(5); // [mm] y-coordinate of center of ellipse 396 397 fNumUsedPixels = (Short_t)arr.At(6); // Number of pixels which survived the image cleaning 398 fNumCorePixels = (Short_t)arr.At(7); // number of core pixels 399 } 400 401 402 // -------------------------------------------------------------------------- 403 // 382 404 /* 383 405 void MHillas::AsciiRead(ifstream &fin) -
trunk/MagicSoft/Mars/manalysis/MHillas.h
r1465 r1524 6 6 #endif 7 7 8 class TArrayF; 8 9 class TEllipse; 9 10 … … 62 63 Int_t GetNumCorePixels() const { return fNumCorePixels; } 63 64 65 virtual void Set(const TArrayF &arr); 66 64 67 //virtual void AsciiRead(ifstream &fin); 65 68 //virtual void AsciiWrite(ofstream &fout) const; -
trunk/MagicSoft/Mars/manalysis/MHillasExt.cc
r1509 r1524 37 37 // fM3Long third moment along major axis 38 38 // fM3Trans third moment along minor axis 39 // fLeakage1 ratio : (photons in most outer ring of pixels) over fSize40 // fLeakage2 ratio : (photons in the 2 outer rings of pixels) over fSize41 39 // 42 40 // WARNING: Before you can use fAsym, fM3Long and fM3Trans you must … … 45 43 //////////////////////////////////////////////////////////////////////////// 46 44 /* 45 // fLeakage1 ratio : (photons in most outer ring of pixels) over fSize 46 // fLeakage2 ratio : (photons in the 2 outer rings of pixels) over fSize 47 // 47 48 // fAsymna d/(d na) of ( sum(x*q^na)/sum(q^na), sum(y*q^na)/sum(q^na) ) 48 49 // projected onto the major axis … … 52 53 53 54 #include <fstream.h> 55 #include <TArrayF.h> 54 56 55 57 #include "MGeomPix.h" … … 238 240 } 239 241 242 // -------------------------------------------------------------------------- 243 // 244 // This function is ment for special usage, please never try to set 245 // values via this function 246 // 247 void MHillasExt::Set(const TArrayF &arr) 248 { 249 if (arr.GetSize() != 13) 250 return; 251 252 fConc = arr.At(8); // [ratio] concentration ratio: sum of the two highest pixels / fSize 253 fConc1 = arr.At(9); // [ratio] concentration ratio: sum of the highest pixel / fSize 254 fAsym = arr.At(10); // [mm] fDist minus dist: center of ellipse, highest pixel 255 fM3Long = arr.At(11); // [mm] 3rd moment (e-weighted) along major axis 256 fM3Trans = arr.At(12); // [mm] 3rd moment (e-weighted) along minor axis 257 258 TArrayF n(arr); 259 n.Set(8); 260 MHillas::Set(n); 261 } 262 240 263 /* 241 264 // ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MHillasExt.h
r1460 r1524 34 34 void Print(Option_t *opt=NULL) const; 35 35 36 void Set(const TArrayF &arr); 37 36 38 //void AsciiRead(ifstream &fin); 37 39 //void AsciiWrite(ofstream &fout) const; -
trunk/MagicSoft/Mars/manalysis/MHillasSrc.cc
r1489 r1524 54 54 55 55 #include <fstream.h> 56 #include <TArrayF.h> 56 57 57 58 #include "MLog.h" … … 141 142 *fLog << " - CosDeltaAlpha = " << fCosDeltaAlpha << endl; 142 143 } 144 // -------------------------------------------------------------------------- 145 // 146 // This function is ment for special usage, please never try to set 147 // values via this function 148 // 149 void MHillasSrc::Set(const TArrayF &arr) 150 { 151 if (arr.GetSize() != 4) 152 return; 153 154 fAlpha = arr.At(0); // [deg] angle of major axis with vector to src 155 fDist = arr.At(1); // [mm] distance between src and center of ellipse 156 fHeadTail = arr.At(2); // [mm] 157 fCosDeltaAlpha = arr.At(3); // [1] cosine of angle between d and a 158 } 143 159 144 160 // ----------------------------------------------------------------------- -
trunk/MagicSoft/Mars/manalysis/MHillasSrc.h
r1434 r1524 42 42 virtual Bool_t Calc(const MHillas *hillas); 43 43 44 void Set(const TArrayF &arr); 45 44 46 //virtual void AsciiRead(ifstream &fin); 45 47 //virtual void AsciiWrite(ofstream &fout) const; -
trunk/MagicSoft/Mars/manalysis/Makefile
r1466 r1524 36 36 MEnergyEst.cc \ 37 37 MEnergyEstimate.cc \ 38 MEnergyEstParam.cc \ 38 39 MSrcPosCam.cc \ 39 40 MCameraSmooth.cc \ 40 41 MHadroness.cc \ 42 MMatrixLoop.cc \ 41 43 MCompProbCalc.cc \ 42 44 MMultiDimDistCalc.cc \
Note:
See TracChangeset
for help on using the changeset viewer.