Ignore:
Timestamp:
09/28/04 18:30:48 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mastro/MAstroCamera.cc

    r4715 r5144  
    299299// Otherwise a new object is created.
    300300//
     301// FIXME: Add Project functionand change treating MHCamera and
     302//        TH2D accordingly
     303//
    301304void MAstroCamera::AddPrimitives(TString o)
    302305{
     
    469472      // Do _not_ remove this, name needs to be
    470473      // 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());
    477476
    478477      const TVector3 spot = fMirror0->GetReflection(star, fGeom->GetCameraDist())*1000;
Note: See TracChangeset for help on using the changeset viewer.