Ignore:
Timestamp:
04/22/03 17:33:59 (22 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfilter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfilter/MFCT1SelFinal.cc

    r1921 r1982  
    4646#include "MMcEvt.hxx"
    4747#include "MGeomCam.h"
     48#include "MGeomCamCT1.h"
    4849#include "MGeomPix.h"
    4950#include "MHadronness.h"
     
    6869    fHadronnessName = "MHadronness";
    6970
     71    MGeomCamCT1 camct1;
     72    fMm2Deg = camct1.GetConvMm2Deg();
     73
    7074    // default values of cuts
    71     SetCuts(1.0, 100.0);
     75    SetCuts(1.0, 100.0, 10.);
    7276}
    7377
     
    7781//
    7882//
    79 void MFCT1SelFinal::SetCuts(Float_t hadmax, Float_t alphamax)
     83void MFCT1SelFinal::SetCuts(Float_t hadmax, Float_t alphamax, Float_t distmax)
    8084{
    8185  fHadronnessMax = hadmax;
    82   fAlphaMax      = alphamax; 
     86  fAlphaMax      = alphamax;
     87  fDistMax       = distmax;
    8388
    8489  *fLog << inf << "MFCT1SelFinal cut values : fHadronnessMax, fAlphaMax = "
    85         << fHadronnessMax << ",  " << fAlphaMax << endl;
     90        << fHadronnessMax << ",  " << fAlphaMax << ",  fDistMax = " << fDistMax
     91<<  endl;
    8692}
    8793
     
    150156    {
    151157      rc = 2;
     158      fResult = kTRUE;
     159    }
     160
     161    else if ( fMm2Deg*fHilSrc->GetDist() > fDistMax )
     162    {
     163      rc = 3;
    152164      fResult = kTRUE;
    153165    }   
     
    180192          << " [degrees]" << endl;
    181193
     194    *fLog << " " << setw(7) << fCut[3] << " (" << setw(3)
     195          << (int)(fCut[3]*100/GetNumExecutions())
     196          << "%) Evts skipped due to: DIST > " << fDistMax
     197          << " [degrees]" << endl;
     198
    182199    *fLog << " " << fCut[0] << " ("
    183200          << (int)(fCut[0]*100/GetNumExecutions())
  • trunk/MagicSoft/Mars/mfilter/MFCT1SelFinal.h

    r1947 r1982  
    3232
    3333    Double_t     fMm2Deg;   // conversion mm to degrees in camera
    34     Int_t        fCut[3];
     34    Int_t        fCut[4];
    3535    TString      fHilName;
    3636    TString      fHilSrcName;
     
    3939    Float_t      fHadronnessMax;
    4040    Float_t      fAlphaMax;
     41    Float_t      fDistMax;
    4142
    4243    Bool_t       fResult;
     
    5455    Bool_t PostProcess();
    5556
    56     void SetCuts(Float_t hadmax, Float_t alphamax);
     57    void SetCuts(Float_t hadmax, Float_t alphamax, Float_t distmax);
    5758
    5859    ClassDef(MFCT1SelFinal, 0)   // Class to evaluate final cuts
Note: See TracChangeset for help on using the changeset viewer.