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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.cc

    r2015 r2173  
    6767#include "MBlindPixelCalc.h"
    6868
    69 #include <fstream.h>
     69#include <fstream>
    7070
    7171#include "MLog.h"
     
    8383
    8484ClassImp(MBlindPixelCalc);
     85
     86using namespace std;
    8587
    8688static const TString gsDefName  = "MBlindPixelCalc";
  • trunk/MagicSoft/Mars/manalysis/MCT1PointingCorrCalc.cc

    r2088 r2173  
    4343
    4444ClassImp(MCT1PointingCorrCalc);
     45
     46using namespace std;
    4547
    4648// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/manalysis/MCT1SupercutsCalc.cc

    r2109 r2173  
    3131
    3232#include <math.h>
    33 #include <fstream.h>
     33#include <fstream>
    3434
    3535#include "MLog.h"
     
    4545
    4646ClassImp(MCT1SupercutsCalc);
     47
     48using namespace std;
    4749
    4850void MCT1SupercutsCalc::InitParams()
  • trunk/MagicSoft/Mars/manalysis/MCerPhotAnal.cc

    r2135 r2173  
    5454ClassImp(MCerPhotAnal);
    5555
     56using namespace std;
     57
    5658// --------------------------------------------------------------------------
    5759//
     
    178180
    179181        sigmaped /= (fRawEvt->GetNumHiGainSamples()-5);
    180         sigmaped = sqrt(sumlocal);
     182        sigmaped = sqrt((float)sumlocal);
    181183
    182184        const UInt_t pixid = pixel.GetPixelId();
     
    195197        fCerPhotEvt->AddPixel(pixid, nphot, sigmaped/2.236);
    196198        ped.SetPedestal(pedes, sigmaped);
    197         ped.SetPedestalRms(sigmaped/sqrt(fRawEvt->GetNumHiGainSamples()-5),
    198                            sigmaped/sqrt(2*(fRawEvt->GetNumHiGainSamples()-5)));
     199        ped.SetPedestalRms(sigmaped/sqrt(fRawEvt->GetNumHiGainSamples()-5.),
     200                           sigmaped/sqrt(2.*(fRawEvt->GetNumHiGainSamples()-5)));
    199201
    200202        // FIXME! Handling of Lo Gains is missing!
  • trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.cc

    r2135 r2173  
    5757ClassImp(MCerPhotCalc);
    5858
     59using namespace std;
     60
    5961// --------------------------------------------------------------------------
    6062//
  • trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.cc

    r2147 r2173  
    2828#include <math.h>
    2929#include <limits.h>
    30 #include <fstream.h>
     30#include <fstream>
    3131
    3232#include <TCanvas.h>
     
    3737
    3838ClassImp(MCerPhotEvt);
     39
     40using namespace std;
    3941
    4042// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/manalysis/MCerPhotPix.cc

    r2056 r2173  
    2929ClassImp(MCerPhotPix);
    3030
     31using namespace std;
     32
    3133// --------------------------------------------------------------------------
    3234//
  • trunk/MagicSoft/Mars/manalysis/MCompProbCalc.cc

    r1574 r2173  
    4646
    4747ClassImp(MCompProbCalc);
     48
     49using namespace std;
    4850
    4951// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/manalysis/MCurrents.cc

    r2147 r2173  
    3636
    3737ClassImp(MCurrents);
     38
     39using namespace std;
    3840
    3941// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/manalysis/MCurrents.h

    r2147 r2173  
    2727    UInt_t GetCurrent(Int_t i) const { return (*this)[i]; }
    2828    UInt_t &operator[](Int_t i) { return (UInt_t&)fArray[i]; }
    29     const UInt_t &operator[](Int_t i) const { return ((TArrayI)fArray)[i]; }
     29    const UInt_t &operator[](Int_t i) const { return (*this)[i]; }
    3030
    3131    UInt_t GetMin() const;
  • trunk/MagicSoft/Mars/manalysis/MEnergyEst.cc

    r1525 r2173  
    3939ClassImp(MEnergyEst);
    4040
     41using namespace std;
     42
    4143// --------------------------------------------------------------------------
    4244//
  • trunk/MagicSoft/Mars/manalysis/MEnergyEstParam.cc

    r1886 r2173  
    4646ClassImp(MEnergyEstParam);
    4747
     48using namespace std;
     49
    4850// --------------------------------------------------------------------------
    4951//
     
    284286}
    285287
    286 void MEnergyEstParam::Print(Option_t *opt)
     288void MEnergyEstParam::Print(Option_t *opt) const
    287289{
    288290    for (int i=0; i<fA.GetSize(); i++)
  • trunk/MagicSoft/Mars/manalysis/MEnergyEstParam.h

    r1886 r2173  
    6161    Double_t GetCoeff(Int_t i) { return i<fA.GetSize()? fA[i] : fB[i-fA.GetSize()]; }
    6262
    63     void Print(Option_t *o=NULL);
     63    void Print(Option_t *o=NULL) const;
    6464
    6565    ClassDef(MEnergyEstParam, 0) // Task to estimate the energy
  • trunk/MagicSoft/Mars/manalysis/MEnergyEstimate.cc

    r1211 r2173  
    4545ClassImp(MEnergyEstimate);
    4646
     47using namespace std;
     48
     49
    4750// --------------------------------------------------------------------------
    4851//
  • trunk/MagicSoft/Mars/manalysis/MFiltercutsCalc.cc

    r2125 r2173  
    4747
    4848ClassImp(MFiltercutsCalc);
     49
     50using namespace std;
    4951
    5052// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/manalysis/MHadronness.cc

    r1557 r2173  
    3939ClassImp(MHadronness);
    4040
     41using namespace std;
     42
    4143// --------------------------------------------------------------------------
    4244//
  • trunk/MagicSoft/Mars/manalysis/MMcPedestalCopy.cc

    r1965 r2173  
    5353
    5454ClassImp(MMcPedestalCopy);
     55
     56using namespace std;
    5557
    5658MMcPedestalCopy::MMcPedestalCopy(const char *name, const char *title)
     
    136138
    137139        const Float_t pedest = fMcPed->GetPedestal(i);
    138         const Float_t pedrms = pedest/sqrt(num);
     140        const Float_t pedrms = pedest/sqrt((float)num);
    139141
    140142        const Float_t sigma  = fMcPed->GetPedestalRms(i);
    141         const Float_t sigrms = sigma/sqrt(num*2);
     143        const Float_t sigrms = sigma/sqrt(num*2.);
    142144
    143145        pix.SetPedestal(pedest, sigma);
  • trunk/MagicSoft/Mars/manalysis/MMcPedestalNSBAdd.cc

    r2139 r2173  
    7070ClassImp(MMcPedestalNSBAdd);
    7171
     72using namespace std;
     73
    7274// --------------------------------------------------------------------------
    7375//
  • trunk/MagicSoft/Mars/manalysis/MMcTriggerLvl2.cc

    r2005 r2173  
    5656#include <TCanvas.h>
    5757
    58 
    59 ClassImp(MMcTriggerLvl2)
     58ClassImp(MMcTriggerLvl2);
     59
     60using namespace std;
    6061
    6162// ---------------------------
  • trunk/MagicSoft/Mars/manalysis/MMcTriggerLvl2Calc.cc

    r1991 r2173  
    4949#include "MGeomCam.h"
    5050
     51ClassImp(MMcTriggerLvl2Calc);
    5152
    52 ClassImp(MMcTriggerLvl2Calc);
     53using namespace std;
    5354
    5455// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/manalysis/MMultiDimDistCalc.cc

    r2114 r2173  
    4545#include "MMultiDimDistCalc.h"
    4646
    47 #include <fstream.h>
     47#include <fstream>
    4848
    4949#include "MHMatrix.h" // must be before MLogManip.h
     
    5959
    6060ClassImp(MMultiDimDistCalc);
     61
     62using namespace std;
    6163
    6264static const TString gsDefName  = "MMultiDimDistCalc";
     
    176178    *fData >> event;
    177179
    178     Double_t numg = fNum;
    179     Double_t numh = fNum;
     180    Int_t numg = fNum;
     181    Int_t numh = fNum;
    180182    if (fNum==0)
    181183    {
  • trunk/MagicSoft/Mars/manalysis/MPadding.cc

    r1951 r2173  
    9898ClassImp(MPadding);
    9999
     100using namespace std;
     101
    100102// --------------------------------------------------------------------------
    101103//
  • trunk/MagicSoft/Mars/manalysis/MParameters.cc

    r1947 r2173  
    3535#include "MParameters.h"
    3636
    37 #include <fstream.h>
     37#include <fstream>
    3838
    3939#include "MLog.h"
     
    4343ClassImp(MParameterI);
    4444//ClassImp(MParameter);
     45
     46using namespace std;
    4547
    4648// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc

    r1081 r2173  
    5050
    5151ClassImp(MPedCalcPedRun);
     52
     53using namespace std;
    5254
    5355MPedCalcPedRun::MPedCalcPedRun(const char *name, const char *title)
     
    135137Float_t MPedCalcPedRun::CalcHiGainMeanErr(Float_t higainrms) const
    136138{
    137     return higainrms/sqrt(fNumHiGainSamples);
     139    return higainrms/sqrt((float)fNumHiGainSamples);
    138140}
    139141
  • trunk/MagicSoft/Mars/manalysis/MPedestalCam.cc

    r2135 r2173  
    4040#include "MGeomCam.h"
    4141
     42ClassImp(MPedestalCam);
    4243
    43 ClassImp(MPedestalCam);
     44using namespace std;
    4445
    4546// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/manalysis/MSigmabar.cc

    r2103 r2173  
    5555ClassImp(MSigmabar);
    5656
     57using namespace std;
     58
    5759// --------------------------------------------------------------------------
    5860//
  • trunk/MagicSoft/Mars/manalysis/MSigmabarCalc.cc

    r1951 r2173  
    5050
    5151ClassImp(MSigmabarCalc);
     52
     53using namespace std;
    5254
    5355// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/manalysis/MSigmabarParam.cc

    r1682 r2173  
    4646ClassImp(MSigmabarParam);
    4747
     48using namespace std;
     49
    4850MSigmabarParam::MSigmabarParam(const char *name, const char *title) : fSigmabarMin(0), fSigmabarMax(0), fMjdMin(0), fMjdMax(0), fThetaMin(0), fThetaMax(0), fRunNumber(0)
    4951{
     
    7375}
    7476
    75 void MSigmabarParam::Print()
     77void MSigmabarParam::Print(Option_t *) const
    7678{
    7779  *fLog << endl << "Run " << fRunNumber << " | "
  • trunk/MagicSoft/Mars/manalysis/MSigmabarParam.h

    r2001 r2173  
    3333  Double_t GetThetaMax() const { return fThetaMax; }
    3434
    35   void Print();
     35  void Print(Option_t *o="") const;
    3636     
    3737  ClassDef(MSigmabarParam, 1)  // Storage container for characterizing a distribution of events in the Sigmabar-Theta plane
  • trunk/MagicSoft/Mars/manalysis/MSrcPosCam.cc

    r1487 r2173  
    3434#include "MSrcPosCam.h"
    3535
    36 #include <fstream.h>
     36#include <fstream>
    3737
    3838#include "MLog.h"
     
    4040
    4141ClassImp(MSrcPosCam);
     42
     43using namespace std;
    4244
    4345static const TString gsDefName  = "MSrcPosCam";
Note: See TracChangeset for help on using the changeset viewer.