fix
[u/mrichter/AliRoot.git] / PMD / AliPMDRecoParam.cxx
CommitLineData
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
29ClassImp(AliPMDRecoParam)
30
31//_____________________________________________________________________________
32AliPMDRecoParam::AliPMDRecoParam():
36455059 33 AliDetectorRecoParam(),
34 fPmdClusteringParam(0)
b3d178a4 35{
36 //
37 // constructor
38 //
b3d178a4 39 SetNameTitle("PMD","PMD");
40}
41//_____________________________________________________________________________
42AliPMDRecoParam::AliPMDRecoParam(const AliPMDRecoParam &source):
e2712be2 43 AliDetectorRecoParam(source),
44 fPmdClusteringParam(source.fPmdClusteringParam)
b3d178a4 45{
46 //copy Ctor
47
b3d178a4 48}
49//_____________________________________________________________________________
50AliPMDRecoParam& 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//_____________________________________________________________________________
64AliPMDRecoParam::~AliPMDRecoParam()
65{
66 //
67 // destructor
68 //
69}
70
71//_____________________________________________________________________________
72AliPMDRecoParam *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//_____________________________________________________________________________
84AliPMDRecoParam *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//_____________________________________________________________________________
96AliPMDRecoParam *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//_____________________________________________________________________________
108void 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}
f6db02b3 118
119//_____________________________________________________________________________
120AliPMDRecoParam *AliPMDRecoParam::GetHighFluxParam(){
121 //
122 // set default reconstruction parameters for PbPb.
123 //
124 AliPMDRecoParam *param = new AliPMDRecoParam();
125
126 param->fPmdClusteringParam = 2;
127
128 return param;
129}
130
131//_____________________________________________________________________________
132AliPMDRecoParam *AliPMDRecoParam::GetLowFluxParam(){
133 //
134 // set default reconstruction parameters for PP.
135 //
136 AliPMDRecoParam *param = new AliPMDRecoParam();
137
138 param->fPmdClusteringParam = 1;
139
140 return param;
141}