// 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;
}