- Timestamp:
- 09/03/07 10:37:51 (17 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MEnv.cc
r8716 r8727 41 41 // some of the resources. 42 42 // 43 // If given paths are not absolute there base is always th elocation of 44 // the including file. 45 // 43 46 ////////////////////////////////////////////////////////////////////////////// 44 47 #include "MEnv.h" … … 111 114 return 0; 112 115 116 const char *dir = gSystem->DirName(GetRcName()); 117 113 118 // Tokenize the array into single files divided by a whitespace 114 119 TObjArray *arr = incl.Tokenize(" "); … … 123 128 { 124 129 // Get file name to include 125 const char *fenv = (*arr)[i]->GetName(); 130 TString fenv = (*arr)[i]->GetName(); 131 132 // If the is not anabsolute path we prepend the dir-name 133 // of the including file. This allows that includes 134 // do not necessarily need absolute paths and paths are always 135 // relative to the location of th eincluding file. 136 if (!gSystem->IsAbsoluteFileName(fenv)) 137 { 138 fenv.Prepend("/"); 139 fenv.Prepend(dir); 140 } 126 141 127 142 // Read included file and check if its valid -
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r8719 r8727 1520 1520 SetupHistEnergyEst(heest); 1521 1521 1522 //MHn hdisp("Disp", "Dist residual (Disp-Dist)");1523 //SetupHistDisp(hdisp);1522 MHn hdisp("Disp", "Dist residual (Disp-Dist)"); 1523 SetupHistDisp(hdisp); 1524 1524 1525 1525 MHn henergy("EvtDist"); … … 1529 1529 fill4b.SetWeight(); 1530 1530 1531 //MFillH fill4c(&hdisp, "", "FillDispResidual"); 1532 //fill4c.SetWeight(); 1531 MFillH fill4c(&hdisp, "", "FillDispResidual"); 1532 fill4c.SetWeight(); 1533 1534 MFDataPhrase fdisp("Disp.fVal*sign(MHillasSrc.fCosDeltaAlpha)<0", "FilterDisp"); 1535 fill4c.SetFilter(&fdisp); 1533 1536 1534 1537 // --------------------------------------------------------- … … 1600 1603 tlist2.AddToList(&taskenv0); 1601 1604 tlist2.AddToList(&taskenv1); 1605 tlist2.AddToList(&fdisp); 1606 tlist2.AddToList(&fill4c); 1602 1607 tlist2.AddToList(fCut1); 1603 1608 tlist2.AddToList(fCutS);
Note:
See TracChangeset
for help on using the changeset viewer.