]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FMD/AliFMDParticles.cxx
Moved mode lines to end of files
[u/mrichter/AliRoot.git] / FMD / AliFMDParticles.cxx
CommitLineData
4347b38f 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#ifndef __IOSTREAM__
13# include <iostream>
14#endif
15#ifndef __IOMANIP__
16# include <iomanip>
17#endif
18
19//____________________________________________________________________
20ClassImp(AliFMDParticles)
21
22//____________________________________________________________________
23AliFMDParticles::AliFMDParticles()
24 : fDetector(0),
25 fRing('\0'),
26 fMinSector(0),
27 fMaxSector(0),
28 fMinStrip(0),
29 fMaxStrip(0),
30 fMinEta(0),
31 fMaxEta(0),
32 fMinPhi(0),
33 fMaxPhi(0),
34 fParticles(0),
35 fMethod(kNaive)
36{}
37
38//____________________________________________________________________
39AliFMDParticles::AliFMDParticles(UShort_t detector, Char_t ring,
40 UShort_t minSector, UShort_t maxSector,
41 UShort_t minStrip, UShort_t maxStrip,
42 Float_t minEta, Float_t maxEta,
43 Float_t minPhi, Float_t maxPhi,
44 Float_t particles, UShort_t method)
45 : fDetector(detector),
46 fRing(ring),
47 fMinSector(minSector),
48 fMaxSector(maxSector),
49 fMinStrip(minStrip),
50 fMaxStrip(maxStrip),
51 fMinEta(minEta),
52 fMaxEta(maxEta),
53 fMinPhi(minPhi),
54 fMaxPhi(maxPhi),
55 fParticles(particles),
56 fMethod(method)
57{
58 switch (fMethod) {
59 case kPoission:
60 case kIterative:
61 case kNaive:
62 break;
63 default:
64 Warning("AliFMDParticles", "unknown method: %d", method);
65 break;
66 }
67}
68
69
70//____________________________________________________________________
71void
72AliFMDParticles::Print(Option_t* /* opt*/) const
73{
74 std::cout << "FMD Reconstructed particles: " << fParticles << "\n"
75 << " Detector: FMD" << fDetector << fRing << "\n"
76 << " Sector range: [" << fMinSector << "," << fMaxSector << "\n"
77 << " Strip range: [" << fMinStrip << "," << fMaxStrip << "\n"
78 << " Eta range: [" << fMinEta << "," << fMaxEta << "\n"
79 << " Phi range: [" << fMinPhi << "," << fMaxPhi << "\n"
80 << " Method: " << std::flush;
81 switch (fMethod) {
82 case kPoission: std::cout << "Poission" << std::endl; break;
83 case kIterative: std::cout << "Iterative" << std::endl; break;
84 case kNaive: std::cout << "Naive" << std::endl; break;
85 default: std::cout << "Unknown" << std::endl; break;
86 }
87}
88
89
90//____________________________________________________________________
91//
92// EOF
93//