]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMDEdepMap.h
Temporary reverting the changes introduced earlier to store the TGeo geometry. New...
[u/mrichter/AliRoot.git] / FMD / AliFMDEdepMap.h
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
9 # include "AliFMDMap.h"
10 #endif 
11 //____________________________________________________________________
12 //
13 // Cache of Energy deposited, hit information perr strip
14 //
15
16 //____________________________________________________________________
17 class AliFMDEdepHitPair 
18 {
19  public:
20   Float_t  fEdep;
21   UShort_t fN;
22   AliFMDEdepHitPair() : fEdep(0), fN(0) {}
23 };
24
25 //____________________________________________________________________
26 class AliFMDEdepMap : public AliFMDMap
27 {
28 public:
29   AliFMDEdepMap(const AliFMDEdepMap& other);
30   AliFMDEdepMap(size_t maxDet = kMaxDetectors, 
31                 size_t maxRing= kMaxRings, 
32                 size_t maxSec = kMaxSectors, 
33                 size_t maxStr = kMaxStrips);
34   virtual ~AliFMDEdepMap() { delete [] fData; }
35   AliFMDEdepMap& operator=(const AliFMDEdepMap& other);
36   virtual void Reset(const AliFMDEdepHitPair& val=AliFMDEdepHitPair());
37   virtual AliFMDEdepHitPair& operator()(UShort_t detector, 
38                                      Char_t   ring, 
39                                      UShort_t sector, 
40                                      UShort_t strip);
41   virtual const AliFMDEdepHitPair& operator()(UShort_t detector, 
42                                            Char_t   ring, 
43                                            UShort_t sector, 
44                                            UShort_t strip) const;
45 protected:
46   AliFMDEdepHitPair* fData;  // The data 
47   ClassDef(AliFMDEdepMap, 1) // Cache of edep,hit information per strip
48 };
49
50 #endif 
51 //____________________________________________________________________
52 //
53 // Local Variables:
54 //   mode: C++
55 // End:
56 //
57 // EOF
58 //
59
60