]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FMD/AliFMDEdepMap.h
Made persistent
[u/mrichter/AliRoot.git] / FMD / AliFMDEdepMap.h
CommitLineData
e802be3e 1#ifndef ALIFMDEDEPMAP_H
2#define ALIFMDEDEPMAP_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#ifndef ALIFMDMAP_H
97961cbd 9# include "AliFMDMap.h"
e802be3e 10#endif
11//____________________________________________________________________
12//
088f8e79 13// Cache of Energy deposited, hit information per strip.
14// Contains a pair of fEdep and fN
15// fEdep is the summed energy deposition, and fN is the number of hits
e802be3e 16//
17
18//____________________________________________________________________
19class AliFMDEdepHitPair
20{
baa92757 21public:
088f8e79 22 Float_t fEdep; // summed energy deposition
23 UShort_t fN; // Number of hits
e802be3e 24 AliFMDEdepHitPair() : fEdep(0), fN(0) {}
088f8e79 25 AliFMDEdepHitPair& operator=(const AliFMDEdepHitPair& o)
26 { fEdep = o.fEdep; fN = o.fN; return *this; }
27 AliFMDEdepHitPair(const AliFMDEdepHitPair& o) : fEdep(o.fEdep), fN(o.fN) {}
e802be3e 28};
29
30//____________________________________________________________________
31class AliFMDEdepMap : public AliFMDMap
32{
33public:
34 AliFMDEdepMap(const AliFMDEdepMap& other);
35 AliFMDEdepMap(size_t maxDet = kMaxDetectors,
36 size_t maxRing= kMaxRings,
37 size_t maxSec = kMaxSectors,
38 size_t maxStr = kMaxStrips);
39 virtual ~AliFMDEdepMap() { delete [] fData; }
40 AliFMDEdepMap& operator=(const AliFMDEdepMap& other);
088f8e79 41 virtual void Reset();
42 virtual void Reset(const AliFMDEdepHitPair& val);
e802be3e 43 virtual AliFMDEdepHitPair& operator()(UShort_t detector,
44 Char_t ring,
45 UShort_t sector,
46 UShort_t strip);
47 virtual const AliFMDEdepHitPair& operator()(UShort_t detector,
48 Char_t ring,
49 UShort_t sector,
50 UShort_t strip) const;
51protected:
bfdc7f5d 52 size_t fTotal; //
53 AliFMDEdepHitPair* fData; //[fTotal] The data
54 ClassDef(AliFMDEdepMap, 2) // Cache of edep,hit information per strip
e802be3e 55};
56
57#endif
58//____________________________________________________________________
59//
60// Local Variables:
61// mode: C++
62// End:
63//
64// EOF
65//
66
67