]>
Commit | Line | Data |
---|---|---|
02a27b50 | 1 | #ifndef ALIFMDEDEPHITPAIR_H |
2 | #define ALIFMDEDEPHITPAIR_H | |
3 | /* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights | |
4 | * reserved. | |
5 | * | |
6 | * See cxx source for full Copyright notice | |
7 | */ | |
8 | /** @file AliFMDEdepHitPair.h | |
9 | @author Christian Holm Christensen <cholm@nbi.dk> | |
10 | @date Mon Mar 27 12:39:50 2006 | |
11 | @brief Per strip map of energy deposited and number of hits | |
12 | @ingroup FMD_sim | |
13 | */ | |
14 | //____________________________________________________________________ | |
15 | // | |
16 | // Contains a pair of energy deposited fEdep and number of hits | |
17 | // fN, fEdep is the summed energy deposition, and fN is the | |
18 | // number of hits. The map contains one such object or each strip. | |
19 | // It is used to cache the data in the digitization classes | |
20 | // AliFMDBaseDigitizer and so on. | |
21 | // | |
22 | #ifndef ROOT_Rtypes | |
23 | # include <Rtypes.h> | |
24 | #endif | |
25 | //____________________________________________________________________ | |
26 | /** @brief Cache of Energy deposited, hit information per strip. | |
27 | Contains a pair of energy deposited @c fEdep and | |
28 | number of hits @c fN, @c fEdep is the summed energy deposition, | |
29 | and @c fN is the number of hits | |
30 | @ingroup FMD_sim | |
31 | */ | |
32 | class AliFMDEdepHitPair | |
33 | { | |
34 | public: | |
83ad576a | 35 | Float_t fEdep; // summed energy deposition |
36 | UShort_t fN; // Number of hits | |
37 | UShort_t fNPrim; // Number of primaries; | |
38 | ||
02a27b50 | 39 | /** CTOR */ |
83ad576a | 40 | AliFMDEdepHitPair() : fEdep(0), fN(0), fNPrim(0) {} |
02a27b50 | 41 | /** DTOR */ |
42 | virtual ~AliFMDEdepHitPair() {} | |
43 | /** Assignment operator | |
44 | @param o Object to assign from | |
45 | @return Reference to this object */ | |
46 | AliFMDEdepHitPair& operator=(const AliFMDEdepHitPair& o) | |
83ad576a | 47 | { |
48 | fEdep = o.fEdep; | |
49 | fN = o.fN; | |
50 | fNPrim = o.fNPrim; | |
51 | return *this; | |
52 | } | |
02a27b50 | 53 | /** Copy CTOR |
54 | @param o Object to copy from */ | |
83ad576a | 55 | AliFMDEdepHitPair(const AliFMDEdepHitPair& o) |
56 | : fEdep(o.fEdep), fN(o.fN), fNPrim(o.fNPrim) | |
57 | {} | |
58 | ClassDef(AliFMDEdepHitPair, 2) | |
02a27b50 | 59 | }; |
60 | ||
61 | #endif | |
62 | //____________________________________________________________________ | |
63 | // | |
64 | // Local Variables: | |
65 | // mode: C++ | |
66 | // End: | |
67 | // | |
68 | // EOF | |
69 | // | |
70 | ||
71 |