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