source: JEM-EUSO/esaf_cc_at_lal/packages/common/root/src/EElectronics.cc @ 114

Last change on this file since 114 was 114, checked in by moretto, 11 years ago

actual version of ESAF at CCin2p3

File size: 1.6 KB
Line 
1// ESAF : Euso Simulation and Analysis Framework
2// $Id: EElectronics.cc 831 2004-06-25 17:06:02Z thea $
3// A.Thea created Jun, 23 2004
4
5#include "EElectronics.hh"
6#include "Etypes.hh"
7
8ClassImp(EElectronics)
9
10//_____________________________________________________________________________
11EElectronics::EElectronics() {
12    // ctor
13
14    Clear();
15}
16
17//_____________________________________________________________________________
18EElectronics::EElectronics(const EElectronics& other ) : TObject() {
19    // copy ctor
20   
21    other.Copy( *this );
22}
23//_____________________________________________________________________________
24EElectronics::~EElectronics() {
25    // dtor
26}
27
28//_____________________________________________________________________________
29void EElectronics::Copy( TObject& other) const {
30    // copy
31   
32    TObject::Copy( other );
33
34    ((EElectronics&)other).fNumActiveGtus = fNumActiveGtus;
35    ((EElectronics&)other).fGtuStart      = fGtuStart;
36    ((EElectronics&)other).fGtuEnd        = fGtuEnd;
37    ((EElectronics&)other).fNumCells      = fNumCells;
38    ((EElectronics&)other).fTimeGtu0      = fTimeGtu0;
39    ((EElectronics&)other).fTimeFirstGtu  = fTimeFirstGtu;
40    ((EElectronics&)other).fTimeLastGtu   = fTimeLastGtu;
41    ((EElectronics&)other).fGtuLength     = fGtuLength;
42   
43}
44
45//_____________________________________________________________________________
46void EElectronics::Clear( Option_t* option ) {
47    // clear object
48   
49    fNumActiveGtus = -1;
50    fGtuStart      = -1;
51    fGtuEnd        = -1;
52    fNumCells      = -1;
53    fTimeGtu0      =  kHuge;
54    fTimeFirstGtu  =  kHuge;
55    fTimeLastGtu   = -kHuge;
56    fGtuLength     = -1;
57
58}
Note: See TracBrowser for help on using the repository browser.