]>
Commit | Line | Data |
---|---|---|
1b41ab20 | 1 | // $Id$ |
2 | ||
b6bb24d3 | 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 "AliHLTPHOSConfig.h" | |
21 | #include <stdio.h> | |
22 | ||
23 | ||
24 | AliHLTPHOSConfig::AliHLTPHOSConfig() : | |
25 | fIsSoftwareBaselineSubtraction(true) | |
26 | { | |
27 | /* | |
28 | FILE *fp = fopen("hltConfig.txt", "r"); | |
29 | ||
30 | ||
31 | if(fp == 0) | |
32 | { | |
33 | printf("\nAliHLTPHOSConfig::AliHLTPHOSConfig(): WARNING: Could not find file \"hltConfig.txt\" \n"); | |
34 | printf("Default values will be used\n"); | |
35 | PrintDefaultValues(); | |
36 | } | |
37 | else | |
38 | { | |
39 | printf("Reading PHOS HLT configurations from file is no yest implemented\n"); | |
40 | printf("You can use Setter functions of AliHLTPHOSConfig to set the appropriate parameters\n"); | |
41 | printf("See AliHLTPHOSConfig.h for details\n"); | |
42 | printf("Using default values for the moment\n"); | |
43 | PrintDefaultValues(); | |
44 | } | |
45 | */ | |
46 | ||
47 | } | |
48 | ||
49 | ||
50 | AliHLTPHOSConfig::~AliHLTPHOSConfig() | |
51 | { | |
52 | ||
53 | } | |
54 | ||
55 | void | |
56 | AliHLTPHOSConfig:: PrintDefaultValues() | |
57 | { | |
58 | printf("\n AliHLTPHOSConfig Default Values\n"); | |
59 | ||
60 | ||
61 | if(fIsSoftwareBaselineSubtraction == true) | |
62 | { | |
63 | printf("fisSoftwarebaselinesubtraction = true\n"); | |
64 | } | |
65 | else | |
66 | { | |
67 | printf("fisSoftwarebaselinesubtraction == false\n"); | |
68 | } | |
69 | ||
70 | } | |
71 | ||
72 | ||
73 | void | |
74 | AliHLTPHOSConfig::SetSoftwareBaselineSubtraction(bool isSoftwareBaselineSubtraction) | |
75 | { | |
76 | fIsSoftwareBaselineSubtraction = isSoftwareBaselineSubtraction; | |
77 | } |