]>
Commit | Line | Data |
---|---|---|
56b1929b | 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 | //____________________________________________________________________ | |
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 | // | |
25 | #include "AliFMDMultStrip.h" // ALIFMDMULTSTRIP_H | |
26 | #include <TString.h> // ROOT_TString | |
27 | #include <Riostream.h> // ROOT_Riostream | |
28 | ||
29 | //____________________________________________________________________ | |
30 | ClassImp(AliFMDMultStrip); | |
31 | ||
32 | ||
33 | //____________________________________________________________________ | |
34 | AliFMDMultStrip::AliFMDMultStrip() | |
35 | : fDetector(0), | |
36 | fRing('\0'), | |
37 | fSector(0), | |
38 | fStrip(0), | |
39 | fEta(0), | |
40 | fPhi(0), | |
41 | fEdep(0) | |
42 | {} | |
43 | ||
44 | //____________________________________________________________________ | |
45 | AliFMDMultStrip::AliFMDMultStrip(UShort_t detector, Char_t ring, | |
46 | UShort_t sector, UShort_t strip, | |
47 | Float_t eta, Float_t phi, | |
48 | Float_t edep, Float_t particles, | |
49 | UShort_t method) | |
50 | : AliFMDMult(particles, method), | |
51 | fDetector(detector), | |
52 | fRing(ring), | |
53 | fSector(sector), | |
54 | fStrip(strip), | |
55 | fEta(eta), | |
56 | fPhi(phi), | |
57 | fEdep(edep) | |
58 | {} | |
59 | ||
60 | ||
61 | //____________________________________________________________________ | |
62 | void | |
63 | AliFMDMultStrip::Print(Option_t* option) const | |
64 | { | |
65 | // Print information | |
66 | // | |
67 | // Options: | |
68 | // D: Detector (default) | |
69 | // E: Eta range (default) | |
70 | // P: Phi range (default) | |
71 | // | |
72 | TString opt(option); | |
73 | cout << "FMD Reconstructed particles: " << fParticles << endl; | |
74 | if (opt.Contains("D", TString::kIgnoreCase)) | |
75 | cout << " Detector: FMD" << fDetector << fRing | |
76 | << "[" << fSector << "," << fStrip << "]" << endl; | |
77 | if (opt.Contains("E", TString::kIgnoreCase)) | |
78 | cout << " Eta range: " << fEta << endl; | |
79 | if (opt.Contains("P", TString::kIgnoreCase)) | |
80 | cout << " Phi range: " << fPhi << endl; | |
81 | AliFMDMult::Print(option); | |
82 | } | |
83 | ||
84 | ||
85 | //____________________________________________________________________ | |
86 | // | |
87 | // EOF | |
88 | // |