Changeset 1982 for trunk


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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1974 r1982  
    11                                                 -*-*- END OF LINE -*-*-
     2
     3 2003/04/22: Abelardo Moralejo
     4
     5    * mmontecarlo/Makefile, MontecarloLinkDef.h
     6      - added MMcEnergyEst
     7      - added necessary include directories.
     8
     9    * mmontecarlo/MMcEnergyEst.cc
     10      - added filterhadrons.SetHadronnessName(fHadronnessName) to
     11        inform the filter about the name of the hadronness container
     12        to be used in the cuts.
     13
     14    * mfilter/MFCT1SelFinal.[h,cc]
     15      - added the possibility to cut also in Dist.
    216
    317 2003/04/22: Thomas Bretz
  • 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
  • trunk/MagicSoft/Mars/mmontecarlo/MMcEnergyEst.cc

    r1964 r1982  
    9292
    9393  MFCT1SelFinal filterhadrons;
     94  filterhadrons.SetHadronnessName(fHadronnessName);
    9495  filterhadrons.SetCuts(fMaxHadronness, fMaxAlpha, fMaxDist);
    9596  filterhadrons.SetInverted();
  • trunk/MagicSoft/Mars/mmontecarlo/Makefile

    r1978 r1982  
    2222#  connect the include files defined in the config.mk file
    2323#
    24 INCLUDES = -I. -I../mbase -I../mmc -I../mhist -I../mhistmc
     24INCLUDES = -I. -I../mbase -I../mmc -I../mhist -I../mhistmc -I../mgeom -I../manalysis -I../mtools -I../mfileio -I../mfilter -I../mdata
    2525
    2626#------------------------------------------------------------------------------
     
    3232           MMcTimeGenerate.cc \
    3333           MMcTriggerRateCalc.cc \
    34            MMcCT1CollectionAreaCalc.cc
     34           MMcCT1CollectionAreaCalc.cc \
     35           MMcEnergyEst.cc
    3536
    3637SRCS    = $(SRCFILES)
  • trunk/MagicSoft/Mars/mmontecarlo/MonteCarloLinkDef.h

    r1821 r1982  
    1010#pragma link C++ class MMcTriggerRateCalc+;
    1111#pragma link C++ class MMcCT1CollectionAreaCalc+;
    12 
     12#pragma link C++ class MMcEnergyEst+;
    1313#endif
Note: See TracChangeset for help on using the changeset viewer.