Universita' di GenovaINFN Sezione di Genova  
AIRWATCH / EUSO Genova

EPhoton - source file

// ESAF : Euso Simulation and Analysis Framework
// $Id: EPhoton.cc,v 1.5 2005/02/12 18:17:42 thea Exp $
//  created May, 18 2004

#include "EPhoton.hh"
#include "Etypes.hh"

ClassImp(EPhoton)

//_____________________________________________________________________________
 EPhoton::EPhoton(): TObject() {
    // ctor

    Clear();
}

//_____________________________________________________________________________
 EPhoton::~EPhoton() {
    // dtor
}

//_____________________________________________________________________________
 EPhoton::EPhoton(const EPhoton& other) : TObject() {
    // copy ctor
    
    other.Copy( *this );
}

//_____________________________________________________________________________
 void EPhoton::Copy( TObject& other) const {
    // copy 
    
    ((EPhoton&)other).fType           = fType;
    ((EPhoton&)other).fTheta          = fTheta;           
    ((EPhoton&)other).fPhi            = fPhi;            
    ((EPhoton&)other).fLambda         = fLambda;        
    ((EPhoton&)other).fTime           = fTime;         

    ((EPhoton&)other).fPosX           = fPosX;      
    ((EPhoton&)other).fPosY           = fPosY;      
    ((EPhoton&)other).fPosZ           = fPosZ;
}

//_____________________________________________________________________________
 void EPhoton::Clear( Option_t* opt) {

    fType           = 0; 
    fTheta          = -100; 
    fPhi            = -100;
    fLambda         = -100;
    fTime           = -100;
    fPosX           = -kHuge;
    fPosY           = -kHuge;
    fPosZ           = -kHuge;

}


About Us | EUSO Official Website | Web pages created by Roberto Pesce and Alessandro Thea - Last Update Wed Nov 16 16:57:39 2005 Wed Nov 16 16:29:22 2005