Changeset 4804
- Timestamp:
- 08/30/04 16:06:09 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mpointing
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpointing/MPointing.cc
r4803 r4804 70 70 71 71 #include <fstream> 72 #include <iomanip>73 72 74 73 #include <TVector3.h> … … 97 96 98 97 fCoeff = new Double_t*[fNumPar]; 99 fName 98 fNames = new TString[fNumPar]; 100 99 fDescr = new TString[fNumPar]; 101 100 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"; 121 120 122 121 fDescr[ 0] = "Index Error Azimuth"; … … 226 225 Int_t n = -1; 227 226 for (int i=0; i<fNumPar; i++) 228 if (str==fName [i])227 if (str==fNames[i]) 229 228 { 230 229 n = i; … … 634 633 635 634 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); 637 636 } 638 637 … … 681 680 { 682 681 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]); 684 683 cout << setw(8) << par << " \xb1 " << setw(6) << err << endl; 685 684 } -
trunk/MagicSoft/Mars/mpointing/MPointing.h
r4803 r4804 66 66 67 67 Double_t **fCoeff; //! 68 TString *fName ;//!68 TString *fNames; //! 69 69 TString *fDescr; //! 70 70 … … 88 88 MPointing() { fError.Set(fNumPar); Init(); Clear(); } 89 89 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; } 91 91 92 92 void Load(const char *name); … … 161 161 void PrintMinuitParameters(TMinuit &m, Int_t n=-1) const; 162 162 163 const TString &GetVarName(int i) const { return fName [i]; }163 const TString &GetVarName(int i) const { return fNames[i]; } 164 164 const TString &GetDescription(int i) const { return fDescr[i]; } 165 165 -
trunk/MagicSoft/Mars/mpointing/Makefile
r3927 r4804 22 22 -I../mastro -I../mgeom 23 23 24 SRCFILES = MPointingPos.cc \ 24 SRCFILES = MPointing.cc \ 25 MPointingPos.cc \ 25 26 MPointingPosCalc.cc \ 26 27 MSrcPosCam.cc \ -
trunk/MagicSoft/Mars/mpointing/PointingLinkDef.h
r3570 r4804 4 4 #pragma link off all classes; 5 5 #pragma link off all functions; 6 7 #pragma link C++ class MPointing+; 6 8 7 9 #pragma link C++ class MPointingPos+;
Note:
See TracChangeset
for help on using the changeset viewer.