]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/ana/digits/AliHLTPHOSAltroConfig.cxx
removing obsolete classes from build system
[u/mrichter/AliRoot.git] / HLT / PHOS / ana / digits / 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
23
24 AliHLTPHOSAltroConfig::AliHLTPHOSAltroConfig() : fNPresamples(55), 
25                                                  fNSamples(15), 
26                                                  fIsAltroZeroSupressed(false),
27                                                  fIsAltroBaselineSubtraction(false)
28 {
29   fNTotalSamples =  fNPresamples + fNSamples ; 
30
31   FILE *fp = fopen("hltAltroConfig.txt", "r");
32   if(fp == 0)
33     {
34      // printf("\nAliHLTPHOSConfig::AliHLTPHOSConfig(): WARNING: Could not fine file \"hltConfig.txt\" \n");
35      // printf("Default values will be used\n");
36      // PrintAltroDefaultValues();
37     }
38   else
39     {
40       printf("Reading PHOS HLT configurations from file is no yest implemented\n");
41       printf("You can use Setter functions of  AliHLTPHOSConfig to set the appropriate parameters\n");
42       printf("See  AliHLTPHOSConfig.h for details\n");
43       printf("Using default values for the moment\n");
44       PrintAltroDefaultValues(); 
45     }
46
47 }
48
49
50 AliHLTPHOSAltroConfig::~AliHLTPHOSAltroConfig()
51 {
52
53 }
54
55 void 
56 AliHLTPHOSAltroConfig:: PrintAltroDefaultValues()
57 {
58   printf("\n AliHLTPHOSAltroConfig Default  Values\n");
59   printf("Presamples = \n", fNPresamples);
60   printf("NSamples = \n", fNSamples);
61
62   if(fIsAltroZeroSupressed == true)
63     {
64       printf("fIsAltroZeroSupressed = true\n");
65     }
66   else
67     {
68       printf("fIsAltroZeroSupressed = false\n");
69     }
70
71   
72   if(fIsAltroBaselineSubtraction == true)
73     {
74       printf("fIsAltroBaselineSubtraction = true\n");
75     }
76   else
77     {
78       printf("fIsAltroBaselineSubtraction = false\n");
79     }
80   //    `fIsSoftwareBaselinesubtraction 
81 }
82
83
84 void 
85 AliHLTPHOSAltroConfig::SetNPresSamples(int presamples)
86 {
87   fNPresamples =  presamples;
88 }
89
90 void 
91 AliHLTPHOSAltroConfig::SetNSamples(int samples)
92 {
93   fNSamples = samples;
94 }
95
96 void 
97 AliHLTPHOSAltroConfig::SetAltroZeroSupression(bool isZeroSupressed)
98 {
99   fIsAltroZeroSupressed = isZeroSupressed;
100 }
101
102 void 
103 AliHLTPHOSAltroConfig::SetAltroBaselineSubtraction(bool isAltroBaselineSubtraction)
104 {
105   fIsAltroBaselineSubtraction = isAltroBaselineSubtraction;
106 }
107
108