]>
Commit | Line | Data |
---|---|---|
1b41ab20 | 1 | // $Id$ |
2 | ||
ee7849e6 | 3 | |
cbab66dd | 4 | /************************************************************************** |
5 | * Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. * | |
6 | * * | |
7 | * Author: Per Thomas Hille for the ALICE HLT Project. * | |
8 | * Contributors are mentioned in the code where appropriate. * | |
9 | * * | |
10 | * Permission to use, copy, modify and distribute this software and its * | |
11 | * documentation strictly for non-commercial purposes is hereby granted * | |
12 | * without fee, provided that the above copyright notice appears in all * | |
13 | * copies and that both the copyright notice and this permission notice * | |
14 | * appear in the supporting documentation. The authors make no claims * | |
15 | * about the suitability of this software for any purpose. It is * | |
16 | * provided "as is" without express or implied warranty. * | |
17 | **************************************************************************/ | |
18 | ||
d504c864 | 19 | |
cbab66dd | 20 | #include "AliHLTPHOSRawAnalyzerCrudeComponent.h" |
aa2ffd19 | 21 | #include "AliCaloRawAnalyzerCrude.h" |
cbab66dd | 22 | |
ee7849e6 | 23 | AliHLTPHOSRawAnalyzerCrudeComponent gAliHLTPHOSRawAnalyzerCrudeComponent; |
cbab66dd | 24 | |
d504c864 | 25 | //___________________________________________________________________________ |
cbab66dd | 26 | AliHLTPHOSRawAnalyzerCrudeComponent::AliHLTPHOSRawAnalyzerCrudeComponent() |
27 | { | |
aa2ffd19 | 28 | fAnalyzerPtr = new AliCaloRawAnalyzerCrude(); |
84af2960 | 29 | fAnalyzerPtr->SetIsZeroSuppressed(true); |
cbab66dd | 30 | } |
31 | ||
d504c864 | 32 | //___________________________________________________________________________ |
cbab66dd | 33 | AliHLTPHOSRawAnalyzerCrudeComponent::~AliHLTPHOSRawAnalyzerCrudeComponent() |
34 | { | |
f137c3c5 | 35 | // if(fAnalyzerPtr) |
36 | // { | |
37 | // delete fAnalyzerPtr; | |
38 | // fAnalyzerPtr = 0; | |
39 | // } | |
cbab66dd | 40 | } |
41 | ||
d504c864 | 42 | //___________________________________________________________________________ |
79aed8a6 | 43 | AliHLTPHOSRawAnalyzerCrudeComponent::AliHLTPHOSRawAnalyzerCrudeComponent(const AliHLTPHOSRawAnalyzerCrudeComponent & ):AliHLTPHOSRawAnalyzerComponentv3() |
cbab66dd | 44 | { |
45 | ||
46 | } | |
47 | ||
d949e02e | 48 | int |
49 | AliHLTPHOSRawAnalyzerCrudeComponent::Deinit() | |
50 | { | |
51 | ||
52 | if(fAnalyzerPtr) | |
53 | { | |
54 | delete fAnalyzerPtr; | |
55 | fAnalyzerPtr = 0; | |
56 | } | |
57 | Logging(kHLTLogInfo, "HLT", "PHOS", ",AliHLTPHOSRawAnalyzerCrudeComponent Deinit"); | |
58 | return 0; | |
59 | } | |
60 | ||
d504c864 | 61 | //___________________________________________________________________________ |
ee7849e6 | 62 | const char* |
63 | AliHLTPHOSRawAnalyzerCrudeComponent::GetComponentID() | |
64 | { | |
65 | return "PhosRawCrude"; | |
66 | } | |
67 | ||
d504c864 | 68 | //___________________________________________________________________________ |
ee7849e6 | 69 | AliHLTComponent* |
70 | AliHLTPHOSRawAnalyzerCrudeComponent::Spawn() | |
71 | { | |
72 | return new AliHLTPHOSRawAnalyzerCrudeComponent; | |
73 | } |