1 #ifndef ALIFMDEDEPMAP_H
2 #define ALIFMDEDEPMAP_H
3 /* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights
6 * See cxx source for full Copyright notice
9 # include "AliFMDMap.h"
11 //____________________________________________________________________
12 /** Cache of Energy deposited, hit information per strip.
13 Contains a pair of energy deposited @c fEdep and
14 number of hits @c fN, @c fEdep is the summed energy deposition,
15 and @c fN is the number of hits
18 class AliFMDEdepHitPair
21 Float_t fEdep; // summed energy deposition
22 UShort_t fN; // Number of hits
24 AliFMDEdepHitPair() : fEdep(0), fN(0) {}
26 virtual ~AliFMDEdepHitPair() {}
27 /** Assignment operator
28 @param o Object to assign from
29 @return Reference to this object */
30 AliFMDEdepHitPair& operator=(const AliFMDEdepHitPair& o)
31 { fEdep = o.fEdep; fN = o.fN; return *this; }
33 @param o Object to copy from */
34 AliFMDEdepHitPair(const AliFMDEdepHitPair& o) : fEdep(o.fEdep), fN(o.fN) {}
35 ClassDef(AliFMDEdepHitPair, 1)
38 //____________________________________________________________________
39 /** Map of Energy deposited, hit information per strip.
40 Contains a pair of energy deposited @c fEdep and
41 number of hits @c fN, @c fEdep is the summed energy deposition,
42 and @c fN is the number of hits */
43 class AliFMDEdepMap : public AliFMDMap
47 @param other Object to copy from.
49 AliFMDEdepMap(const AliFMDEdepMap& other);
51 @param maxDet Number of detectors (3)
52 @param maxRing Number of rings (2)
53 @param maxSec Number of sectors (40)
54 @param maxStr Number of strips (20) */
55 AliFMDEdepMap(size_t maxDet = kMaxDetectors,
56 size_t maxRing= kMaxRings,
57 size_t maxSec = kMaxSectors,
58 size_t maxStr = kMaxStrips);
60 virtual ~AliFMDEdepMap() { delete [] fData; }
61 AliFMDEdepMap& operator=(const AliFMDEdepMap& other);
62 /** Reset to default */
65 @param v Value to reset from */
66 virtual void Reset(const AliFMDEdepHitPair& val);
72 @return reference value stored for the strip */
73 virtual AliFMDEdepHitPair& operator()(UShort_t detector,
82 @return value stored for the strip */
83 virtual const AliFMDEdepHitPair& operator()(UShort_t detector,
86 UShort_t strip) const;
88 size_t fTotal; // Total number of entries
89 AliFMDEdepHitPair* fData; //[fTotal] The data
90 ClassDef(AliFMDEdepMap, 2) // Cache of edep,hit information per strip
94 //____________________________________________________________________