source: JEM-EUSO/esaf_lal/tags/v1_r0/esaf/packages/common/root/src/EMacroCellHit.cc @ 117

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

ESAF version compilable on mac OS

File size: 1.4 KB
Line 
1// ESAF : Euso Simulation and Analysis Framework
2// $Id: EMacroCellHit.cc 718 2004-06-11 15:12:41Z thea $
3//  created May, 23 2004
4
5#include "EMacroCellHit.hh"
6
7ClassImp(EMacroCellHit)
8
9//_____________________________________________________________________________
10EMacroCellHit::EMacroCellHit() {
11    // ctor
12
13    Clear();
14}
15
16//_____________________________________________________________________________
17EMacroCellHit::EMacroCellHit(const EMacroCellHit& other) : TObject() {
18    // copy ctor
19   
20    other.Copy( *this );
21}
22
23//_____________________________________________________________________________
24EMacroCellHit::~EMacroCellHit() {
25    // dtor
26}
27
28//_____________________________________________________________________________
29void EMacroCellHit::Copy( TObject& other) const {
30    // copy
31   
32    TObject::Copy( other );
33
34    ((EMacroCellHit&)other).fCellId = fCellId;
35    ((EMacroCellHit&)other).fChUId  = fChUId;
36    ((EMacroCellHit&)other).fGtu    = fGtu;
37    ((EMacroCellHit&)other).fCounts = fCounts;
38    ((EMacroCellHit&)other).fTime   = fTime;
39}
40
41
42//_____________________________________________________________________________
43void EMacroCellHit::Clear( Option_t* opt ) {
44    // clear this hit
45   
46    fCellId                 = 0;
47    fChUId                  = 0;
48    fGtu                    = -1;
49    fCounts                 = -1;
50    fTime                   = -1e20;
51}
Note: See TracBrowser for help on using the repository browser.