]>
Commit | Line | Data |
---|---|---|
b3d178a4 | 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 | **************************************************************************/ | |
15 | ||
16 | ||
17 | /////////////////////////////////////////////////////////////////////////////// | |
18 | // // | |
19 | // Class with PMD reconstruction parameters // | |
20 | // // | |
21 | // // | |
22 | /////////////////////////////////////////////////////////////////////////////// | |
23 | ||
24 | ||
25 | #include "AliLog.h" | |
26 | ||
27 | #include "AliPMDRecoParam.h" | |
28 | ||
29 | ClassImp(AliPMDRecoParam) | |
30 | ||
31 | //_____________________________________________________________________________ | |
32 | AliPMDRecoParam::AliPMDRecoParam(): | |
36455059 | 33 | AliDetectorRecoParam(), |
34 | fPmdClusteringParam(0) | |
b3d178a4 | 35 | { |
36 | // | |
37 | // constructor | |
38 | // | |
b3d178a4 | 39 | SetNameTitle("PMD","PMD"); |
40 | } | |
41 | //_____________________________________________________________________________ | |
42 | AliPMDRecoParam::AliPMDRecoParam(const AliPMDRecoParam &source): | |
43 | AliDetectorRecoParam(source) | |
44 | { | |
45 | //copy Ctor | |
46 | ||
36455059 | 47 | fPmdClusteringParam = source.fPmdClusteringParam; |
b3d178a4 | 48 | } |
49 | //_____________________________________________________________________________ | |
50 | AliPMDRecoParam& AliPMDRecoParam::operator=(const AliPMDRecoParam &source) | |
51 | { | |
52 | // | |
53 | // assign. operator | |
54 | // | |
55 | ||
56 | if (this != &source) | |
57 | { | |
36455059 | 58 | fPmdClusteringParam = source.fPmdClusteringParam; |
b3d178a4 | 59 | } |
60 | ||
61 | return *this; | |
62 | } | |
63 | //_____________________________________________________________________________ | |
64 | AliPMDRecoParam::~AliPMDRecoParam() | |
65 | { | |
66 | // | |
67 | // destructor | |
68 | // | |
69 | } | |
70 | ||
71 | //_____________________________________________________________________________ | |
72 | AliPMDRecoParam *AliPMDRecoParam::GetPbPbParam(){ | |
73 | // | |
74 | // set default reconstruction parameters for PbPb. | |
75 | // | |
76 | AliPMDRecoParam *param = new AliPMDRecoParam(); | |
36455059 | 77 | |
78 | param->fPmdClusteringParam = 2; | |
b3d178a4 | 79 | |
80 | return param; | |
81 | } | |
82 | ||
83 | //_____________________________________________________________________________ | |
84 | AliPMDRecoParam *AliPMDRecoParam::GetPPParam(){ | |
85 | // | |
86 | // set default reconstruction parameters for PP. | |
87 | // | |
88 | AliPMDRecoParam *param = new AliPMDRecoParam(); | |
36455059 | 89 | |
90 | param->fPmdClusteringParam = 1; | |
b3d178a4 | 91 | |
92 | return param; | |
93 | } | |
94 | ||
95 | //_____________________________________________________________________________ | |
96 | AliPMDRecoParam *AliPMDRecoParam::GetCosmicParam(){ | |
97 | // | |
98 | // set default reconstruction parameters for cosmic muon run | |
99 | // | |
100 | AliPMDRecoParam *param = new AliPMDRecoParam(); | |
36455059 | 101 | |
102 | param->fPmdClusteringParam = 1; | |
103 | ||
b3d178a4 | 104 | return param; |
105 | } | |
106 | ||
107 | //_____________________________________________________________________________ | |
108 | void AliPMDRecoParam::PrintParameters() const | |
109 | { | |
110 | // | |
111 | // Printing of the used PMD reconstruction parameters | |
112 | // | |
36455059 | 113 | |
114 | AliInfo(" Crude Clustering = 1 and Refined Clustering = 2"); | |
115 | AliInfo(Form(" Clustering parameter : %d", fPmdClusteringParam)); | |
b3d178a4 | 116 | |
117 | } |