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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mimage/MCameraSmooth.cc

    r1940 r2173  
    4646
    4747ClassImp(MCameraSmooth);
     48
     49using namespace std;
    4850
    4951// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mimage/MHHillas.cc

    r2098 r2173  
    5353ClassImp(MHHillas);
    5454
     55using namespace std;
     56
    5557// --------------------------------------------------------------------------
    5658//
  • trunk/MagicSoft/Mars/mimage/MHHillasExt.cc

    r2084 r2173  
    5252ClassImp(MHHillasExt);
    5353
     54using namespace std;
     55
    5456// --------------------------------------------------------------------------
    5557//
  • trunk/MagicSoft/Mars/mimage/MHHillasSrc.cc

    r2117 r2173  
    5050ClassImp(MHHillasSrc);
    5151
     52using namespace std;
     53
    5254// --------------------------------------------------------------------------
    5355//
  • trunk/MagicSoft/Mars/mimage/MHNewImagePar.cc

    r2142 r2173  
    4848
    4949ClassImp(MHNewImagePar);
     50
     51using namespace std;
    5052
    5153// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mimage/MHillas.cc

    r2026 r2173  
    6060#include "MHillas.h"
    6161
    62 #include <fstream.h>
     62#include <fstream>
    6363
    6464#include <TArrayF.h>
     
    7575
    7676ClassImp(MHillas);
     77
     78using namespace std;
    7779
    7880// --------------------------------------------------------------------------
     
    111113
    112114    fSize   = -1;
    113     fMeanX  = -1;
    114     fMeanY  = -1;
     115    fMeanX  =  0;
     116    fMeanY  =  0;
    115117
    116118    Clear();
  • trunk/MagicSoft/Mars/mimage/MHillasCalc.cc

    r2100 r2173  
    6868
    6969ClassImp(MHillasCalc);
     70
     71using namespace std;
    7072
    7173// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mimage/MHillasExt.cc

    r2092 r2173  
    5959#include "MHillasExt.h"
    6060
    61 #include <fstream.h>
     61#include <fstream>
    6262#include <TArrayF.h>
    6363
     
    7474
    7575ClassImp(MHillasExt);
     76
     77using namespace std;
    7678
    7779// -------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mimage/MHillasSrc.cc

    r2026 r2173  
    6363#include "MHillasSrc.h"
    6464
    65 #include <fstream.h>
     65#include <fstream>
    6666#include <TArrayF.h>
    6767
     
    7272
    7373ClassImp(MHillasSrc);
     74
     75using namespace std;
    7476
    7577// --------------------------------------------------------------------------
     
    98100Bool_t MHillasSrc::Calc(const MHillas *hillas)
    99101{
    100     const Double_t mx   = hillas->GetMeanX();       // [mm]
    101     const Double_t my   = hillas->GetMeanY();       // [mm]
     102    const Double_t mx = hillas->GetMeanX();     // [mm]
     103    const Double_t my = hillas->GetMeanY();     // [mm]
    102104
    103     const Double_t sx   = mx - fSrcPos->GetX();     // [mm]
    104     const Double_t sy   = my - fSrcPos->GetY();     // [mm]
     105    const Double_t sx = mx - fSrcPos->GetX();   // [mm]
     106    const Double_t sy = my - fSrcPos->GetY();   // [mm]
    105107
    106     const Double_t sd   = hillas->GetSinDelta();    // [1]
    107     const Double_t cd   = hillas->GetCosDelta();    // [1]
     108    const Double_t sd = hillas->GetSinDelta();  // [1]
     109    const Double_t cd = hillas->GetCosDelta();  // [1]
    108110
    109111    //
     
    112114    // The calculation has failed and returnes kFALSE.
    113115    //
    114     const Double_t dist = sqrt(sx*sx + sy*sy);      // [mm]
     116    const Double_t dist = sqrt(sx*sx + sy*sy);  // [mm]
    115117    if (dist==0)
    116118        return kFALSE;
     
    124126    // *OLD* fAlpha = asin(arg)*kRad2Deg;
    125127
    126     const Double_t arg1 = cd*sy-sd*sx;              // [mm]
    127     const Double_t arg2 = cd*sx+sd*sy;              // [mm]
     128    const Double_t arg1 = cd*sy-sd*sx;          // [mm]
     129    const Double_t arg2 = cd*sx+sd*sy;          // [mm]
    128130
    129     fAlpha         = asin(arg1/dist)*kRad2Deg;      // [deg]
    130     fCosDeltaAlpha = arg2/dist;                     // [1]
    131     fDist          = dist;                          // [mm]
     131    fAlpha         = asin(arg1/dist)*kRad2Deg;  // [deg]
     132    fCosDeltaAlpha = arg2/dist;                 // [1]
     133    fDist          = dist;                      // [mm]
    132134
    133135    SetReadyToSave();
  • trunk/MagicSoft/Mars/mimage/MHillasSrcCalc.cc

    r2161 r2173  
    3333#include "MHillasSrcCalc.h"
    3434
    35 #include <fstream.h>
     35#include <fstream>
    3636
    3737#include "MParList.h"
     
    4444
    4545ClassImp(MHillasSrcCalc);
     46
     47using namespace std;
    4648
    4749static const TString gsDefName  = "MHillasSrcCalc";
  • trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc

    r2099 r2173  
    253253
    254254#include <stdlib.h>       // atof                                         
    255 #include <fstream.h>      // ofstream, SavePrimitive
     255#include <fstream      // ofstream, SavePrimitive
    256256
    257257#include <TGFrame.h>      // TGFrame
     
    272272
    273273ClassImp(MImgCleanStd);
     274
     275using namespace std;
    274276
    275277enum {
  • trunk/MagicSoft/Mars/mimage/MNewImagePar.cc

    r2092 r2173  
    3535#include "MNewImagePar.h"
    3636
    37 #include <fstream.h>
     37#include <fstream>
    3838
    3939#include "MLog.h"
     
    4949
    5050ClassImp(MNewImagePar);
     51
     52using namespace std;
    5153
    5254// --------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.