Ignore:
Timestamp:
01/24/09 01:49:53 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcorsika
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcorsika/MCorsikaEvtHeader.cc

    r9229 r9252  
    3333#include <fstream>
    3434
     35#include <TMath.h>
     36
    3537#include "MLog.h"
    3638#include "MLogManip.h"
     
    5052    fName  = name  ? name  : "MCorsikaEvtHeader";
    5153    fTitle = title ? title : "Raw Event Header Information";
     54}
     55
     56// --------------------------------------------------------------------------
     57//
     58//  Return Hypot(x, y)
     59//
     60Double_t MCorsikaEvtHeader::GetImpact() const
     61{
     62    return TMath::Hypot(fX, fY);
    5263}
    5364
  • trunk/MagicSoft/Mars/mcorsika/MCorsikaEvtHeader.h

    r9229 r9252  
    5858    Float_t GetY() const { return fY; }
    5959
    60     Double_t GetImpact() const { return TMath::Hypot(fX, fY); }
     60    Double_t GetImpact() const;
    6161
    6262    Int_t  ReadEvt(istream& fin);    // read in event header block
Note: See TracChangeset for help on using the changeset viewer.