Changeset 5932 for trunk/MagicSoft
- Timestamp:
- 01/21/05 14:06:16 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5930 r5932 31 31 - add place for LoGainSwitch 32 32 33 34 33 35 2005/01/21 Florian Goebel 34 36 … … 37 39 38 40 41 39 42 2005/01/20 Thomas Bretz 40 43 41 44 * mpointing/MSrcPosFromModel.cc: 42 45 - fixed crash in Process if no pointing model available 46 47 * mastro/MObservatory.[h,cc]: 48 - added ReadEnv member function 43 49 44 50 -
trunk/MagicSoft/Mars/mastro/MObservatory.cc
r3927 r5932 130 130 return MAstro::RotationAngle(fSinLatitude, fCosLatitude, theta, phi); 131 131 } 132 133 134 // -------------------------------------------------------------------------- 135 // 136 // Setup the observatory location from resource file: 137 // MObservatory.Name: Magic1, WuerzburgCity 138 // 139 Int_t MObservatory::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 140 { 141 if (IsEnvDefined(env, prefix, "Name", print)) 142 { 143 TString name = GetEnvValue(env, prefix, "Name", "Magic1"); 144 name = name.Strip(TString::kBoth); 145 146 if (name==(TString)"Magic1") 147 { 148 SetLocation(kMagic1); 149 return kTRUE; 150 } 151 152 if (name==(TString)"WuerzburgCity") 153 { 154 SetLocation(kWuerzburgCity); 155 return kTRUE; 156 } 157 158 *fLog << err << "MObservatory::ReadEnv - ERROR: Observatory " << name << " unknown." << endl; 159 return kERROR; 160 } 161 162 return kFALSE; 163 164 } -
trunk/MagicSoft/Mars/mastro/MObservatory.h
r3957 r5932 72 72 LocationName_t GetObservatoryKey() const { return fObservatoryKey; } 73 73 74 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE); 75 74 76 ClassDef(MObservatory, 0) // class storing observatory locations 75 77 };
Note:
See TracChangeset
for help on using the changeset viewer.