1 | // $Id: EFee.cc 1896 2005-05-30 08:31:12Z thea $ |
---|
2 | // Author: M.Pallavicini May, 23 2004 |
---|
3 | |
---|
4 | /***************************************************************************** |
---|
5 | * ESAF: Euso Simulation and Analysis Framework * |
---|
6 | * * |
---|
7 | * Id: EFee * |
---|
8 | * Package: SimuEvent * |
---|
9 | * Coordinator: Alessandro.Thea * |
---|
10 | * * |
---|
11 | *****************************************************************************/ |
---|
12 | |
---|
13 | #include "EFee.hh" |
---|
14 | |
---|
15 | ClassImp(EFee) |
---|
16 | |
---|
17 | |
---|
18 | //______________________________________________________________________________ |
---|
19 | // |
---|
20 | // Front End Electronics |
---|
21 | // ===================== |
---|
22 | // |
---|
23 | // Digital Front End electronics infos |
---|
24 | // For each GTU, the number of detected photons per each channel is written |
---|
25 | // Data is available for both DFEE and full AFEE |
---|
26 | // |
---|
27 | |
---|
28 | //_____________________________________________________________________________ |
---|
29 | EFee::EFee() { |
---|
30 | // ctor |
---|
31 | |
---|
32 | fGtu = -1; // gtu identifier |
---|
33 | fFEId = -1; // front end chip identifier |
---|
34 | fChUId = -1; // channel number |
---|
35 | fNumSignals = -1; // number of signal hits |
---|
36 | fNumHits = -1; // number of detected hits |
---|
37 | fHasTriggered = kFALSE; // true if it was above digital counter threshold |
---|
38 | fChCharge = 0; // channel charge |
---|
39 | } |
---|
40 | |
---|
41 | //_____________________________________________________________________________ |
---|
42 | EFee::EFee(const EFee& other) : TObject() { |
---|
43 | // copy ctor |
---|
44 | |
---|
45 | other.Copy( *this ); |
---|
46 | } |
---|
47 | //_____________________________________________________________________________ |
---|
48 | EFee::~EFee() { |
---|
49 | // dtor |
---|
50 | } |
---|
51 | |
---|
52 | //_____________________________________________________________________________ |
---|
53 | void EFee::Copy( TObject& other) const { |
---|
54 | // copy |
---|
55 | |
---|
56 | TObject::Copy( other); |
---|
57 | |
---|
58 | ((EFee&)other).fGtu = fGtu; |
---|
59 | ((EFee&)other).fFEId = fFEId; |
---|
60 | ((EFee&)other).fChUId = fChUId; |
---|
61 | ((EFee&)other).fNumSignals = fNumSignals; |
---|
62 | ((EFee&)other).fNumHits = fNumHits; |
---|
63 | ((EFee&)other).fHasTriggered = fHasTriggered; |
---|
64 | ((EFee&)other).fChCharge = fChCharge; |
---|
65 | } |
---|