Changeset 4804


Ignore:
Timestamp:
08/30/04 16:06:09 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mpointing
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpointing/MPointing.cc

    r4803 r4804  
    7070
    7171#include <fstream>
    72 #include <iomanip>
    7372
    7473#include <TVector3.h>
     
    9796
    9897    fCoeff = new Double_t*[fNumPar];
    99     fName  = new TString[fNumPar];
     98    fNames = new TString[fNumPar];
    10099    fDescr = new TString[fNumPar];
    101100
    102     fCoeff[ 0] = &fIa;      fName[ 0] = "IA";
    103     fCoeff[ 1] = &fIe;      fName[ 1] = "IE";
    104     fCoeff[ 2] = &fFlop;    fName[ 2] = "FLOP";
    105     fCoeff[ 3] = &fAn;      fName[ 3] = "AN";
    106     fCoeff[ 4] = &fAw;      fName[ 4] = "AW";
    107     fCoeff[ 5] = &fNpae;    fName[ 5] = "NPAE";
    108     fCoeff[ 6] = &fCa;      fName[ 6] = "CA";
    109     fCoeff[ 7] = &fTf;      fName[ 7] = "TF";
    110     fCoeff[ 8] = &fTx;      fName[ 8] = "TX";
    111     fCoeff[ 9] = &fEces;    fName[ 9] = "ECES";
    112     fCoeff[10] = &fAces;    fName[10] = "ACES";
    113     fCoeff[11] = &fEcec;    fName[11] = "ECEC";
    114     fCoeff[12] = &fAcec;    fName[12] = "ACEC";
    115     fCoeff[13] = &fNrx;     fName[13] = "NRX";
    116     fCoeff[14] = &fNry;     fName[14] = "NRY";
    117     fCoeff[15] = &fCrx;     fName[15] = "CRX";
    118     fCoeff[16] = &fCry;     fName[16] = "CRY";
    119     fCoeff[17] = &fMagic1;  fName[17] = "MAGIC1";
    120     fCoeff[18] = &fMagic2;  fName[18] = "MAGIC2";
     101    fCoeff[ 0] = &fIa;      fNames[ 0] = "IA";
     102    fCoeff[ 1] = &fIe;      fNames[ 1] = "IE";
     103    fCoeff[ 2] = &fFlop;    fNames[ 2] = "FLOP";
     104    fCoeff[ 3] = &fAn;      fNames[ 3] = "AN";
     105    fCoeff[ 4] = &fAw;      fNames[ 4] = "AW";
     106    fCoeff[ 5] = &fNpae;    fNames[ 5] = "NPAE";
     107    fCoeff[ 6] = &fCa;      fNames[ 6] = "CA";
     108    fCoeff[ 7] = &fTf;      fNames[ 7] = "TF";
     109    fCoeff[ 8] = &fTx;      fNames[ 8] = "TX";
     110    fCoeff[ 9] = &fEces;    fNames[ 9] = "ECES";
     111    fCoeff[10] = &fAces;    fNames[10] = "ACES";
     112    fCoeff[11] = &fEcec;    fNames[11] = "ECEC";
     113    fCoeff[12] = &fAcec;    fNames[12] = "ACEC";
     114    fCoeff[13] = &fNrx;     fNames[13] = "NRX";
     115    fCoeff[14] = &fNry;     fNames[14] = "NRY";
     116    fCoeff[15] = &fCrx;     fNames[15] = "CRX";
     117    fCoeff[16] = &fCry;     fNames[16] = "CRY";
     118    fCoeff[17] = &fMagic1;  fNames[17] = "MAGIC1";
     119    fCoeff[18] = &fMagic2;  fNames[18] = "MAGIC2";
    121120
    122121    fDescr[ 0] =  "Index Error Azimuth";
     
    226225        Int_t n = -1;
    227226        for (int i=0; i<fNumPar; i++)
    228             if (str==fName[i])
     227            if (str==fNames[i])
    229228            {
    230229                n = i;
     
    634633
    635634    while (n--)
    636         m.mnparm(n, fName[n], *fCoeff[n]*kRad2Deg,  1, -360, 360, ierflg);
     635        m.mnparm(n, fNames[n], *fCoeff[n]*kRad2Deg,  1, -360, 360, ierflg);
    637636}
    638637
     
    681680    {
    682681        m.GetParameter(n, par, err);
    683         cout << Form(" %2d %6s: ", n, (const char*)fName[n]);
     682        cout << Form(" %2d %6s: ", n, (const char*)fNames[n]);
    684683        cout << setw(8) << par << " \xb1 " << setw(6) <<  err << endl;
    685684    }
  • trunk/MagicSoft/Mars/mpointing/MPointing.h

    r4803 r4804  
    6666
    6767    Double_t **fCoeff; //!
    68     TString   *fName; //!
     68    TString   *fNames; //!
    6969    TString   *fDescr; //!
    7070
     
    8888    MPointing() { fError.Set(fNumPar); Init(); Clear(); }
    8989    MPointing(const char *name) { fError.Set(fNumPar); Init(); Clear(); Load(name); }
    90     virtual ~MPointing() { delete fName; delete fCoeff; delete fDescr; }
     90    virtual ~MPointing() { delete fNames; delete fCoeff; delete fDescr; }
    9191
    9292    void Load(const char *name);
     
    161161    void PrintMinuitParameters(TMinuit &m, Int_t n=-1) const;
    162162
    163     const TString &GetVarName(int i) const { return fName[i]; }
     163    const TString &GetVarName(int i) const { return fNames[i]; }
    164164    const TString &GetDescription(int i) const { return fDescr[i]; }
    165165
  • trunk/MagicSoft/Mars/mpointing/Makefile

    r3927 r4804  
    2222           -I../mastro -I../mgeom
    2323
    24 SRCFILES = MPointingPos.cc \
     24SRCFILES = MPointing.cc \
     25           MPointingPos.cc \
    2526           MPointingPosCalc.cc \
    2627           MSrcPosCam.cc \
  • trunk/MagicSoft/Mars/mpointing/PointingLinkDef.h

    r3570 r4804  
    44#pragma link off all classes;
    55#pragma link off all functions;
     6
     7#pragma link C++ class MPointing+;
    68
    79#pragma link C++ class MPointingPos+;
Note: See TracChangeset for help on using the changeset viewer.