Changeset 2689 for trunk


Ignore:
Timestamp:
12/17/03 15:49:05 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2688 r2689  
    1111   * mfilter/MFGeomag.cc:
    1212     - added kPOSITRON and kELECTRON as possible particle ids.
    13 
     13     - added fResult = 0 for the case kGAMMA,  !fGamm_elec, to let
     14       real gammas be accepted by the filter.
    1415
    1516 2003/12/17: Thomas Bretz
  • trunk/MagicSoft/Mars/mfilter/MFGeomag.cc

    r2688 r2689  
    4949#include "MMcEvt.hxx"
    5050
     51#include <TSystem.h>
    5152
    5253ClassImp(MFGeomag);
     
    8485    Float_t azim  [2*1152];      // (these variables not used)
    8586    Float_t thet  [2*1152];
     87
    8688    ifstream geomagp;
    87     geomagp.open("mfilter/gcplus.txt");
     89
     90    TString filename = gSystem->Getenv("MARSSYS");
     91    filename += "/mfilter/gcplus.txt";
     92
     93    geomagp.open(filename);
    8894    if (!geomagp) {
    8995        *fLog << err <<" ERROR gcplus.txt file not found by Geomag"<<endl;
     
    101107    geomagp.close();
    102108    geomagp.clear();
     109
    103110    ifstream geomagm;
    104     geomagm.open("mfilter/gcminus.txt");
     111
     112    filename = gSystem->Getenv("MARSSYS");
     113    filename += "/mfilter/gcminus.txt";
     114
     115    geomagm.open(filename);
    105116    if (!geomagm) {
    106117        *fLog << err <<" ERROR gcminus.txt file not found by Geomag"<<endl;
     
    151162    case kGAMMA:
    152163        if (!fGamm_elec)         //accept gammas if not set to electrons
    153             return kTRUE;
     164          {
     165            fResult = 0;
     166            return kTRUE;
     167          }
    154168        indadd = 1152;           //second part of table (negative particles)
    155169        break;
Note: See TracChangeset for help on using the changeset viewer.