]>
Commit | Line | Data |
---|---|---|
818fff8d | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, 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 | **************************************************************************/ | |
818fff8d | 15 | /////////////////////////////////////////////////////////////////////////////// |
16 | // | |
17 | // FMD Reconstruction Parameters | |
18 | // | |
19 | // | |
20 | /////////////////////////////////////////////////////////////////////////////// | |
21 | ||
22 | ||
23 | #include "AliFMDRecoParam.h" | |
24 | ||
25 | ClassImp(AliDetectorRecoParam) | |
26 | #if 0 | |
27 | ; // Don't delete - for Emacs | |
28 | #endif | |
29 | ||
30 | //____________________________________________________________________ | |
31 | AliFMDRecoParam::AliFMDRecoParam(Float_t noiseFactor, | |
32 | Bool_t angleCorrect, | |
33 | Bool_t sharingCorrect) | |
34 | : AliDetectorRecoParam(), | |
35 | fNoiseFactor(noiseFactor), | |
36 | fAngleCorrect(angleCorrect), | |
37 | fSharingCorrect(sharingCorrect) | |
38 | { | |
39 | // Constructor | |
40 | SetName("FMD"); | |
41 | SetTitle("FMD"); | |
42 | } | |
43 | ||
44 | //____________________________________________________________________ | |
45 | AliFMDRecoParam* | |
46 | AliFMDRecoParam::GetLowFluxParam() | |
47 | { | |
09b6c804 | 48 | // |
49 | // Get low flux parameter | |
50 | // | |
51 | // Return: | |
52 | // low flux parameters | |
53 | // | |
818fff8d | 54 | AliFMDRecoParam* p = new AliFMDRecoParam(10, kTRUE, kFALSE); |
55 | p->SetName("FMD_low_flux"); | |
56 | p->SetTitle("FMD low flux"); | |
57 | return p; | |
58 | } | |
59 | //____________________________________________________________________ | |
60 | AliFMDRecoParam* | |
61 | AliFMDRecoParam::GetHighFluxParam() | |
62 | { | |
09b6c804 | 63 | // |
64 | // Get high flux parameter | |
65 | // | |
66 | // Return: | |
67 | // high flux parameters | |
68 | // | |
818fff8d | 69 | AliFMDRecoParam* p = new AliFMDRecoParam(10, kTRUE, kFALSE); |
70 | p->SetName("FMD_high_flux"); | |
71 | p->SetTitle("FMD high flux"); | |
72 | return p; | |
73 | } | |
74 | //____________________________________________________________________ | |
75 | AliFMDRecoParam* | |
76 | AliFMDRecoParam::GetParam(AliRecoParam::EventSpecie_t specie) | |
77 | { | |
09b6c804 | 78 | // |
79 | // Get parameters for a specific species | |
80 | // | |
81 | // Parameters: | |
82 | // specie Species | |
83 | // | |
84 | // Return: | |
85 | // Reconstruction paramters | |
86 | // | |
818fff8d | 87 | switch (specie) { |
88 | case AliRecoParam::kDefault: | |
89 | case AliRecoParam::kCalib: | |
90 | case AliRecoParam::kHighMult: return GetHighFluxParam(); | |
91 | case AliRecoParam::kCosmic: | |
92 | case AliRecoParam::kLowMult: return GetLowFluxParam(); | |
93 | } | |
94 | return new AliFMDRecoParam(); | |
95 | } | |
96 | ||
97 | ||
98 | //____________________________________________________________________ | |
99 | // | |
100 | // | |
101 | // EOF | |
102 | // |