Ignore:
Timestamp:
02/21/02 12:08:03 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MHillas.cc

    r1211 r1218  
    3636// fDelta    angle of major axis wrt x-axis
    3737// fSize     total sum of pixels
    38 // fMeanx    x of center of ellipse
    39 // fMeany    y of center of ellipse
     38// fMeanX    x of center of ellipse
     39// fMeanY    y of center of ellipse
    4040//
    4141/////////////////////////////////////////////////////////////////////////////
     
    8989    fDelta  = 0;
    9090    fSize   = 0;
    91     fMeanx  = 0;
    92     fMeany  = 0;
     91    fMeanX  = 0;
     92    fMeanY  = 0;
    9393
    9494    Clear();
     
    101101void MHillas::Print(Option_t *) const
    102102{
    103     Double_t atg = atan2(fMeany, fMeanx)*kRad2Deg;
     103    Double_t atg = atan2(fMeanY, fMeanX)*kRad2Deg;
    104104
    105105    if (atg<0)
     
    110110    *fLog << " - Length   [mm]  = " << fLength << endl;
    111111    *fLog << " - Width    [mm]  = " << fWidth  << endl;
    112     *fLog << " - Meanx    [mm]  = " << fMeanx  << endl;
    113     *fLog << " - Meany    [mm]  = " << fMeany  << endl;
     112    *fLog << " - Meanx    [mm]  = " << fMeanX  << endl;
     113    *fLog << " - Meany    [mm]  = " << fMeanY  << endl;
    114114    *fLog << " - Delta    [deg] = " << fDelta*kRad2Deg << endl;
    115115    *fLog << " - atg(y/x) [deg] = " << atg     << endl;
     
    125125{
    126126     fEllipse->SetLineWidth(2);
    127      fEllipse->PaintEllipse(fMeanx, fMeany, fLength, fWidth,
     127     fEllipse->PaintEllipse(fMeanX, fMeanY, fLength, fWidth,
    128128                            0, 360, fDelta*kRad2Deg+180);
    129129}
     
    143143    Clear();
    144144
    145     fEllipse = new TEllipse(fMeanx, fMeany, fLength, fWidth,
     145    fEllipse = new TEllipse(fMeanX, fMeanY, fLength, fWidth,
    146146                            0, 360, fDelta*kRad2Deg+180);
    147147
     
    155155     fEllipse->SetR2(fWidth);
    156156     fEllipse->SetTheta(fDelta*kRad2Deg+180);
    157      fEllipse->SetX1(fMeanx);
    158      fEllipse->SetY1(fMeany);
     157     fEllipse->SetX1(fMeanX);
     158     fEllipse->SetY1(fMeanY);
    159159
    160160     fEllipse->SetLineWidth(2);
    161      fEllipse->PaintEllipse(fMeanx, fMeany, fLength, fWidth,
     161     fEllipse->PaintEllipse(fMeanX, fMeanY, fLength, fWidth,
    162162                            0, 360, fDelta*kRad2Deg+180);
    163163
     
    216216    // -----------------------------------------------------
    217217    //
    218     fMeanx = 0;
    219     fMeany = 0;
     218    fMeanX = 0;
     219    fMeanY = 0;
    220220    fSize  = 0;
    221221
     
    236236
    237237        fSize  += nphot;                             // [counter]
    238         fMeanx += nphot * gpix.GetX();               // [mm]
    239         fMeany += nphot * gpix.GetY();               // [mm]
     238        fMeanX += nphot * gpix.GetX();               // [mm]
     239        fMeanY += nphot * gpix.GetY();               // [mm]
    240240
    241241        npix++;
     
    248248        return kFALSE;
    249249
    250     fMeanx /= fSize;                                 // [mm]
    251     fMeany /= fSize;                                 // [mm]
     250    fMeanX /= fSize;                                 // [mm]
     251    fMeanY /= fSize;                                 // [mm]
    252252
    253253    //
     
    267267
    268268        const MGeomPix &gpix = geom[pix.GetPixId()];
    269         const float dx = gpix.GetX() - fMeanx;       // [mm]
    270         const float dy = gpix.GetY() - fMeany;       // [mm]
     269        const float dx = gpix.GetX() - fMeanX;       // [mm]
     270        const float dy = gpix.GetY() - fMeanY;       // [mm]
    271271
    272272        const float nphot = pix.GetNumPhotons();     // [#phot]
     
    311311    fin >> fDelta;
    312312    fin >> fSize;
    313     fin >> fMeanx;
    314     fin >> fMeany;
    315 }
    316 
    317 // --------------------------------------------------------------------------
    318 //
     313    fin >> fMeanX;
     314    fin >> fMeanY;
     315}
     316
     317// --------------------------------------------------------------------------
     318/*
    319319void MHillas::AsciiWrite(ofstream &fout) const
    320320{
     
    323323    fout << fDelta  << " ";
    324324    fout << fSize   << " ";
    325     fout << fMeanx  << " ";
    326     fout << fMeany;
    327 }
     325    fout << fMeanX  << " ";
     326    fout << fMeanY;
     327}
     328*/
  • trunk/MagicSoft/Mars/manalysis/MHillas.h

    r1203 r1218  
    1919    Float_t   fDelta;    // [rad]       angle of major axis with x-axis
    2020    Float_t   fSize;     // [#CerPhot]  sum of content of all pixels (number of Cherenkov photons)
    21     Float_t   fMeanx;    // [mm]        x-coordinate of center of ellipse
    22     Float_t   fMeany;    // [mm]        y-coordinate of center of ellipse
     21    Float_t   fMeanX;    // [mm]        x-coordinate of center of ellipse
     22    Float_t   fMeanY;    // [mm]        y-coordinate of center of ellipse
    2323
    2424    Float_t   fSinDelta; //! [1] sin of Delta (to be used in derived classes)
     
    5353    Float_t GetDelta() const  { return fDelta; }
    5454    Float_t GetSize() const   { return fSize; }
    55     Float_t GetMeanX() const  { return fMeanx; }
    56     Float_t GetMeanY() const  { return fMeany; }
     55    Float_t GetMeanX() const  { return fMeanX; }
     56    Float_t GetMeanY() const  { return fMeanY; }
    5757
    5858    virtual void AsciiRead(ifstream &fin);
    59     virtual void AsciiWrite(ofstream &fout) const;
     59    //virtual void AsciiWrite(ofstream &fout) const;
    6060
    6161    ClassDef(MHillas, 1) // Storage Container for Hillas Parameter
  • trunk/MagicSoft/Mars/manalysis/MHillasSrc.cc

    r1211 r1218  
    101101//
    102102// overloaded MParContainer to write MHillasSrc to an ascii file
    103 //
     103/*
    104104void MHillasSrc::AsciiWrite(ofstream &fout) const
    105105{
    106106    fout << fAlpha << " " << fDist;
    107107}
     108*/
  • trunk/MagicSoft/Mars/manalysis/MHillasSrc.h

    r1203 r1218  
    3737
    3838    virtual void AsciiRead(ifstream &fin);
    39     virtual void AsciiWrite(ofstream &fout) const;
     39    //virtual void AsciiWrite(ofstream &fout) const;
    4040
    4141    ClassDef(MHillasSrc, 1) // Container to hold source position dependant parameters
Note: See TracChangeset for help on using the changeset viewer.