Changeset 866 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
07/10/01 14:54:23 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r865 r866  
    88   * mmontecarlo/MMcThresholdCalc.cc:
    99     - changed style of comments
     10     - moved sqrt(2) from Postprocess to header.
    1011     
    1112   * mmontecarlo/MMcEnerHisto.[cc,h], mmontecarlo/MMcEnerThre.[cc,h],
  • trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.cc

    r862 r866  
    5050#include "MHMcEnergy.h"
    5151
    52 ClassImp(MMcThresholdCalc)
     52ClassImp(MMcThresholdCalc);
     53
     54const Float_t MMcThresholdCalc::fSqrt2 = sqrt(2);
    5355
    5456// --------------------------------------------------------------------------
     
    168170Bool_t MMcThresholdCalc::PostProcess()
    169171{
    170     const Float_t sqrt2 = sqrt(2);
    171 
    172172    for (unsigned int i=0; i<fDimension; i++)
    173173    {
     
    183183      peak  = fHMcEnergy[i]->GetGaussPeak();
    184184      sigma = fHMcEnergy[i]->GetGaussSigma();
    185       fHMcEnergy[i]->Fit(peak - sqrt2*sigma, peak + sqrt2*sigma);
     185      fHMcEnergy[i]->Fit(peak - fSqrt2*sigma, peak + fSqrt2*sigma);
    186186    }
    187187    return kTRUE;
  • trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.h

    r861 r866  
    2929    Bool_t        *fMustDelete;  // delete indicator for selfcreated energy hists
    3030
     31    const static Float_t fSqrt2; // sqrt(2)
     32
    3133public:
    3234
Note: See TracChangeset for help on using the changeset viewer.