]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMDParticles.cxx
9cffbc33f348d8e2ca8f0297ad44a9625aadaf40
[u/mrichter/AliRoot.git] / FMD / AliFMDParticles.cxx
1 //////////////////////////////////////////////////////////////////////
2 //
3 //  Forward Multiplicity Detector have to be reconstructed number of
4 //  particles in fixed pseudorapidity interval from fNumOfMinRing
5 //  to fNumOfMaxRing and phi interval from fNumOfMinSector to
6 //  fNumOfMaxSector
7 //
8 //////////////////////////////////////////////////////////////////////
9 #ifndef ALIFMDPARTICLES_H
10 # include "AliFMDParticles.h"
11 #endif
12 # include <Riostream.h>
13
14 //____________________________________________________________________
15 ClassImp(AliFMDParticles)
16
17 //____________________________________________________________________
18 AliFMDParticles::AliFMDParticles()
19   : fDetector(0),
20     fRing('\0'),
21     fMinSector(0),
22     fMaxSector(0),
23     fMinStrip(0),
24     fMaxStrip(0),
25     fMinEta(0),
26     fMaxEta(0),
27     fMinPhi(0),
28     fMaxPhi(0),
29     fParticles(0),
30     fMethod(kNaive)
31 {}
32
33 //____________________________________________________________________
34 AliFMDParticles::AliFMDParticles(UShort_t detector,  Char_t ring, 
35                                  UShort_t minSector, UShort_t maxSector, 
36                                  UShort_t minStrip,  UShort_t maxStrip, 
37                                  Float_t  minEta,    Float_t  maxEta, 
38                                  Float_t  minPhi,    Float_t  maxPhi,
39                                  Float_t  particles, UShort_t method)
40   : fDetector(detector),
41     fRing(ring),
42     fMinSector(minSector),
43     fMaxSector(maxSector),
44     fMinStrip(minStrip),
45     fMaxStrip(maxStrip),
46     fMinEta(minEta),
47     fMaxEta(maxEta),
48     fMinPhi(minPhi),
49     fMaxPhi(maxPhi),
50     fParticles(particles),
51     fMethod(method)
52 {
53   switch (fMethod) {
54   case kPoission: 
55   case kIterative: 
56   case kNaive:    
57     break;    
58   default:        
59     Warning("AliFMDParticles", "unknown method: %d", method);
60     break;
61   }
62 }
63
64
65 //____________________________________________________________________
66 void
67 AliFMDParticles::Print(Option_t* /* opt*/) const
68 {
69   cout << "FMD Reconstructed particles: " << fParticles << "\n" 
70        << "  Detector:      FMD" << fDetector << fRing << "\n"
71        << "  Sector range:  [" << fMinSector << "," << fMaxSector << "\n"
72        << "  Strip range:   [" << fMinStrip << "," << fMaxStrip << "\n"
73        << "  Eta range:     [" << fMinEta << "," << fMaxEta << "\n"
74        << "  Phi range:     [" << fMinPhi << "," << fMaxPhi << "\n"
75        << "  Method:        " << flush;
76   switch (fMethod) {
77   case kPoission:  cout << "Poission"  << endl; break;
78   case kIterative: cout << "Iterative" << endl; break;
79   case kNaive:     cout << "Naive"     << endl; break; 
80   default:         cout << "Unknown"   << endl; break;
81   }
82 }
83
84     
85 //____________________________________________________________________
86 //
87 // EOF
88 //