AliFMDEdepMap.h

Go to the documentation of this file.
00001 #ifndef ALIFMDEDEPMAP_H
00002 #define ALIFMDEDEPMAP_H
00003 /* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights
00004  * reserved. 
00005  *
00006  * See cxx source for full Copyright notice                               
00007  */
00008 #ifndef ALIFMDMAP_H
00009 # include "AliFMDMap.h"
00010 #endif 
00011 //____________________________________________________________________
00018 class AliFMDEdepHitPair 
00019 {
00020 public:
00021   Float_t  fEdep; // summed energy deposition
00022   UShort_t fN;    // Number of hits
00024   AliFMDEdepHitPair() : fEdep(0), fN(0) {}
00026   virtual ~AliFMDEdepHitPair() {}
00030   AliFMDEdepHitPair& operator=(const AliFMDEdepHitPair& o) 
00031   { fEdep = o.fEdep; fN    = o.fN; return *this; }
00034   AliFMDEdepHitPair(const AliFMDEdepHitPair& o) : fEdep(o.fEdep), fN(o.fN) {}
00035   ClassDef(AliFMDEdepHitPair, 1)
00036 };
00037 
00038 //____________________________________________________________________
00043 class AliFMDEdepMap : public AliFMDMap
00044 {
00045 public:
00049   AliFMDEdepMap(const AliFMDEdepMap& other);
00055   AliFMDEdepMap(size_t maxDet = kMaxDetectors, 
00056                 size_t maxRing= kMaxRings, 
00057                 size_t maxSec = kMaxSectors, 
00058                 size_t maxStr = kMaxStrips);
00060   virtual ~AliFMDEdepMap() { delete [] fData; }
00061   AliFMDEdepMap& operator=(const AliFMDEdepMap& other);
00063   virtual void Reset();
00066   virtual void Reset(const AliFMDEdepHitPair& val);
00073   virtual AliFMDEdepHitPair& operator()(UShort_t detector, 
00074                                         Char_t   ring, 
00075                                         UShort_t sector, 
00076                                         UShort_t strip);
00083   virtual const AliFMDEdepHitPair& operator()(UShort_t detector, 
00084                                               Char_t   ring, 
00085                                               UShort_t sector, 
00086                                               UShort_t strip) const;
00087 protected:
00088   size_t             fTotal; //  Total number of entries
00089   AliFMDEdepHitPair* fData;  //[fTotal] The data 
00090   ClassDef(AliFMDEdepMap, 2) // Cache of edep,hit information per strip
00091 };
00092 
00093 #endif 
00094 //____________________________________________________________________
00095 //
00096 // Local Variables:
00097 //   mode: C++
00098 // End:
00099 //
00100 // EOF
00101 //
00102 
00103 

Generated on Fri Mar 24 17:11:21 2006 for ALICE FMD Off-line by  doxygen 1.4.6