Changeset 1745
- Timestamp:
- 02/06/03 11:59:10 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1744 r1745 3 3 2003/02/06: Thomas Bretz 4 4 5 * mbase/MLog.[h,cc]: 6 - serialized the GUI output (problems with mutithreded prgs, eg Cosy) 7 8 * mtemp/MObservatoryLocation.[h,cc], mtemp/MVPObject.[h,cc], 9 mtemp/MVPPlotter.[h,cc]: 10 - added changes discussed in Wuerzburg 11 12 * mfileio/MCT1ReadPreProc.cc: 13 - some simplifications 5 * mbase/MLog.[h,cc]: 6 - serialized the GUI output (problems with mutithreded prgs, 7 eg Cosy) 8 9 * mtemp/MObservatoryLocation.[h,cc], mtemp/MVPObject.[h,cc], 10 mtemp/MVPPlotter.[h,cc]: 11 - added changes discussed in Wuerzburg 12 13 * mfileio/MCT1ReadPreProc.cc: 14 - some simplifications 14 15 15 16 … … 22 23 color of a given pixel 23 24 24 * created two new classes for simulating the second level trigger in the 25 directory manalysis: 26 - MTrigLvl2.[cc|h] // Implement the Lvl2 topology and selection 27 // strategies 28 - MTrigLvl2FillTask.[cc|h] // For a given MMc event, fill the MTrigLvl2 29 with the Lvl1 trigger information 25 * created two new classes for simulating the second level trigger 26 in the directory manalysis: 27 - MTrigLvl2.[cc|h] // Implement the Lvl2 topology and 28 // selection strategies 29 - MTrigLvl2FillTask.[cc|h] // For a given MMc event, fill the 30 // MTrigLvl2 with the Lvl1 trigger 31 // information 30 32 31 33 * manalysis/Makefile … … 38 40 2003/01/27: Robert Wagner 39 41 40 * mfileio/MCT1ReadPreProc.[cc|h]41 - Added call of MTaskList::ReInit after processing of new42 run header43 - Filling of MC container complies to Oscar's changes of44 MMcEvt.[hxx,cxx] dated 2003/01/2045 - Added filling of run number in MRawRunHeader object while46 processing a new run header42 * mfileio/MCT1ReadPreProc.[cc|h] 43 - Added call of MTaskList::ReInit after processing of new 44 run header 45 - Filling of MC container complies to Oscar's changes of 46 MMcEvt.[hxx,cxx] dated 2003/01/20 47 - Added filling of run number in MRawRunHeader object while 48 processing a new run header 47 49 48 50 … … 50 52 2003/01/23: Robert Wagner 51 53 52 * manalyis/MSigmabarCalc.cc53 - MSigmabarCalc::Process()54 Replaced fMcEvt->GetTheta() by fMcEvt->GetTelescopeTheta()54 * manalyis/MSigmabarCalc.cc 55 - MSigmabarCalc::Process() 56 Replaced fMcEvt->GetTheta() by fMcEvt->GetTelescopeTheta() 55 57 56 58 … … 58 60 2003/01/20: Oscar Blanch 59 61 60 * mmc/MMcEvt.[hxx,cxx]61 - Data members: fElecCphFraction, fMuonCphFraction,62 fOtherCphFraction have been introduced.63 - Class version updated to 3.64 65 * mmc/MMcCorsikaRunHeader.[h.cc]66 - Data members: fWobbleMode and fAtmosphericModel introduced.67 - Class version updated to 2.62 * mmc/MMcEvt.[hxx,cxx] 63 - Data members: fElecCphFraction, fMuonCphFraction, 64 fOtherCphFraction have been introduced. 65 - Class version updated to 3. 66 67 * mmc/MMcCorsikaRunHeader.[h.cc] 68 - Data members: fWobbleMode and fAtmosphericModel introduced. 69 - Class version updated to 2. 68 70 69 71 70 72 71 73 2003/01/19: Thomas Bretz 72 73 * manalysis/MCerPhotCalc.[h,cc]:74 - slight changes, mainly to the layout75 76 * manalysis/MCerPhotEvt.[h,cc]:77 - some small changes to make the code a bit faster78 79 * manalysis/MCerPhotPix.[h,cc]:80 - added AddNumPhotons81 82 * mbase/MContinue.[h,cc]:83 - changed comments84 - enhanced functionality and fixed some small bugs85 86 * mbase/Makefile:87 - added mfilter to paths (to be fixed)88 89 * mfileio/MCT1ReadPreProc.cc:90 - Init fNumEvents = 091 92 * mgeom/MGeomCam.cc:93 - return 0 Ratio if the pixel number exceeds the number of pixels74 75 * manalysis/MCerPhotCalc.[h,cc]: 76 - slight changes, mainly to the layout 77 78 * manalysis/MCerPhotEvt.[h,cc]: 79 - some small changes to make the code a bit faster 80 81 * manalysis/MCerPhotPix.[h,cc]: 82 - added AddNumPhotons 83 84 * mbase/MContinue.[h,cc]: 85 - changed comments 86 - enhanced functionality and fixed some small bugs 87 88 * mbase/Makefile: 89 - added mfilter to paths (to be fixed) 90 91 * mfileio/MCT1ReadPreProc.cc: 92 - Init fNumEvents = 0 93 94 * mgeom/MGeomCam.cc: 95 - return 0 Ratio if the pixel number exceeds the number of pixels 94 96 95 97 * mgui/MCamDisplay.[h,cc]: … … 99 101 - fixed the context menu display 100 102 101 * mhist/HistLinkDef.h, mhist/Makefile:102 - added MHCerPhotEvt103 104 * mhist/MHCerPhotEvt.[h,cc]:105 - added106 107 * mhist/MFillH.cc:108 - changed the initialization of fParContainer from pList to NULL109 110 * mhist/MHHillasExt.cc:111 - fixed a smallo bug when filling the histograms (crached when scaling112 under some circumstances)113 114 * mhist/MHStarMap.cc:115 - added a warning output116 117 * mmontecarlo/MMcCollectionAreaCalc.cc:118 - added a check for impact=NaN (some MC Files have this)103 * mhist/HistLinkDef.h, mhist/Makefile: 104 - added MHCerPhotEvt 105 106 * mhist/MHCerPhotEvt.[h,cc]: 107 - added 108 109 * mhist/MFillH.cc: 110 - changed the initialization of fParContainer from pList to NULL 111 112 * mhist/MHHillasExt.cc: 113 - fixed a smallo bug when filling the histograms (crached when scaling 114 under some circumstances) 115 116 * mhist/MHStarMap.cc: 117 - added a warning output 118 119 * mmontecarlo/MMcCollectionAreaCalc.cc: 120 - added a check for impact=NaN (some MC Files have this) 119 121 120 122 … … 163 165 otherwise, we got a compilation error in Alpha machines. 164 166 165 <<<<<<< Changelog166 167 168 2002/12/13: Oscar Blanch169 =======170 167 171 168 172 169 2002/12/13: Oscar blanch 173 >>>>>>> 1.369174 170 175 171 * mgeom/MGeomMirror.[h,cc] -
trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc
r1736 r1745 431 431 fIn->read((Byte_t*)&outpars, sizeof(struct outputpars)); 432 432 433 <<<<<<< MCT1ReadPreProc.cc 434 return ProcessRunHeader(outpars); 435 ======= 433 436 ProcessRunHeader(outpars); 434 437 … … 438 441 439 442 return kTRUE; 443 >>>>>>> 1.13 440 444 } 441 445 … … 908 912 *fLog << "-----------------------------------------------------------------------" << endl; 909 913 910 switch (ReadRunHeader()) 911 { 912 case kTRUE: 913 return kTRUE; 914 break; 915 case -1: 916 *fLog << warn << "ReInit of Tasklist didn't succeed." << endl; 917 return kFALSE; 918 break; 919 default: 920 return kTRUE; 921 } 914 if (ReadRunHeader() < 0) 915 { 916 *fLog << warn << "ReInit of Tasklist didn't succeed." << endl; 917 return kFALSE; 918 } 919 return kTRUE; 922 920 } 923 921 } -
trunk/MagicSoft/Mars/mtemp/MObservatoryLocation.cc
r1681 r1745 38 38 ClassImp(MObservatoryLocation); 39 39 40 MObservatoryLocation::MObservatoryLocation(const char *name, const char *title)40 void MObservatoryLocation::Init(const char *name, const char *title) 41 41 { 42 42 fName = name ? name : "MObservatoryLocation"; 43 43 fTitle = title ? title : "Storage container for coordinates of an observatory"; 44 // TH1F fHorizon=new TH1F; 45 fgDegToRad=2*TMath::Pi()/360; 46 fLatitude = 28.7594 * fgDegToRad; // rad; 28 45 34 47 fLongitude = 17.8761 * fgDegToRad; // rad; 17 52 34; 44 } 45 46 MObservatoryLocation::MObservatoryLocation(const char *name, const char *title) 47 { 48 Init(); 49 50 fLatitude = 28.7594 / kRad2Deg; // rad; 28 45 34 51 fLongitude = 17.8761 / kRad2Deg; // rad; 17 52 34; 48 52 // slalib uses + for WEST !!! 49 53 fElevation = 2300; // m 50 54 fObsName = "Observatorio del Roque de los Muchachos"; 55 } 56 57 MObservatoryLocation::MObservatoryLocation(LocationName_t name, const char *name=NULL, const char *title=NULL) 58 { 59 Init(); 60 61 switch (name) 62 { 63 case kMagic1: 64 case kMagic2: 65 case kRobertGarten: 66 fLatitude = 28.7594 / kRad2Deg; // rad; 28 45 34 67 fLongitude = 17.8761 / kRad2Deg; // rad; 17 52 34; 68 // slalib uses + for WEST !!! 69 fElevation = 2300; // m 70 fObsName = "Observatorio del Roque de los Muchachos"; 71 break; 72 } 51 73 } 52 74 … … 64 86 *fLog << all; 65 87 *fLog << fObsName << endl; 66 *fLog << "Latitude " << (fLatitude > 0 ? (fLatitude /fgDegToRad) : -(fLatitude/fgDegToRad)) << " deg " << (fLatitude > 0 ? "W" : "E") << endl;67 *fLog << "Longitude " << (fLongitude > 0 ? (fLongitude /fgDegToRad) : -(fLongitude/fgDegToRad)) <<" deg " << (fLongitude < 0 ? "N" : "S") << endl;88 *fLog << "Latitude " << (fLatitude > 0 ? (fLatitude*kRad2Deg) : -(fLatitude*kRad2Deg)) << " deg " << (fLatitude > 0 ? "W" : "E") << endl; 89 *fLog << "Longitude " << (fLongitude > 0 ? (fLongitude*kRad2Deg) : -(fLongitude*kRad2Deg)) <<" deg " << (fLongitude < 0 ? "N" : "S") << endl; 68 90 *fLog << "Elevation " << fElevation << "m" << endl; 69 91 } 92 -
trunk/MagicSoft/Mars/mtemp/MObservatoryLocation.h
r1681 r1745 9 9 { 10 10 private: 11 char*fObsName;11 TString fObsName; 12 12 Double_t fLatitude; 13 13 Double_t fLongitude; 14 14 Double_t fElevation; 15 Double_t fgDegToRad;15 static Double_t fgDegToRad; 16 16 // TH1F fHorizon; 17 17 18 void Init(const char *name, const char *title); 19 18 20 public: 21 enum LocationName_t 22 { 23 kMagic1, 24 kMagic2, 25 kRobertGarten 26 }; 27 19 28 MObservatoryLocation(const char *name=NULL, const char *title=NULL); 29 MObservatoryLocation(LocationName_t name, const char *name=NULL, const char *title=NULL); 20 30 ~MObservatoryLocation(); 21 31 22 inline void SetLatitude(Double_t latitude){ fLatitude = latitude; }23 inlinevoid SetLongitude(Double_t longitude) { fLongitude = longitude; }24 inlinevoid SetElevation(Double_t elevation) { fElevation = elevation; }25 inline void SetObservatoryName(char*name) { fObsName = name; }32 void SetLatitude(Double_t latitude) { fLatitude = latitude; } 33 void SetLongitude(Double_t longitude) { fLongitude = longitude; } 34 void SetElevation(Double_t elevation) { fElevation = elevation; } 35 void SetObservatoryName(TString name) { fObsName = name; } 26 36 27 void MObservatoryLocation::Print(Option_t *) const;37 void Print(Option_t *) const; 28 38 29 inline Double_t GetLatitude() { return fLatitude/fgDegToRad; }30 inline Double_t GetLongitude() { return fLongitude/fgDegToRad; }31 inline Double_t GetElevation(){ return fElevation; }32 Double_t GetLatitudeRad() { return fLatitude; }33 Double_t GetLongitudeRad() { return fLongitude; }34 char* GetObservatoryName(){ return fObsName; }39 Double_t GetLatitude() const { return fLatitude*kRad2Deg; } 40 Double_t GetLongitude() const { return fLongitude*kRad2Deg; } 41 Double_t GetElevation() const { return fElevation; } 42 Double_t GetLatitudeRad() const { return fLatitude; } 43 Double_t GetLongitudeRad() const { return fLongitude; } 44 TString GetObservatoryName() const { return fObsName; } 35 45 // Double_t GetHorizon(Double_t phi); 36 46 // void SetHorizonLine(TF1 hor) { fHorizon = hor; } -
trunk/MagicSoft/Mars/mtemp/MVPObject.cc
r1680 r1745 113 113 // HHMMsDDT, where RA is given in hours and minutes and Declination is 114 114 // given by degrees DD and tenths of degrees T. "s" may be "+" or 115 // "-" 116 // 117 void MVPObject::SetObjectByName(c har*object)115 // "-", eg. "1959+650" 116 // 117 void MVPObject::SetObjectByName(const char *object) 118 118 { 119 119 fObjectName=object; 120 120 fGotName=kTRUE; 121 121 122 // cout<<"OBJ:"<<object<<endl; 123 124 unsigned int delim=0; 125 for (unsigned int i=0; i<strlen(object); i++) 126 if ((object[i]=='+')||(object[i]=='-')) 127 delim=i; 128 129 char ra[6]; 130 char de[6]; 131 132 unsigned int i; 133 for (i=0; i<=delim; i++) 134 ra[i]=object[i]; 135 ra[i-1]=0; 136 137 for (i=delim+1; i<strlen(object); i++) 138 de[i-delim-1]=object[i]; 139 de[i-delim-1]=0; 140 141 Float_t RA, Dec; 142 143 sscanf(ra,"%f",&RA); 144 sscanf(de,"%f",&Dec); 145 146 // cout<<"OBJd:"<<Dec<<endl; //220 147 // cout<<"OBJr:"<<RA<<endl; //1959 148 149 if (object[delim]=='-') Dec*=-1; 150 151 fRA=(Double_t)( fgHrsToRad* ((Int_t)(RA/100) + ( RA-(Int_t)(RA/100)*100)/60 )); 152 fDec=(Double_t)( fgDegToRad* ((Int_t)(Dec/10) + (Dec-(Int_t)(Dec/10)*10 )/10 )); 153 154 // fRA=(Double_t)( fgHrsToRad* ((Int_t)(RA/100) + ((RA / 100)-(Int_t)(RA/100))/60 )); 155 // fDec=(Double_t)( fgDegToRad* ((Int_t)(Dec/10) + ((Dec / 10)-(Int_t)(Dec/100))/10 )); 156 157 // cout<<"OBJd:"<<fDec/fgDegToRad<<endl; 158 // cout<<"OBJr:"<<fRA/fgHrsToRad<<endl; 122 Int_t ra, dec; 123 sscanf(object, "%d%d", &ra, &dec); 124 125 fRA = fgHrsToRad * (0.01*ra + (r%100)/60.); 126 fDec = fgDegToRad * 0.1 * dec; 159 127 160 128 fGotRA=kTRUE; -
trunk/MagicSoft/Mars/mtemp/MVPPlotter.cc
r1681 r1745 190 190 // each month [1]..[12] 191 191 Float_t visibility[13][18]; 192 memset(visibility, 0, 13*18*sizeof(Float_t)); 193 /* 192 194 for (int m=0;m<13;m++) 193 195 for (int z=0;z<18;z++) 194 196 visibility[m][z]=0; 195 197 */ 196 198 int fday, ftime; 197 199 Double_t phase=0; … … 201 203 Double_t todaysPhase=0; 202 204 Double_t moonIntensity; 203 UInt_t i;204 205 obsHours=0; 205 for ( i=0; i<daySlices; i++)206 for (UInt_t i=0; i<daySlices; i++) 206 207 { 207 208 // Rearrange filling of bins such that a "day" doesn't start at midnight, … … 251 252 252 253 // If moon is not up (or we should not use moon information...) 253 if ( (!fUseMoon)||(fMoon->GetAltitudeDeg()<=0)||(moonIntensity<60)) {254 if (!fUseMoon || fMoon->GetAltitudeDeg()<=0 || moonIntensity<60) { 254 255 // Fill MJD-UTC histogram 255 256 fMjdUtcYear->Fill(fgSecPerDay*(fday-fgMJD010170),fgSecPerDay*ftime/daySlices,fObject->GetAltitudeDeg()); … … 296 297 297 298 Double_t distance = fVenus->GetDistance(fObject); 298 distance = distance < fMars->GetDistance(fObject) ? distance : fMars->GetDistance(fObject);299 distance = distance < fJupiter->GetDistance(fObject) ? distance : fJupiter->GetDistance(fObject);300 distance = distance < fSaturn->GetDistance(fObject) ? distance : fSaturn->GetDistance(fObject);299 distance = TMath::Min(distance, fMars->GetDistance(fObject)); 300 distance = TMath::Min(distance, fJupiter->GetDistance(fObject)); 301 distance = TMath::Min(distance, fSaturn->GetDistance(fObject)); 301 302 302 303 fMjdPlanetDistance->Fill(fgSecPerDay*(fday-fgMJD010170),distance); … … 319 320 printf("%5d ",(Int_t)(visibility[m][z]/60)); 320 321 } 321 cout<<endl;322 printf("\n"); 322 323 } 323 324 324 325 int vistimestart=0; 325 326 int vistimeend=0; 326 for (int m=1; m<13;m++) {327 for (int m=1; m<13; m++) { 327 328 int n = (m==1 ? 12 : m-1); 328 if ( ((visibility[m][8]/60)>20)&&((visibility[n][8])/60 <= 20)) {329 if (visibility[m][8]/60>20 && visibility[n][8]/60<=20) { 329 330 vistimestart=m; // we're on the rising slope 330 331 } 331 332 } 332 333 333 for (int m=1; m<13;m++) {334 for (int m=1; m<13; m++) { 334 335 int n = (m==1 ? 12 : m-1); 335 if ( ((visibility[m][8]/60)<20)&&((visibility[n][8]/60)>=20)) {336 if (visibility[m][8]/60<20 && visibility[n][8]/60>=20) { 336 337 vistimeend=n; // we're on the falling slope 337 338 } … … 341 342 342 343 343 gROOT->Reset();344 /*!!!!!!!!!!!!!!!!!!!!!!!*/gROOT->Reset(); 344 345 345 346 TCanvas *cMjdUtcYear = new TCanvas("cMjdUtcYear", "Object Visibility MjdUtcYear", 1100,500); … … 430 431 weekCounter++; 431 432 432 Int_t startday2 = fTime->MJDStartOfYear(year); 433 Int_t stopday2 = fTime->MJDStartOfYear(year+1)-1; 434 435 for (int day=startday2; day<stopday2+1; day=day+7) 436 { 437 simpleCounter[weekCounter]=weekCounter-1; 438 objectHeight[weekCounter]=0; 439 for (int i=0; i<daySlices; i++) 440 { 441 if (i>=48) { 442 fday=day; 443 ftime=i-48; 444 } else { 445 fday=day-1; 446 ftime=i+48; 447 } 448 449 fTime->SetMJD(day,(Double_t)i/daySlices); 450 fObject->Process(); 451 fSun->Process(); 452 453 if (fSun->GetAltitudeDeg() < -25.0) { 454 if (objectHeight[weekCounter]<(fObject->GetAltitudeDeg())) 455 objectHeight[weekCounter]=fObject->GetAltitudeDeg(); 456 } 457 458 } //i 459 weekCounter++; 460 } //day 461 simpleCounter[weekCounter]=weekCounter-2; 462 objectHeight[weekCounter]=0; 463 weekCounter++; 464 465 TString months[12] = {"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"}; 466 467 TCanvas *c2 = new TCanvas("c2", "Object Visibility",600,100); 433 const Int_t startday2 = fTime->MJDStartOfYear(year); 434 const Int_t stopday2 = fTime->MJDStartOfYear(year+1)-1; 435 436 for (int day=startday2; day<stopday2+1; day+=7) 437 { 438 simpleCounter[weekCounter]=weekCounter-1; 439 objectHeight[weekCounter]=0; 440 for (int i=0; i<daySlices; i++) 441 { 442 if (i>=48) 443 { 444 fday=day; 445 ftime=i-48; 446 } 447 else 448 { 449 fday=day-1; 450 ftime=i+48; 451 } 452 453 fTime->SetMJD(day,(Double_t)i/daySlices); 454 fObject->Process(); 455 fSun->Process(); 456 457 if (fSun->GetAltitudeDeg() < -25.0) 458 { 459 if (objectHeight[weekCounter]<(fObject->GetAltitudeDeg())) 460 objectHeight[weekCounter]=fObject->GetAltitudeDeg(); 461 } 462 463 } //i 464 weekCounter++; 465 } //day 466 simpleCounter[weekCounter]=weekCounter-2; 467 objectHeight[weekCounter]=0; 468 weekCounter++; 469 470 TString months[12] = {"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"}; 471 472 TCanvas *c2 = new TCanvas("c2", "Object Visibility",600,100); 468 473 469 // gStyle->SetOptTitle(0);470 // gStyle->SetPadLeftMargin(0.000001);471 // gStyle->SetPadRightMargin(0.000001);472 // gStyle->SetPadTopMargin(0.001);473 // gStyle->SetPadBottomMargin(0.000001);474 gPad->SetGrid();475 476 c2->SetGrid();477 TGraph *tg=new TGraph(weekCounter,simpleCounter,objectHeight);478 479 tg->SetMinimum(1);480 tg->SetMaximum(90);481 482 Double_t maxza = abs(fObject->GetDec()-fObs->GetLatitude());483 484 if (maxza > 90) maxza=90;485 if (maxza < 0) maxza=00;486 487 cout << "MaxZA: ";488 cout << maxza << endl;489 490 if (maxza < 30) { //colors=green to yellow491 maxza=9*maxza/30;492 maxza=80+maxza;493 494 } else { //colors=yellow to red495 maxza-=30;496 maxza=11*maxza/60;497 maxza=89+maxza;498 }499 474 // gStyle->SetOptTitle(0); 475 // gStyle->SetPadLeftMargin(0.000001); 476 // gStyle->SetPadRightMargin(0.000001); 477 // gStyle->SetPadTopMargin(0.001); 478 // gStyle->SetPadBottomMargin(0.000001); 479 gPad->SetGrid(); 480 481 c2->SetGrid(); 482 TGraph *tg=new TGraph(weekCounter,simpleCounter,objectHeight); 483 484 tg->SetMinimum(1); 485 tg->SetMaximum(90); 486 487 Double_t maxza = abs(fObject->GetDec()-fObs->GetLatitude()); 488 489 if (maxza > 90) maxza=90; 490 if (maxza < 0) maxza=00; 491 492 cout << "MaxZA: "; 493 cout << maxza << endl; 494 495 if (maxza < 30) { //colors=green to yellow 496 maxza *= 9/30; 497 maxza += 80; 498 499 } else { //colors=yellow to red 500 maxza -= 30; 501 maxza *= 11/60; 502 maxza += 89; 503 } 504 500 505 tg->SetFillColor((Int_t)maxza); 501 506 tg->SetLineColor((Int_t)maxza); … … 515 520 516 521 if ((vistimestart<13)&&(vistimeend>0)) { 517 TString label; 518 label=months[vistimestart-1]+"-"+months[vistimeend-1]; 522 TString label=months[vistimestart-1]+"-"+months[vistimeend-1]; 519 523 TPaveLabel* l2= new TPaveLabel(35,46,50,88, label); 520 524 l2->SetBorderSize(0); … … 528 532 c2->Update(); 529 533 530 return kTRUE;534 return kTRUE; 531 535 } 532 536 … … 553 557 istar = pow(10.,istar); 554 558 if(fabs(alpha) < 7.) /* crude accounting for opposition effect */ 555 istar = istar * (1.35 - 0.05 * fabs(istar));559 istar *= 1.35 - 0.05 * fabs(istar); 556 560 /* 35 per cent brighter at full, effect tapering linearly to 557 561 zero at 7 degrees away from full. mentioned peripherally in … … 559 563 double fofrho = 229087. * (1.06 + cos(rho_rad)*cos(rho_rad)); 560 564 if(fabs(rho) > 10.) 561 fofrho=fofrho+pow(10.,(6.15 - rho/40.)); /* eqn 21 */565 fofrho+=pow(10.,(6.15 - rho/40.)); /* eqn 21 */ 562 566 else if (fabs(rho) > 0.25) 563 fofrho= fofrho+6.2e7 / (rho*rho); /* eqn 19 */567 fofrho+=6.2e7 / (rho*rho); /* eqn 19 */ 564 568 else fofrho = fofrho+9.9e8; /*for 1/4 degree -- radius of moon! */ 569 565 570 double Xzm = sqrt(1.0 - 0.96*sin(Zmoon)*sin(Zmoon)); 571 566 572 if(Xzm != 0.) Xzm = 1./Xzm; 567 else Xzm = 10000.; 573 else Xzm = 10000.; 574 568 575 double Xo = sqrt(1.0 - 0.96*sin(Z)*sin(Z)); 569 576 if(Xo != 0.) Xo = 1./Xo; 570 else Xo = 10000.; 577 else Xo = 10000.; 578 571 579 double Bmoon = fofrho * istar * pow(10.,(-0.4*kzen*Xzm)) 572 580 * (1. - pow(10.,(-0.4*kzen*Xo))); /* nanoLamberts */ 573 581 // cout << " Bmoon=" << Bmoon; 574 582 if(Bmoon > 0.001) -
trunk/MagicSoft/Mars/mtemp/MVPPlotter.h
r1681 r1745 1 1 #ifndef MARS_MVPPlotter 2 2 #define MARS_MVPPlotter 3 4 #ifndef MARS_MTask5 #include "MTask.h"6 #endif7 8 #ifndef MARS_MParList9 #include "MParList.h"10 #endif11 3 12 4 #ifndef MARS_MTaskList
Note:
See TracChangeset
for help on using the changeset viewer.