]>
Commit | Line | Data |
---|---|---|
55a829a5 | 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 to set HMPID reconstruction parameters (normal, HTA, UserCut ... // | |
20 | // // | |
21 | // // | |
22 | /////////////////////////////////////////////////////////////////////////////// | |
23 | // | |
24 | //Email: Levente.Molnar@ba.infn.it | |
25 | // | |
26 | ||
27 | #include "AliHMPIDRecoParam.h" | |
28 | #include "AliHMPIDParam.h" | |
29 | ||
30 | ClassImp(AliHMPIDRecoParam) | |
31 | ||
32 | //_____________________________________________________________________________ | |
33 | AliHMPIDRecoParam::AliHMPIDRecoParam():TNamed(), | |
34 | fRecoMode(kTRUE), | |
35 | fUserCutMode(kTRUE) | |
36 | { | |
37 | // | |
38 | // ctor | |
39 | // | |
40 | for(Int_t iCh=AliHMPIDParam::kMinCh;iCh<=AliHMPIDParam::kMaxCh;iCh++) fUserCut[iCh]=3; | |
41 | } | |
42 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
43 | AliHMPIDRecoParam::AliHMPIDRecoParam(const AliHMPIDRecoParam &p):TNamed(p), | |
44 | fRecoMode(kTRUE), | |
45 | fUserCutMode(kTRUE) | |
46 | { | |
47 | //copy Ctor | |
48 | ||
49 | fRecoMode= p.fRecoMode; | |
50 | for(Int_t iCh=AliHMPIDParam::kMinCh;iCh<=AliHMPIDParam::kMaxCh;iCh++) fUserCut[iCh]=p.fUserCut[iCh]; | |
51 | fUserCutMode = p.fUserCutMode; | |
52 | } | |
53 | ||
54 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
55 | AliHMPIDRecoParam& AliHMPIDRecoParam::operator=(const AliHMPIDRecoParam &p) | |
56 | { | |
57 | // | |
58 | // assign. operator | |
59 | // | |
60 | this->fRecoMode= p.fRecoMode; | |
61 | for(Int_t iCh=AliHMPIDParam::kMinCh;iCh<=AliHMPIDParam::kMaxCh;iCh++) this->fUserCut[iCh] = p.fUserCut[iCh]; | |
62 | this->fUserCutMode = p.fUserCutMode; | |
63 | return *this; | |
64 | } | |
65 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
66 | AliHMPIDRecoParam *AliHMPIDRecoParam::GetUserModeParam(){ | |
67 | // | |
68 | // Provide access to reconstruction parameters fro the rec.C | |
69 | // | |
70 | AliHMPIDRecoParam *hmpidRecoParam = new AliHMPIDRecoParam; | |
71 | return hmpidRecoParam; | |
72 | } | |
73 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
74 | AliHMPIDRecoParam::~AliHMPIDRecoParam() | |
75 | { | |
76 | // | |
77 | // dtor | |
78 | // | |
79 | } |