]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSAltroConfig.cxx
Removing obsolete code + refactoring
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSAltroConfig.cxx
1 // $Id$
2
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>
23 #ifndef __SUNPRO_CC
24 #include <cstdlib>
25 #else
26 #include <stdlib.h>
27 #endif
28
29
30 AliHLTPHOSAltroConfig::AliHLTPHOSAltroConfig() : fNPresamples(900), 
31                                                  fNSamples(15),
32                                                  fNTotalSamples(fNPresamples + fNSamples),
33                                                  fIsAltroZeroSupressed(false),
34                                                  fIsAltroBaselineSubtraction(false)
35
36
37 {
38
39 }
40
41
42 AliHLTPHOSAltroConfig::~AliHLTPHOSAltroConfig()
43 {
44   //comment
45 }
46
47 void 
48 AliHLTPHOSAltroConfig:: PrintAltroDefaultValues() const
49 {
50   //comment
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 
78 AliHLTPHOSAltroConfig::SetNPresSamples(const int presamples)
79 {
80   //comment
81   fNPresamples =  presamples;
82 }
83
84 void 
85 AliHLTPHOSAltroConfig::SetNSamples(const int samples)
86 {
87   //comment
88   fNSamples = samples;
89 }
90
91 void 
92 AliHLTPHOSAltroConfig::SetAltroZeroSupression(const bool isZeroSupressed)
93 {
94   //comment
95   fIsAltroZeroSupressed = isZeroSupressed;
96 }
97
98
99 void 
100 AliHLTPHOSAltroConfig::SetAltroBaselineSubtraction(const bool isAltroBaselineSubtraction)
101 {
102   //comment
103   fIsAltroBaselineSubtraction = isAltroBaselineSubtraction;
104 }
105
106