Changeset 5144 for trunk/MagicSoft/Mars/mastro
- Timestamp:
- 09/28/04 18:30:48 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mastro/MAstroCamera.cc
r4715 r5144 299 299 // Otherwise a new object is created. 300 300 // 301 // FIXME: Add Project functionand change treating MHCamera and 302 // TH2D accordingly 303 // 301 304 void MAstroCamera::AddPrimitives(TString o) 302 305 { … … 469 472 // Do _not_ remove this, name needs to be 470 473 // transferred to the starpos. 471 TString name = radec->GetName(); 472 if (name.Length()==0) { 473 starpos->SetName("unknown"); 474 } else { 475 starpos->SetName(radec->GetName()); 476 } 474 const TString name = radec->GetName(); 475 starpos->SetName(name.IsNull() ? "n/a" : name.Data()); 477 476 478 477 const TVector3 spot = fMirror0->GetReflection(star, fGeom->GetCameraDist())*1000;
Note:
See TracChangeset
for help on using the changeset viewer.