Ignore:
Timestamp:
09/16/02 10:10:17 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/AnalysisLinkDef.h

    r1466 r1524  
    3636#pragma link C++ class MEnergyEst+;
    3737#pragma link C++ class MEnergyEstimate+;
     38#pragma link C++ class MEnergyEstParam+;
     39
     40#pragma link C++ class MMatrixLoop+;
    3841
    3942#pragma link C++ class MPedCalcPedRun+;
  • trunk/MagicSoft/Mars/manalysis/MEnergyEst.h

    r1211 r1524  
    1010private:
    1111    Double_t fEnergy; // [GeV] Estimated Energy
     12    Double_t fImpact; // [cm]  Estimated Impact
    1213
    1314public:
     
    1516
    1617    void SetEnergy(Double_t e) { fEnergy = e; }
     18    void SetImpact(Double_t i) { fImpact = i; }
    1719    Double_t GetEnergy() const { return fEnergy; }
     20    Double_t GetImpact() const { return fImpact; }
    1821
    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
    2025};
    2126
  • trunk/MagicSoft/Mars/manalysis/MHillas.cc

    r1466 r1524  
    5555#include <fstream.h>
    5656
     57#include <TArrayF.h>
    5758#include <TEllipse.h>
    5859
     
    7879
    7980    Reset();
    80     // FIXME: (intelligent) initialization of values missing
    8181
    8282    fEllipse = new TEllipse;
     
    380380// --------------------------------------------------------------------------
    381381//
     382// This function is ment for special usage, please never try to set
     383// values via this function
     384//
     385void 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//
    382404/*
    383405void MHillas::AsciiRead(ifstream &fin)
  • trunk/MagicSoft/Mars/manalysis/MHillas.h

    r1465 r1524  
    66#endif
    77
     8class TArrayF;
    89class TEllipse;
    910
     
    6263    Int_t GetNumCorePixels() const { return fNumCorePixels; }
    6364
     65    virtual void Set(const TArrayF &arr);
     66
    6467    //virtual void AsciiRead(ifstream &fin);
    6568    //virtual void AsciiWrite(ofstream &fout) const;
  • trunk/MagicSoft/Mars/manalysis/MHillasExt.cc

    r1509 r1524  
    3737// fM3Long   third moment along major axis
    3838// fM3Trans  third moment along minor axis
    39 // fLeakage1 ratio : (photons in most outer ring of pixels) over fSize
    40 // fLeakage2 ratio : (photons in the 2 outer rings of pixels) over fSize
    4139//
    4240// WARNING: Before you can use fAsym, fM3Long and fM3Trans you must
     
    4543////////////////////////////////////////////////////////////////////////////
    4644/*
     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 //
    4748 // fAsymna   d/(d na) of ( sum(x*q^na)/sum(q^na), sum(y*q^na)/sum(q^na) )
    4849 //           projected onto the major axis
     
    5253
    5354#include <fstream.h>
     55#include <TArrayF.h>
    5456
    5557#include "MGeomPix.h"
     
    238240}
    239241
     242// --------------------------------------------------------------------------
     243//
     244// This function is ment for special usage, please never try to set
     245// values via this function
     246//
     247void 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
    240263/*
    241264// -------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/manalysis/MHillasExt.h

    r1460 r1524  
    3434    void Print(Option_t *opt=NULL) const;
    3535
     36    void Set(const TArrayF &arr);
     37
    3638    //void AsciiRead(ifstream &fin);
    3739    //void AsciiWrite(ofstream &fout) const;
  • trunk/MagicSoft/Mars/manalysis/MHillasSrc.cc

    r1489 r1524  
    5454
    5555#include <fstream.h>
     56#include <TArrayF.h>
    5657
    5758#include "MLog.h"
     
    141142    *fLog << " - CosDeltaAlpha       = " << fCosDeltaAlpha << endl;
    142143}
     144// --------------------------------------------------------------------------
     145//
     146// This function is ment for special usage, please never try to set
     147// values via this function
     148//
     149void 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}
    143159
    144160// -----------------------------------------------------------------------
  • trunk/MagicSoft/Mars/manalysis/MHillasSrc.h

    r1434 r1524  
    4242    virtual Bool_t Calc(const MHillas *hillas);
    4343
     44    void Set(const TArrayF &arr);
     45
    4446    //virtual void AsciiRead(ifstream &fin);
    4547    //virtual void AsciiWrite(ofstream &fout) const;
  • trunk/MagicSoft/Mars/manalysis/Makefile

    r1466 r1524  
    3636           MEnergyEst.cc \
    3737           MEnergyEstimate.cc \
     38           MEnergyEstParam.cc \
    3839           MSrcPosCam.cc \
    3940           MCameraSmooth.cc \
    4041           MHadroness.cc \
     42           MMatrixLoop.cc \
    4143           MCompProbCalc.cc \
    4244           MMultiDimDistCalc.cc \
Note: See TracChangeset for help on using the changeset viewer.