]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PMD/AliPMDRecoParam.cxx
1.hard coded numbers removed 2.removal of chains in the hardware is taken care of
[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():
33 AliDetectorRecoParam()
34{
35 //
36 // constructor
37 //
38
39 for (Int_t i = 0; i < 48; i++)
40 {
41 fNoiseCut[i] = 0.;
42 }
43
44 SetNameTitle("PMD","PMD");
45}
46//_____________________________________________________________________________
47AliPMDRecoParam::AliPMDRecoParam(const AliPMDRecoParam &source):
48 AliDetectorRecoParam(source)
49{
50 //copy Ctor
51
52 for (Int_t i = 0; i < 48; i++)
53 {
54 fNoiseCut[i] = source.fNoiseCut[i];
55 }
56
57}
58//_____________________________________________________________________________
59AliPMDRecoParam& AliPMDRecoParam::operator=(const AliPMDRecoParam &source)
60{
61 //
62 // assign. operator
63 //
64
65 if (this != &source)
66 {
67 for (Int_t i = 0; i < 48; i++)
68 {
69 fNoiseCut[i] = source.fNoiseCut[i];
70 }
71 }
72
73 return *this;
74}
75//_____________________________________________________________________________
76AliPMDRecoParam::~AliPMDRecoParam()
77{
78 //
79 // destructor
80 //
81}
82
83//_____________________________________________________________________________
84AliPMDRecoParam *AliPMDRecoParam::GetPbPbParam(){
85 //
86 // set default reconstruction parameters for PbPb.
87 //
88 AliPMDRecoParam *param = new AliPMDRecoParam();
89
90 for (Int_t i = 0; i < 48; i++)
91 {
92 param->fNoiseCut[i] = 10.; // dummy cuts
93 }
94
95 return param;
96}
97
98//_____________________________________________________________________________
99AliPMDRecoParam *AliPMDRecoParam::GetPPParam(){
100 //
101 // set default reconstruction parameters for PP.
102 //
103 AliPMDRecoParam *param = new AliPMDRecoParam();
104 for (Int_t i = 0; i < 48; i++)
105 {
106 param->fNoiseCut[i] = 10.; // dummy cuts
107 }
108
109 return param;
110}
111
112//_____________________________________________________________________________
113AliPMDRecoParam *AliPMDRecoParam::GetCosmicParam(){
114 //
115 // set default reconstruction parameters for cosmic muon run
116 //
117 AliPMDRecoParam *param = new AliPMDRecoParam();
118 for (Int_t i = 0; i < 48; i++)
119 {
120 param->fNoiseCut[i] = 15.; // dummy cuts
121 }
122
123 return param;
124}
125
126//_____________________________________________________________________________
127void AliPMDRecoParam::PrintParameters() const
128{
129 //
130 // Printing of the used PMD reconstruction parameters
131 //
132 for (Int_t i = 0; i < 48; i++)
133 {
134 AliInfo(Form(" Noise cut in every detector : %f", fNoiseCut[i]));
135 }
136
137}