Ignore:
Timestamp:
06/13/03 16:42:37 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mmontecarlo
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.cc

    r2036 r2173  
    4949
    5050ClassImp(MMcCollectionAreaCalc);
     51
     52using namespace std;
    5153
    5254MMcCollectionAreaCalc::MMcCollectionAreaCalc(const char *input,
  • trunk/MagicSoft/Mars/mmontecarlo/MMcEnergyEst.cc

    r2119 r2173  
    6262#include "MLogManip.h"
    6363
     64ClassImp(MMcEnergyEst);
     65
     66using namespace std;
    6467
    6568//------------------------------------------------------------------------
     
    6770// fcn calculates the function to be minimized (using TMinuit::Migrad)
    6871//
    69 void fcn(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag)
     72static void fcn(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag)
    7073{
    7174  MEvtLoop *evtloop = (MEvtLoop*)gMinuit->GetObjectFit();
     
    8285  f = eval->GetChisq();
    8386}
    84 
    85 ClassImp(MMcEnergyEst);
    8687
    8788// --------------------------------------------------------------------------
     
    323324// Print current values of parameters
    324325//
    325 void MMcEnergyEst::Print(Option_t *o)
     326void MMcEnergyEst::Print(Option_t *o) const
    326327{
    327328  for (Int_t i = 0; i < fA.GetSize(); i++)
  • trunk/MagicSoft/Mars/mmontecarlo/MMcEnergyEst.h

    r2119 r2173  
    4747
    4848  void FindParams();
    49   void Print(Option_t *o="");
     49  void Print(Option_t *o="") const;
    5050
    5151  ClassDef(MMcEnergyEst, 1) // Class for optimization of Energy estimator
  • trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.cc

    r1108 r2173  
    5252ClassImp(MMcThresholdCalc);
    5353
    54 const Float_t MMcThresholdCalc::fSqrt2 = sqrt(2);
     54using namespace std;
     55
     56const Float_t MMcThresholdCalc::fSqrt2 = sqrt(2.);
    5557
    5658// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mmontecarlo/MMcTimeGenerate.cc

    r1238 r2173  
    8686    const UInt_t t = fTime->GetTimeLo();
    8787
    88     fTime->SetTime(t+dt*10000, 0); // [0.1ms]
     88    fTime->SetTime((int)(t+dt*10000), 0); // [0.1ms]
    8989
    9090    return kTRUE;
  • trunk/MagicSoft/Mars/mmontecarlo/MMcTriggerRateCalc.cc

    r1893 r2173  
    2929#include "MMcTriggerRateCalc.h"
    3030
     31#include <math.h>
     32
     33#include <TCanvas.h>
     34
    3135#include "MLog.h"
    3236#include "MLogManip.h"
    3337
    3438#include "MParList.h"
    35 #include "MHMcRate.h"
    3639
    3740#include "MMcEvt.hxx"
     
    4245
    4346#include "MH.h"
    44 #include <TCanvas.h>
    45 #include <math.h>
    46 
     47#include "MHMcRate.h"
    4748
    4849ClassImp(MMcTriggerRateCalc);
     50
     51using namespace std;
    4952
    5053void MMcTriggerRateCalc::Init(int dim, float *trigbg, float simbg,
     
    364367// Draw rate as a funtion of discriminator threshold.
    365368//
    366 void MMcTriggerRateCalc::Draw()
     369void MMcTriggerRateCalc::Draw(Option_t *)
    367370{
    368371    /*
  • trunk/MagicSoft/Mars/mmontecarlo/MMcTriggerRateCalc.h

    r1792 r2173  
    6767    TH1F* GetHist(Int_t i) {return fHist[i];}
    6868
    69     void Draw();
     69    void Draw(const Option_t *o="");
    7070
    7171    ClassDef(MMcTriggerRateCalc, 0)     // Task to compute the trigger rate
Note: See TracChangeset for help on using the changeset viewer.