Changeset 7643 for trunk/MagicSoft


Ignore:
Timestamp:
04/21/06 17:28:45 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7642 r7643  
    2727   * mtools/MTFillMatrix.cc:
    2828     - added accelerator for executing the tasklist as in MJCut
     29
     30   * mfilter/MFEnergySlope.cc:
     31     - small update to output
     32
     33   * mfbase/MFilterList.[h,cc]:
     34     - fixed a really old problem that the contents of the list never
     35       got ReInit. Hopefully this never had bad sideeffects.
    2936
    3037
  • trunk/MagicSoft/Mars/NEWS

    r7642 r7643  
    66     and optimization macros) by skipping some obsolete calles in the
    77     eventloop the first and second loop could be accelerated by ~20%
     8
     9   - general: Fixed a missing feature in the MFilterLIst class which
     10     prevented MFEnergySlope from working correctly in trainenergy.C
    811
    912   - merpp: Adapted to new raw data file format version 6
  • trunk/MagicSoft/Mars/mfbase/MFilterList.cc

    r7601 r7643  
    297297// --------------------------------------------------------------------------
    298298//
     299// ReInit all filters in the list
     300//
     301Bool_t MFilterList::ReInit(MParList *pList)
     302{
     303    TIter Next(&fFilters);
     304
     305    MFilter *filter=NULL;
     306
     307    //
     308    // loop over all filters
     309    //
     310    while ((filter=(MFilter*)Next()))
     311    {
     312        if (!filter->ReInit(pList))
     313        {
     314            *fLog << err << "Error - ReInit Filter ";
     315            *fLog << filter->GetName() << " in " << fName << endl;
     316            return kFALSE;
     317        }
     318    }
     319
     320    return kTRUE;
     321}
     322
     323// --------------------------------------------------------------------------
     324//
    299325// Processes (updates) all filters in the list.
    300326//
  • trunk/MagicSoft/Mars/mfbase/MFilterList.h

    r7601 r7643  
    5555    TString GetDataMember() const;
    5656
    57     Int_t PreProcess(MParList *pList);
    58     Int_t Process();
    59     Int_t PostProcess();
     57    Bool_t ReInit(MParList *plist);
     58    Int_t  PreProcess(MParList *pList);
     59    Int_t  Process();
     60    Int_t  PostProcess();
    6061
    6162    void SetAccelerator(Byte_t acc=kAccStandard);
  • trunk/MagicSoft/Mars/mfilter/MFEnergySlope.cc

    r7409 r7643  
    127127
    128128    //
    129     // Read info from the MC sample (it must be generated with
     129    // Read info from0 the MC sample (it must be generated with
    130130    //   reflector ver.0.6 and camera ver. 0.6)
    131131    //
     
    148148    *fLog << inf;
    149149    *fLog << "Fetched MC info:" << endl;
    150     *fLog << "  Change E Slope " << fMcSlope << " (" << fMcMinEnergy << " < E < ";
    151     *fLog << fMcMaxEnergy << ") to " << fNewSlope << endl;
     150    *fLog << "  Change E Slope from " << -fMcSlope << " (" << fMcMinEnergy << " < E < ";
     151    *fLog << fMcMaxEnergy << ") to " << -fNewSlope << endl;
    152152    *fLog << "  Norm factor: " << fN0 << endl;
    153153
     
    191191     */
    192192
    193     const Float_t Nexp = fN0 * pow(energy,fMcSlope-fNewSlope);
     193    const Float_t Nexp = fN0 * pow(energy, fMcSlope-fNewSlope);
    194194    const Float_t Nrnd = gRandom->Uniform();
    195195
    196196    fResult = Nexp > Nrnd;
    197 
    198     //if (fResult)
    199     //    fNumSelectedEvts++;
    200197
    201198    return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.