]>
Commit | Line | Data |
---|---|---|
1b41ab20 | 1 | // $Id$ |
2 | ||
aa21410e | 3 | /************************************************************************** |
4 | * This file is property of and copyright by the Experimental Nuclear * | |
5 | * Physics Group, Dep. of Physics * | |
6 | * University of Oslo, Norway, 2007 * | |
7 | * * | |
8 | * Author: Per Thomas Hille <perthi@fys.uio.no> for the ALICE HLT Project.* | |
9 | * Contributors are mentioned in the code where appropriate. * | |
10 | * Please report bugs to perthi@fys.uio.no * | |
11 | * * | |
12 | * Permission to use, copy, modify and distribute this software and its * | |
13 | * documentation strictly for non-commercial purposes is hereby granted * | |
14 | * without fee, provided that the above copyright notice appears in all * | |
15 | * copies and that both the copyright notice and this permission notice * | |
16 | * appear in the supporting documentation. The authors make no claims * | |
17 | * about the suitability of this software for any purpose. It is * | |
18 | * provided "as is" without express or implied warranty. * | |
19 | **************************************************************************/ | |
20 | #include "AliHLTPHOSAltroConfig.h" | |
21 | #include <stdio.h> | |
22 | //#include <unistd.h> | |
8a3c3285 | 23 | #ifndef __SUNPRO_CC |
aa21410e | 24 | #include <cstdlib> |
8a3c3285 | 25 | #else |
26 | #include <stdlib.h> | |
27 | #endif | |
aa21410e | 28 | |
29 | ||
30 | AliHLTPHOSAltroConfig::AliHLTPHOSAltroConfig() : fNPresamples(900), | |
b444d727 | 31 | fNSamples(15), |
32 | fNTotalSamples(fNPresamples + fNSamples), | |
aa21410e | 33 | fIsAltroZeroSupressed(false), |
34 | fIsAltroBaselineSubtraction(false) | |
35 | ||
36 | ||
37 | { | |
aa21410e | 38 | |
39 | } | |
40 | ||
41 | ||
42 | AliHLTPHOSAltroConfig::~AliHLTPHOSAltroConfig() | |
43 | { | |
ab38011b | 44 | //comment |
aa21410e | 45 | } |
46 | ||
47 | void | |
ff656fe2 | 48 | AliHLTPHOSAltroConfig:: PrintAltroDefaultValues() const |
aa21410e | 49 | { |
ab38011b | 50 | //comment |
aa21410e | 51 | printf("\n AliHLTPHOSAltroConfig Default Values\n"); |
52 | printf("Presamples = %d\n", fNPresamples); | |
53 | printf("NSamples = %d\n", fNSamples); | |
54 | ||
55 | if(fIsAltroZeroSupressed == true) | |
56 | { | |
57 | printf("fIsAltroZeroSupressed = true\n"); | |
58 | } | |
59 | else | |
60 | { | |
61 | printf("fIsAltroZeroSupressed = false\n"); | |
62 | } | |
63 | ||
64 | ||
65 | if(fIsAltroBaselineSubtraction == true) | |
66 | { | |
67 | printf("fIsAltroBaselineSubtraction = true\n"); | |
68 | } | |
69 | else | |
70 | { | |
71 | printf("fIsAltroBaselineSubtraction = false\n"); | |
72 | } | |
73 | // `fIsSoftwareBaselinesubtraction | |
74 | } | |
75 | ||
76 | ||
77 | void | |
ff656fe2 | 78 | AliHLTPHOSAltroConfig::SetNPresSamples(const int presamples) |
aa21410e | 79 | { |
ab38011b | 80 | //comment |
aa21410e | 81 | fNPresamples = presamples; |
82 | } | |
83 | ||
84 | void | |
ff656fe2 | 85 | AliHLTPHOSAltroConfig::SetNSamples(const int samples) |
aa21410e | 86 | { |
ab38011b | 87 | //comment |
aa21410e | 88 | fNSamples = samples; |
89 | } | |
90 | ||
91 | void | |
ff656fe2 | 92 | AliHLTPHOSAltroConfig::SetAltroZeroSupression(const bool isZeroSupressed) |
aa21410e | 93 | { |
ab38011b | 94 | //comment |
aa21410e | 95 | fIsAltroZeroSupressed = isZeroSupressed; |
96 | } | |
97 | ||
ff656fe2 | 98 | |
aa21410e | 99 | void |
ff656fe2 | 100 | AliHLTPHOSAltroConfig::SetAltroBaselineSubtraction(const bool isAltroBaselineSubtraction) |
aa21410e | 101 | { |
ab38011b | 102 | //comment |
aa21410e | 103 | fIsAltroBaselineSubtraction = isAltroBaselineSubtraction; |
104 | } | |
105 | ||
106 |