Changeset 2241 for trunk


Ignore:
Timestamp:
06/26/03 20:57:18 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2240 r2241  
    11                                                 -*-*- END OF LINE -*-*-
     2
     3 2003/06/26: Abelardo Moralejo
     4  * macros/CT1EgyEst.C
     5    - Added to the argument list of CT1EEst the binnings in theta
     6      and energy. Commented out the MLog.h and MLogManip.h, headers,
     7      otherwise it does not run (don't know why). Commented out filters
     8      (my test file does not contain hadronness), please uncomment
     9      them to run on files with hadronness info.
    210
    311 2003/06/26: Abelardo Moralejo
  • trunk/MagicSoft/Mars/macros/CT1EgyEst.C

    r2235 r2241  
    3535#include "MMatrixLoop.h"
    3636#include "MChisqEval.h"
     37
     38/*
    3739#include "MLog.h"
    3840#include "MLogManip.h"
     41*/
    3942
    4043void CT1EgyEst()
     
    6164  Float_t maxdist       = 1.;
    6265
     66  MBinning BinningE("BinningE");
     67  MBinning BinningTheta("BinningTheta");
     68  BinningE.SetEdgesLog(50, 500, 50000.);
     69  BinningTheta.SetEdges(5, 0., 50.);
     70
    6371  CT1EEst(inPath,  fileNameIn,
    64             outPath, energyParName,
    65             hilName, hilSrcName,    hadronnessName,
    66             howMany, maxhadronness, maxalpha, maxdist);
     72          outPath, energyParName,
     73          hilName, hilSrcName,    hadronnessName,
     74          howMany, maxhadronness, maxalpha, maxdist,
     75          &BinningE, &BinningTheta);
    6776}
    6877
     
    8493
    8594void CT1EEst(TString inPath,  TString fileNameIn,
    86                TString outPath, TString energyParName,
    87                TString hilName, TString hilSrcName, TString hadronnessName,
    88                Int_t howMany,
    89                Float_t maxhadronness, Float_t maxalpha, Float_t maxdist)
     95             TString outPath, TString energyParName,
     96             TString hilName, TString hilSrcName, TString hadronnessName,
     97             Int_t howMany,
     98             Float_t maxhadronness, Float_t maxalpha, Float_t maxdist,
     99             MBinning* binsE, MBinning* binsTheta)
    90100{
    91101  cout << "================================================================"
     
    125135  Optimize.SetOutFile(paramout);
    126136
     137  /*
    127138  MFCT1SelFinal filterhadrons;
    128139  filterhadrons.SetHadronnessName(hadronnessName);
     
    130141  filterhadrons.SetInverted();
    131142  Optimize.SetEventFilter(&filterhadrons);
     143  */
    132144
    133145  Optimize.SetNevents(howMany);
     
    223235  // Select events
    224236  //
     237
     238  /*
    225239  cout << "Select events with hadronness < " << maxhadronness
    226240        << " and |alpha| < " << maxalpha << endl;
     
    230244
    231245  MContinue cont(&hcut2);
     246  */
    232247
    233248  parlist2.AddToList(&tlist2);
     
    237252
    238253  tlist2.AddToList(&read2);
    239   tlist2.AddToList(&cont);
     254  //  tlist2.AddToList(&cont);
    240255  tlist2.AddToList(&eest2);
    241256
     
    253268  tlist2.AddToList(&migfill);
    254269
    255   MBinning BinningE("BinningE");
    256   MBinning BinningTheta("BinningTheta");
    257   BinningE.SetEdgesLog(50, 500, 50000.);
    258   BinningTheta.SetEdges(5, 0., 50.);
    259  
    260   parlist2.AddToList(&BinningE);
    261   parlist2.AddToList(&BinningTheta);
     270  parlist2.AddToList(binsE);
     271  parlist2.AddToList(binsTheta);
    262272
    263273  MBinning BinningDE("BinningDE");
Note: See TracChangeset for help on using the changeset viewer.