Ignore:
Timestamp:
04/24/03 11:58:54 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r1984 r2002  
    2020!   Copyright: MAGIC Software Development, 2000-2003
    2121!
    22 !   Filter to select events with a energy slope. 02/2003
    2322!
    2423\* ======================================================================== */
     
    4342//                                                                         //
    4443//  With this filter the statistics of the MC sample is reduced.           //
    45 //  camera ver.0.6 and reflector ver.0.6 are required to fetch            //
     44//  camera ver.0.6 and reflector ver.0.6 are required to fetch             //
    4645//   the correct MC information                                            //
    4746//                                                                         //
     
    4948#include "MFEnergySlope.h"
    5049
    51 //#include <fstream.h>
     50#include <fstream.h>
    5251#include <TRandom.h>
    5352
     
    5655#include "MLog.h"
    5756#include "MLogManip.h"
    58 
    5957
    6058#include "MMcEvt.hxx"
     
    7371  fName  = name  ? name  : "MFEnergySlope";
    7472  fTitle = title ? title : "Filter to select energy with given slope";
    75 }
    76 
    77 // --------------------------------------------------------------------------
    78 //
    79 // Destructor
    80 //
    81 MFEnergySlope::~MFEnergySlope()
    82 {
    8373}
    8474
     
    110100      fMcMaxEnergy = runheader->GetEUppLim();
    111101
    112     *fLog << "MFEnergySlope::PreProcess; fetched MC info:" << endl <<
    113       "  E Slope: "<< fMcSlope << endl <<
    114       "  E Min:   "<< fMcMinEnergy << endl << 
    115       "  E Max:   "<< fMcMaxEnergy << endl <<
    116       "  New E Slope: "<< fNewSlope << endl;
     102    *fLog << inf;
     103    *fLog << "MFEnergySlope::PreProcess: fetched MC info:" << endl;
     104    *fLog << "  E Slope:     " << fMcSlope << endl;
     105    *fLog << "  E Min:       " << fMcMinEnergy << endl;
     106    *fLog << "  E Max:       " << fMcMaxEnergy << endl;
     107    *fLog << "  New E Slope: " << fNewSlope << endl;
    117108   
    118109    // Slope is used with positive values in the code
     
    180171  fResult = Nexp > Nrnd;
    181172
    182     if (fResult)
    183     {
    184         fNumSelectedEvts++;
    185         return kTRUE;
    186     }
    187    
     173  if (!fResult)
     174      return kTRUE;
     175
     176  fNumSelectedEvts++;
    188177  return kTRUE;
    189178}
    190179
    191 
    192 // --------------------------------------------------------------------------
    193 //
    194 //  Postprocess all filters.
    195 //
    196 Bool_t MFEnergySlope::PostProcess()
    197 {
    198     //---------------------------------
    199 
    200     return kTRUE;
    201 }
    202 
    203 void MFEnergySlope::StreamPrimitive(ofstream &out) const
    204 {
    205   /*
    206    if (fEvt)
    207         fEvt->SavePrimitive(out);
    208 
    209     out << "   MFEnergySlope " << GetUniqueName() << "(";
    210 
    211     if (fEvt)
    212         out << "&" << fEvt->GetUniqueName();
    213     else
    214         out << "\"" << fContName << "\"";
    215 
    216     out << ", New Energy Slope= " << fValue << "  Normalization factor: "
    217         << fN0 <<" );" << endl;
    218   */
    219 }
    220 
    221 
    222 
    223 
    224 
    225 
    226 
    227 
    228 
Note: See TracChangeset for help on using the changeset viewer.