]>
Commit | Line | Data |
---|---|---|
e802be3e | 1 | /************************************************************************** |
2 | * Copyright(c) 2004, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
15 | ||
16 | /* $Id$ */ | |
17 | ||
18 | //____________________________________________________________________ | |
4347b38f | 19 | // |
20 | // Forward Multiplicity Detector have to be reconstructed number of | |
21 | // particles in fixed pseudorapidity interval from fNumOfMinRing | |
22 | // to fNumOfMaxRing and phi interval from fNumOfMinSector to | |
23 | // fNumOfMaxSector | |
24 | // | |
e802be3e | 25 | #include "AliFMDParticles.h" // ALIFMDPARTICLES_H |
26 | #include "Riostream.h" // ROOT_Riostream | |
4347b38f | 27 | |
28 | //____________________________________________________________________ | |
29 | ClassImp(AliFMDParticles) | |
30 | ||
31 | //____________________________________________________________________ | |
32 | AliFMDParticles::AliFMDParticles() | |
33 | : fDetector(0), | |
34 | fRing('\0'), | |
35 | fMinSector(0), | |
36 | fMaxSector(0), | |
37 | fMinStrip(0), | |
38 | fMaxStrip(0), | |
39 | fMinEta(0), | |
40 | fMaxEta(0), | |
41 | fMinPhi(0), | |
42 | fMaxPhi(0), | |
43 | fParticles(0), | |
44 | fMethod(kNaive) | |
45 | {} | |
46 | ||
47 | //____________________________________________________________________ | |
48 | AliFMDParticles::AliFMDParticles(UShort_t detector, Char_t ring, | |
49 | UShort_t minSector, UShort_t maxSector, | |
50 | UShort_t minStrip, UShort_t maxStrip, | |
51 | Float_t minEta, Float_t maxEta, | |
52 | Float_t minPhi, Float_t maxPhi, | |
53 | Float_t particles, UShort_t method) | |
54 | : fDetector(detector), | |
55 | fRing(ring), | |
56 | fMinSector(minSector), | |
57 | fMaxSector(maxSector), | |
58 | fMinStrip(minStrip), | |
59 | fMaxStrip(maxStrip), | |
60 | fMinEta(minEta), | |
61 | fMaxEta(maxEta), | |
62 | fMinPhi(minPhi), | |
63 | fMaxPhi(maxPhi), | |
64 | fParticles(particles), | |
65 | fMethod(method) | |
66 | { | |
67 | switch (fMethod) { | |
68 | case kPoission: | |
69 | case kIterative: | |
70 | case kNaive: | |
71 | break; | |
72 | default: | |
73 | Warning("AliFMDParticles", "unknown method: %d", method); | |
74 | break; | |
75 | } | |
76 | } | |
77 | ||
78 | ||
79 | //____________________________________________________________________ | |
80 | void | |
81 | AliFMDParticles::Print(Option_t* /* opt*/) const | |
82 | { | |
7c09877a | 83 | cout << "FMD Reconstructed particles: " << fParticles << "\n" |
84 | << " Detector: FMD" << fDetector << fRing << "\n" | |
85 | << " Sector range: [" << fMinSector << "," << fMaxSector << "\n" | |
86 | << " Strip range: [" << fMinStrip << "," << fMaxStrip << "\n" | |
87 | << " Eta range: [" << fMinEta << "," << fMaxEta << "\n" | |
88 | << " Phi range: [" << fMinPhi << "," << fMaxPhi << "\n" | |
89 | << " Method: " << flush; | |
4347b38f | 90 | switch (fMethod) { |
7c09877a | 91 | case kPoission: cout << "Poission" << endl; break; |
92 | case kIterative: cout << "Iterative" << endl; break; | |
93 | case kNaive: cout << "Naive" << endl; break; | |
94 | default: cout << "Unknown" << endl; break; | |
4347b38f | 95 | } |
96 | } | |
97 | ||
98 | ||
99 | //____________________________________________________________________ | |
100 | // | |
101 | // EOF | |
102 | // |