1 /**************************************************************************
2 * Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
4 * Author: Per Thomas Hille for the ALICE HLT Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
16 #include "AliHLTPHOSRawAnalyzerPeakFinderComponent.h"
17 #include "AliHLTPHOSRawAnalyzerPeakFinder.h"
19 //ClassImp(AliHLTPHOSRawAnalyzerPeakFinderComponent)
20 AliHLTPHOSRawAnalyzerPeakFinderComponent gAliHLTPHOSRawAnalyzerPeakFinderComponent;
22 AliHLTPHOSRawAnalyzerPeakFinderComponent::AliHLTPHOSRawAnalyzerPeakFinderComponent():AliHLTPHOSRawAnalyzerComponent()
25 Double_t tmpAVector[70];
26 Double_t tmpTVector[70];
27 analyzerPtr = new AliHLTPHOSRawAnalyzerPeakFinder();
28 analyzerPtr->SetStartIndex(0);
30 fp = fopen("/home/perthi/cern/aliroot/AliRoot_head/HLT/PHOS/PFVectors/start0N70tau2fs10.txt", "r");
34 for(int i=0; i < 70; i++)
36 fscanf(fp, "%lf", &tmpAVector[i]);
41 for(int i=0; i < 70; i++)
43 fscanf(fp, "%lf", &tmpTVector[i]);
46 analyzerPtr->SetAVector(tmpAVector, 70);
47 analyzerPtr->SetTVector(tmpTVector, 70);
55 // cout <<"AliHLTPHOSRawAnalyzerPeakFinderComponent, ERROR: could not open PF vector file" << endl;
61 AliHLTPHOSRawAnalyzerPeakFinderComponent::~AliHLTPHOSRawAnalyzerPeakFinderComponent()
68 AliHLTPHOSRawAnalyzerPeakFinderComponent::AliHLTPHOSRawAnalyzerPeakFinderComponent(const AliHLTPHOSRawAnalyzerPeakFinderComponent & ) : AliHLTPHOSRawAnalyzerComponent()
75 AliHLTPHOSRawAnalyzerPeakFinderComponent::GetComponentID()
77 //cout << "AliHLTPHOSRawAnalyzerPeakFinderComponent returning ID" << endl;
78 return "PhosRawPeakFinder";
83 AliHLTPHOSRawAnalyzerPeakFinderComponent::Spawn()
85 // cout << "AliHLTPHOSRawAnalyzerPeakFinderComponent spawning new instance" << endl;
86 return new AliHLTPHOSRawAnalyzerPeakFinderComponent;