Changeset 10066 for trunk/Cosy/tpoint
- Timestamp:
- 12/01/10 09:35:50 (14 years ago)
- Location:
- trunk/Cosy/tpoint
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosy/tpoint/TPointGui.cc
r10028 r10066 671 671 } 672 672 673 TPointStar set(fname); 674 673 675 while (1) 674 676 { 675 TPointStar set;676 677 677 fin >> set; // Read data from file [deg], it is stored in [rad] 678 678 if (!fin) … … 907 907 908 908 gLog << all << endl << "Sets with Residual exceeding " << fLimit << "deg:" << endl; 909 gLog << " StarAz StarEl RawAz RawEl Mag Residual Filename" << endl; 909 910 910 911 // … … 946 947 947 948 if (resi>fLimit) // 0.13 948 gLog << all << " " << orig << " <" << resi << ">"<< endl;949 gLog << all << " " << orig << " <" << Form("%5.3f", resi) << "> " << orig.GetName() << endl; 949 950 950 951 proaz.Fill(za.Az(), set0.GetResidual(&err)); -
trunk/Cosy/tpoint/TPointStar.cc
r8823 r10066 12 12 using namespace std; 13 13 14 void TPointStar::Init(const char *name, const char *title) 15 { 16 fName = name ? name : "TPointStar"; 17 fTitle = title ? title : "A set of TPoints"; 18 } 19 14 20 TPointStar::TPointStar(Double_t sel, Double_t saz, Double_t rel, Double_t raz) : 15 21 fStarAz(saz*TMath::DegToRad()), … … 18 24 fRawEl(rel*TMath::DegToRad()), fMag(-25) 19 25 { 26 Init(); 20 27 } 21 28 … … 137 144 { 138 145 out << Form("%8.3f", set.fStarAz*TMath::RadToDeg()) << " "; 139 out << Form("% 8.3f", set.fStarEl*TMath::RadToDeg()) << "";146 out << Form("%7.3f", set.fStarEl*TMath::RadToDeg()) << " "; 140 147 out << Form("%8.3f", set.fRawAz*TMath::RadToDeg()) << " "; 141 out << Form("% 8.1f", set.fRawEl*TMath::RadToDeg()) << "";142 out << set.fMag;148 out << Form("%7.3f", set.fRawEl*TMath::RadToDeg()) << " "; 149 out << Form("%6.3f", set.fMag); 143 150 144 151 return out; -
trunk/Cosy/tpoint/TPointStar.h
r9952 r10066 2 2 #define COSY_TPointStar 3 3 4 #ifndef ROOT_T Object5 #include <T Object.h>4 #ifndef ROOT_TNamed 5 #include <TNamed.h> 6 6 #endif 7 7 … … 14 14 class MPointing; 15 15 16 class TPointStar : public T Object16 class TPointStar : public TNamed 17 17 { 18 18 friend istream &operator>>(istream &fin, TPointStar &set); … … 26 26 27 27 Double_t fMag; 28 29 void Init(const char *name=0, const char *title=0); 28 30 public: 29 TPointStar(Double_t sel=0, Double_t saz=0, Double_t rel=0, Double_t raz=0);/* 30 fStarAz(saz*TMath::DegToRad()), 31 fStarEl(sel*TMath::DegToRad()), 32 fRawAz(raz*TMath::DegToRad()), 33 fRawEl(rel*TMath::DegToRad()), fMag(-25) 34 { 35 }*/ 36 37 Double_t GetMag() const { return fMag; } 38 Double_t GetResidual(Double_t *err=0) const; 39 //Double_t GetResidual() const; 40 41 void operator=(TPointStar &set) 31 TPointStar(const char *name, const char *title=0) { Init(name, title); } 32 TPointStar(Double_t sel=0, Double_t saz=0, Double_t rel=0, Double_t raz=0); 33 TPointStar(const TPointStar &set) : TNamed(set) 42 34 { 43 35 fStarAz = set.fStarAz; … … 47 39 fMag = set.fMag; 48 40 } 41 42 Double_t GetMag() const { return fMag; } 43 Double_t GetResidual(Double_t *err=0) const; 44 //Double_t GetResidual() const; 49 45 50 46 Double_t GetDEl() const;// { return (fRawEl-fStarEl)*TMath::RadToDeg(); }
Note:
See TracChangeset
for help on using the changeset viewer.