Changeset 9378 for trunk/MagicSoft/Mars/msim
- Timestamp:
- 03/03/09 11:19:46 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/msim
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msim/MSimAtmosphere.cc
r9351 r9378 165 165 // the observer 166 166 167 // FIXME: Could be replaced by 0, AtmLay[0]-fAtmLay[3] 168 167 169 const Double_t h[5] = 168 170 { 169 fObsLevel, // 0km170 TMath::Max(fObsLevel, 4e5),// 4km171 1.0e6,// 10km172 4.0e6,// 40km173 1 .0e7// 100km171 fObsLevel, // fObsLevel, // 0km 172 TMath::Max(fObsLevel, 7.75e5), // TMath::Max(fObsLevel, 4e5), // 4km 173 16.5e5, // 10e5, // 10km 174 50.0e5, // 40e5, // 40km 175 105.0e5, // 100e5 // 100km 174 176 }; 175 177 … … 418 420 MAtmosphere(const MCorsikaRunHeader &h) : fAbsCoeffOzone(0), fAbsCoeffAerosols(0) 419 421 { 420 Init(h, "ozone.txt", "aerosols.txt"); 421 } 422 423 MAtmosphere(const char *name1="ozone.txt", const char *name2="aerosols.txt") : fAbsCoeffOzone(0), fAbsCoeffAerosols(0) 424 { 425 InitOzone(name1); 426 InitAerosols(name2); 422 Init(h);//, "ozone.txt", "aerosols.txt"); 423 } 424 425 MAtmosphere(const char *name1=0, const char *name2=0) : fAbsCoeffOzone(0), fAbsCoeffAerosols(0) 426 { 427 if (name1) 428 InitOzone(name1); 429 if (name2) 430 InitAerosols(name2); 427 431 } 428 432 … … 694 698 // 695 699 MSimAtmosphere::MSimAtmosphere(const char* name, const char *title) 696 : fEvt(0), fAtmosphere(0) 700 : fEvt(0), fAtmosphere(0), 701 fFileAerosols("resmc/atmosphere-aerosols.txt"), 702 fFileOzone("resmc/atmosphere-ozone.txt") 697 703 { 698 704 fName = name ? name : "MSimAtmosphere"; … … 753 759 */ 754 760 755 fAtmosphere->Init(*h );761 fAtmosphere->Init(*h, fFileOzone, fFileAerosols); 756 762 757 763 if (!fAtmosphere->IsAllValid()) … … 847 853 // -------------------------------------------------------------------------- 848 854 // 849 // File Name: reflectivity.txt850 // UseTheta: No855 // FileAerosols: resmc/atmosphere-aerosols.txt 856 // FileOzone: resmc/atmosphere-ozone.txt 851 857 // 852 858 Int_t MSimAtmosphere::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 853 859 { 854 860 Bool_t rc = kFALSE; 855 /* 856 if (IsEnvDefined(env, prefix, "File Name", print))861 862 if (IsEnvDefined(env, prefix, "FileAerosols", print)) 857 863 { 858 864 rc = kTRUE; 859 SetFileName(GetEnvValue(env, prefix, "FileName", fFileName));860 } 861 862 if (IsEnvDefined(env, prefix, " UseTheta", print))865 fFileAerosols = GetEnvValue(env, prefix, "FileAerosols", fFileAerosols); 866 } 867 868 if (IsEnvDefined(env, prefix, "FileOzone", print)) 863 869 { 864 870 rc = kTRUE; 865 SetUseTheta(GetEnvValue(env, prefix, "UseTheta", fUseTheta));866 } 867 */ 871 fFileOzone = GetEnvValue(env, prefix, "FileOzone", fFileOzone); 872 } 873 868 874 return rc; 869 875 } -
trunk/MagicSoft/Mars/msim/MSimAtmosphere.h
r9351 r9378 17 17 MAtmosphere *fAtmosphere; //! Instance of class describing atmosphere 18 18 19 TString fFileAerosols; // Name of file with aersole absorption 20 TString fFileOzone; // Name of file with ozone absorption 21 19 22 // MParContainer 20 23 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print=kFALSE); … … 29 32 ~MSimAtmosphere(); 30 33 31 // MSimAtmosphere32 33 // TObject34 35 34 ClassDef(MSimAtmosphere, 0) // Simulate the wavelength and height-dependant atmpsheric absorption 36 35 };
Note:
See TracChangeset
for help on using the changeset viewer.