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"
30 AliHLTPHOSAltroConfig::AliHLTPHOSAltroConfig() : fNPresamples(900),
32 fNTotalSamples(fNPresamples + fNSamples),
33 fIsAltroZeroSupressed(false),
34 fIsAltroBaselineSubtraction(false)
42 AliHLTPHOSAltroConfig::~AliHLTPHOSAltroConfig()
48 AliHLTPHOSAltroConfig:: PrintAltroDefaultValues() const
51 printf("\n AliHLTPHOSAltroConfig Default Values\n");
52 printf("Presamples = %d\n", fNPresamples);
53 printf("NSamples = %d\n", fNSamples);
55 if(fIsAltroZeroSupressed == true)
57 printf("fIsAltroZeroSupressed = true\n");
61 printf("fIsAltroZeroSupressed = false\n");
65 if(fIsAltroBaselineSubtraction == true)
67 printf("fIsAltroBaselineSubtraction = true\n");
71 printf("fIsAltroBaselineSubtraction = false\n");
73 // `fIsSoftwareBaselinesubtraction
78 AliHLTPHOSAltroConfig::SetNPresSamples(const int presamples)
81 fNPresamples = presamples;
85 AliHLTPHOSAltroConfig::SetNSamples(const int samples)
92 AliHLTPHOSAltroConfig::SetAltroZeroSupression(const bool isZeroSupressed)
95 fIsAltroZeroSupressed = isZeroSupressed;
100 AliHLTPHOSAltroConfig::SetAltroBaselineSubtraction(const bool isAltroBaselineSubtraction)
103 fIsAltroBaselineSubtraction = isAltroBaselineSubtraction;