]>
Commit | Line | Data |
---|---|---|
cbab66dd | 1 | /************************************************************************** |
2 | * Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: Per Thomas Hille for the ALICE HLT Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
15 | ||
16 | #include "AliHLTPHOSRawAnalyzerPeakFinderComponent.h" | |
ee7849e6 | 17 | #include "AliHLTPHOSRawAnalyzerPeakFinder.h" |
cbab66dd | 18 | |
19 | //ClassImp(AliHLTPHOSRawAnalyzerPeakFinderComponent) | |
ee7849e6 | 20 | AliHLTPHOSRawAnalyzerPeakFinderComponent gAliHLTPHOSRawAnalyzerPeakFinderComponent; |
cbab66dd | 21 | |
ee7849e6 | 22 | AliHLTPHOSRawAnalyzerPeakFinderComponent::AliHLTPHOSRawAnalyzerPeakFinderComponent():AliHLTPHOSRawAnalyzerComponent() |
cbab66dd | 23 | { |
68d9caee | 24 | Double_t tmpAVector[70]; |
25 | Double_t tmpTVector[70]; | |
ee7849e6 | 26 | analyzerPtr = new AliHLTPHOSRawAnalyzerPeakFinder(); |
68d9caee | 27 | analyzerPtr->SetStartIndex(0); |
28 | FILE *fp; | |
29 | fp = fopen("/home/perthi/cern/aliroot/AliRoot_head/HLT/PHOS/PFVectors/start0N70tau2fs10.txt", "r"); | |
30 | ||
31 | if(fp != 0) | |
32 | { | |
33 | for(int i=0; i < 70; i++) | |
34 | { | |
35 | fscanf(fp, "%lf", &tmpAVector[i]); | |
36 | } | |
37 | ||
38 | fscanf(fp, "\n"); | |
39 | ||
40 | for(int i=0; i < 70; i++) | |
41 | { | |
42 | fscanf(fp, "%lf", &tmpTVector[i]); | |
43 | } | |
44 | ||
45 | analyzerPtr->SetAVector(tmpAVector, 70); | |
46 | analyzerPtr->SetTVector(tmpTVector, 70); | |
47 | ||
48 | fclose(fp); | |
49 | ||
50 | } | |
51 | ||
52 | else | |
53 | { | |
54 | cout <<"AliHLTPHOSRawAnalyzerPeakFinderComponent, ERROR: could not open PF vector file" << endl; | |
55 | } | |
56 | ||
57 | ||
cbab66dd | 58 | } |
59 | ||
60 | AliHLTPHOSRawAnalyzerPeakFinderComponent::~AliHLTPHOSRawAnalyzerPeakFinderComponent() | |
61 | { | |
62 | ||
63 | } | |
64 | ||
65 | ||
ee7849e6 | 66 | |
cbab66dd | 67 | AliHLTPHOSRawAnalyzerPeakFinderComponent::AliHLTPHOSRawAnalyzerPeakFinderComponent(const AliHLTPHOSRawAnalyzerPeakFinderComponent & ) : AliHLTPHOSRawAnalyzerComponent() |
68 | { | |
69 | ||
70 | } | |
71 | ||
72 | ||
ee7849e6 | 73 | const char* |
74 | AliHLTPHOSRawAnalyzerPeakFinderComponent::GetComponentID() | |
75 | { | |
76 | return "PhosRawPeakFinder"; | |
77 | } | |
78 | ||
79 | ||
80 | AliHLTComponent* | |
81 | AliHLTPHOSRawAnalyzerPeakFinderComponent::Spawn() | |
82 | { | |
83 | return new AliHLTPHOSRawAnalyzerPeakFinderComponent; | |
84 | } | |
68d9caee | 85 |