Coding conventions (Christian)
[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 */
c2fc1258 8/** @file AliFMDEdepMap.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
02a27b50 12 @ingroup FMD_sim
c2fc1258 13*/
02a27b50 14//
15// Contains a pair of energy deposited @c fEdep and number of hits @c
16// fN, @c fEdep is the summed energy deposition, and @c fN is the
17// number of hits
e802be3e 18#ifndef ALIFMDMAP_H
97961cbd 19# include "AliFMDMap.h"
e802be3e 20#endif
02a27b50 21#ifndef ALIFMDEDEPHITPAIR_H
22# include <AliFMDEdepHitPair.h>
23#endif
24
25
e802be3e 26//____________________________________________________________________
02a27b50 27/** @brief Map of Energy deposited, hit information per strip.
9f662337 28 Contains a pair of energy deposited @c fEdep and
29 number of hits @c fN, @c fEdep is the summed energy deposition,
30 and @c fN is the number of hits
31 @ingroup FMD_sim
32*/
e802be3e 33class AliFMDEdepMap : public AliFMDMap
34{
35public:
9f662337 36 /** Copy constructor
37 @param other Object to copy from.
38 @return */
e802be3e 39 AliFMDEdepMap(const AliFMDEdepMap& other);
9f662337 40 /** Constructor
41 @param maxDet Number of detectors (3)
42 @param maxRing Number of rings (2)
43 @param maxSec Number of sectors (40)
44 @param maxStr Number of strips (20) */
e802be3e 45 AliFMDEdepMap(size_t maxDet = kMaxDetectors,
46 size_t maxRing= kMaxRings,
47 size_t maxSec = kMaxSectors,
48 size_t maxStr = kMaxStrips);
9f662337 49 /** DTOR */
e802be3e 50 virtual ~AliFMDEdepMap() { delete [] fData; }
51 AliFMDEdepMap& operator=(const AliFMDEdepMap& other);
9f662337 52 /** Reset to default */
088f8e79 53 virtual void Reset();
9f662337 54 /** Reset to value
f8616692 55 @param val Value to reset from */
088f8e79 56 virtual void Reset(const AliFMDEdepHitPair& val);
9f662337 57 /** Access operator
f8616692 58 @param detector Detector
59 @param ring Ring
60 @param sector Sector
61 @param strip Strip
9f662337 62 @return reference value stored for the strip */
e802be3e 63 virtual AliFMDEdepHitPair& operator()(UShort_t detector,
f8616692 64 Char_t ring,
65 UShort_t sector,
66 UShort_t strip);
9f662337 67 /** Access operator
f8616692 68 @param detector Detector
69 @param ring Ring
70 @param sector Sector
71 @param strip Strip
9f662337 72 @return value stored for the strip */
e802be3e 73 virtual const AliFMDEdepHitPair& operator()(UShort_t detector,
f8616692 74 Char_t ring,
75 UShort_t sector,
76 UShort_t strip) const;
e802be3e 77protected:
9f662337 78 size_t fTotal; // Total number of entries
bfdc7f5d 79 AliFMDEdepHitPair* fData; //[fTotal] The data
80 ClassDef(AliFMDEdepMap, 2) // Cache of edep,hit information per strip
e802be3e 81};
82
83#endif
84//____________________________________________________________________
85//
86// Local Variables:
87// mode: C++
88// End:
89//
90// EOF
91//
92
93