]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSRawAnalyzerPeakFinderComponent.cxx
all code in the constructors commented out, It will be readded later
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSRawAnalyzerPeakFinderComponent.cxx
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"
17 #include "AliHLTPHOSRawAnalyzerPeakFinder.h"
18
19 //ClassImp(AliHLTPHOSRawAnalyzerPeakFinderComponent) 
20 AliHLTPHOSRawAnalyzerPeakFinderComponent gAliHLTPHOSRawAnalyzerPeakFinderComponent;
21
22 AliHLTPHOSRawAnalyzerPeakFinderComponent::AliHLTPHOSRawAnalyzerPeakFinderComponent():AliHLTPHOSRawAnalyzerComponent()
23 {
24   /*
25   Double_t tmpAVector[70];
26   Double_t tmpTVector[70]; 
27   analyzerPtr = new AliHLTPHOSRawAnalyzerPeakFinder();
28   analyzerPtr->SetStartIndex(0);
29   FILE *fp;
30   fp = fopen("/home/perthi/cern/aliroot/AliRoot_head/HLT/PHOS/PFVectors/start0N70tau2fs10.txt", "r");
31   
32   if(fp != 0)
33     {
34       for(int i=0; i < 70; i++)
35         {
36           fscanf(fp, "%lf", &tmpAVector[i]);
37         }
38
39       fscanf(fp, "\n");
40
41       for(int i=0; i < 70; i++)
42         {
43                   fscanf(fp, "%lf", &tmpTVector[i]);
44         }
45
46       analyzerPtr->SetAVector(tmpAVector, 70);
47       analyzerPtr->SetTVector(tmpTVector, 70);
48
49       fclose(fp);
50
51     }
52   
53   else
54     {
55       //   cout <<"AliHLTPHOSRawAnalyzerPeakFinderComponent, ERROR: could not  open PF vector file" << endl;
56     }
57   
58   */
59
60
61 AliHLTPHOSRawAnalyzerPeakFinderComponent::~AliHLTPHOSRawAnalyzerPeakFinderComponent()
62 {
63
64 }
65
66
67
68 AliHLTPHOSRawAnalyzerPeakFinderComponent::AliHLTPHOSRawAnalyzerPeakFinderComponent(const AliHLTPHOSRawAnalyzerPeakFinderComponent & ) : AliHLTPHOSRawAnalyzerComponent()
69 {
70
71 }
72
73
74 const char* 
75 AliHLTPHOSRawAnalyzerPeakFinderComponent::GetComponentID()
76 {
77   //cout << "AliHLTPHOSRawAnalyzerPeakFinderComponent returning ID" << endl;
78   return "PhosRawPeakFinder";
79 }
80
81
82 AliHLTComponent*
83 AliHLTPHOSRawAnalyzerPeakFinderComponent::Spawn()
84 {
85   //  cout << "AliHLTPHOSRawAnalyzerPeakFinderComponent spawning new instance" << endl;
86   return new AliHLTPHOSRawAnalyzerPeakFinderComponent;
87 }
88