Universita' di GenovaINFN Sezione di Genova  
AIRWATCH / EUSO Genova

EElectronics - source file

// ESAF : Euso Simulation and Analysis Framework
// $Id: EElectronics.cc,v 1.1 2004/06/25 17:06:02 thea Exp $
// A.Thea created Jun, 23 2004

#include "EElectronics.hh"
#include "Etypes.hh"

ClassImp(EElectronics)

//_____________________________________________________________________________
 EElectronics::EElectronics() {
    // ctor

    Clear();
}

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

//_____________________________________________________________________________
 void EElectronics::Copy( TObject& other) const {
    // copy
    
    TObject::Copy( other );

    ((EElectronics&)other).fNumActiveGtus = fNumActiveGtus;
    ((EElectronics&)other).fGtuStart      = fGtuStart;
    ((EElectronics&)other).fGtuEnd        = fGtuEnd;
    ((EElectronics&)other).fNumCells      = fNumCells;
    ((EElectronics&)other).fTimeGtu0      = fTimeGtu0;
    ((EElectronics&)other).fTimeFirstGtu  = fTimeFirstGtu;
    ((EElectronics&)other).fTimeLastGtu   = fTimeLastGtu;
    ((EElectronics&)other).fGtuLength     = fGtuLength;
    
}

//_____________________________________________________________________________
 void EElectronics::Clear( Option_t* option ) {
    // clear object
    
    fNumActiveGtus = -1;
    fGtuStart      = -1;
    fGtuEnd        = -1;
    fNumCells      = -1;
    fTimeGtu0      =  kHuge;
    fTimeFirstGtu  =  kHuge;
    fTimeLastGtu   = -kHuge;
    fGtuLength     = -1;

}
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