]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMDParticles.h
Complete rewrite of the FMD code.
[u/mrichter/AliRoot.git] / FMD / AliFMDParticles.h
1 // -*- mode: c++ -*- 
2 #ifndef ALIFMDPARTICLES_H
3 #define ALIFMDPARTICLES_H
4
5 /* Reconstracted Particles Class: has number of reconstructed
6  * particles in sectors from NumOfMinSector to NumberOfMaxSector()
7  * rings from NumOfMinRing to NumOfMaxRing for each FMDvolume
8  */
9 #ifndef ROOT_TObject
10 # include <TObject.h>
11 #endif
12
13 class AliFMDParticles: public TObject
14 {
15 public:
16   enum EMethod {
17     kPoission, 
18     kIterative, 
19     kNaive
20   };
21   
22   AliFMDParticles();
23   AliFMDParticles (UShort_t detector,  Char_t ring, 
24                    UShort_t minSector, UShort_t maxSector, 
25                    UShort_t minStrip,  UShort_t maxStrip, 
26                    Float_t  minEta,    Float_t  maxEta, 
27                    Float_t  minPhi,    Float_t  maxPhi,
28                    Float_t  particles, UShort_t method);
29   virtual ~AliFMDParticles(){};
30
31   UShort_t Detector() const        { return fDetector; }
32   Char_t   Ring() const            { return fRing; }
33   UShort_t MinSector() const       { return fMinSector; }
34   UShort_t MaxSector() const       { return fMaxSector; }
35   UShort_t MinStrip() const        { return fMinStrip; }
36   UShort_t MaxStrip() const        { return fMaxStrip; }
37   Float_t  MinEta() const          { return fMinEta; }
38   Float_t  MaxEta() const          { return fMaxEta; }
39   Float_t  MinPhi() const          { return fMinPhi; }
40   Float_t  MaxPhi() const          { return fMaxPhi; }
41   Float_t  Particles() const       { return fParticles; }
42   UShort_t Method() const          { return fMethod; }
43   
44   virtual void Print(Option_t* opt="") const;
45 protected:
46   UShort_t fDetector;        // Detector #
47   Char_t   fRing;            // Ring ID
48   UShort_t fMinSector;       // First sector of this region
49   UShort_t fMaxSector;       // Last sector of this region
50   UShort_t fMinStrip;        // First strip of this region
51   UShort_t fMaxStrip;        // Second strip of this region  
52   Float_t  fMinEta;          // Least eta covered
53   Float_t  fMaxEta;          // Largest eta covered
54   Float_t  fMinPhi;          // Least phi covered
55   Float_t  fMaxPhi;          // Largest phi covered
56   Float_t  fParticles;       // Number of particles 
57   UShort_t fMethod;          // Method use to get fParticles
58
59   ClassDef(AliFMDParticles,2) // Reconstructed # or particles in a eta,phi region
60 };
61 #endif