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 *
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 *
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"
24 AliHLTPHOSAltroConfig::AliHLTPHOSAltroConfig() : fNPresamples(55),
26 fIsAltroZeroSupressed(false),
27 fIsAltroBaselineSubtraction(false)
29 fNTotalSamples = fNPresamples + fNSamples ;
31 FILE *fp = fopen("hltAltroConfig.txt", "r");
34 // printf("\nAliHLTPHOSConfig::AliHLTPHOSConfig(): WARNING: Could not fine file \"hltConfig.txt\" \n");
35 // printf("Default values will be used\n");
36 // PrintAltroDefaultValues();
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();
50 AliHLTPHOSAltroConfig::~AliHLTPHOSAltroConfig()
56 AliHLTPHOSAltroConfig:: PrintAltroDefaultValues()
58 printf("\n AliHLTPHOSAltroConfig Default Values\n");
59 printf("Presamples = \n", fNPresamples);
60 printf("NSamples = \n", fNSamples);
62 if(fIsAltroZeroSupressed == true)
64 printf("fIsAltroZeroSupressed = true\n");
68 printf("fIsAltroZeroSupressed = false\n");
72 if(fIsAltroBaselineSubtraction == true)
74 printf("fIsAltroBaselineSubtraction = true\n");
78 printf("fIsAltroBaselineSubtraction = false\n");
80 // `fIsSoftwareBaselinesubtraction
85 AliHLTPHOSAltroConfig::SetNPresSamples(int presamples)
87 fNPresamples = presamples;
91 AliHLTPHOSAltroConfig::SetNSamples(int samples)
97 AliHLTPHOSAltroConfig::SetAltroZeroSupression(bool isZeroSupressed)
99 fIsAltroZeroSupressed = isZeroSupressed;
103 AliHLTPHOSAltroConfig::SetAltroBaselineSubtraction(bool isAltroBaselineSubtraction)
105 fIsAltroBaselineSubtraction = isAltroBaselineSubtraction;