Universita' di GenovaINFN Sezione di Genova  
AIRWATCH / EUSO Genova

RecoEnergy - source file

// $Id: RecoEnergy.cc,v 1.2 2005/03/30 09:19:54 naumov Exp $
// Author: R.Pesce   2005/01/04

/*****************************************************************************
 * ESAF: Euso Simulation and Analysis Framework                              *
 *                                                                           *
 *  Id: RecoEnergy                                                           *
 *  Package: <packagename>                                                   *
 *  Coordinator: <coordinator>                                               *
 *                                                                           *
 *****************************************************************************/

//_____________________________________________________________________________
//
// RecoEnergy
//
// <extensive class description>
//
//   Config file parameters
//   ======================
//
//   <parameter name>: <parameter description>
//   -Valid options: <available options>
//

#include "RecoEnergy.hh"

ClassImp(RecoEnergy)

//_____________________________________________________________________________
 RecoEnergy::RecoEnergy() {
    //
    // Constructor
    //
    Clear();
}

//_____________________________________________________________________________
 RecoEnergy::RecoEnergy( const RecoEnergy& other ) {
    //
    // Copy Constructor
    //
    other.Copy( *this );
}

//_____________________________________________________________________________
 RecoEnergy::~RecoEnergy() {
    //
    // Destructor
    //
    Clear();
}

//_____________________________________________________________________________
 void RecoEnergy::Clear() {
    //
    // Clear method
    //
    fQuality      = -1;
    fEnergy       = -1;
    fEnergySigma  = -1;
    fEnergyMCError  = 0;
}

//_____________________________________________________________________________
 void RecoEnergy::Copy( TObject& other) const {
    //
    // Copy to a new object
    //
    TObject::Copy( other );
    
    ((RecoEnergy&)other).fQuality       = fQuality; 
    ((RecoEnergy&)other).fEnergy        = fEnergy; 
    ((RecoEnergy&)other).fEnergySigma   = fEnergySigma; 
    ((RecoEnergy&)other).fEnergyMCError = fEnergyMCError; 
    ((RecoEnergy&)other).fThetaFoVMax   = fThetaFoVMax; 
    ((RecoEnergy&)other).fPhiFoVMax     = fPhiFoVMax; 
}
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