]>
Commit | Line | Data |
---|---|---|
2410262d | 1 | |
2 | #ifndef ALIHLTPHOSPHYSICSANALYZERSPECTRUMCOMPONENT | |
3 | #define ALIHLTPHOSPHYSICSANALYZERSPECTRUMCOMPONENT | |
4 | ||
5 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
6 | * See cxx source for full Copyright notice */ | |
7 | ||
8 | ||
9 | #include "AliHLTProcessor.h" | |
10 | #include "AliHLTPHOSPhysicsAnalyzerPeakFitter.h" | |
11 | #include "AliHLTPHOSPhysicsAnalyzerSpectrum.h" | |
12 | #include "AliHLTPHOSClusterDataStruct.h" | |
13 | #include "TH1F.h" | |
14 | #include "TH2F.h" | |
15 | #include "Rtypes.h" | |
16 | ||
17 | ||
18 | class AliHLTPHOSPhysicsAnalyzerSpectrumComponent: public AliHLTProcessor | |
19 | { | |
20 | public: | |
21 | ||
22 | AliHLTPHOSPhysicsAnalyzerSpectrumComponent(); | |
23 | ~AliHLTPHOSPhysicsAnalyzerSpectrumComponent(); | |
24 | AliHLTPHOSPhysicsAnalyzerSpectrumComponent(const AliHLTPHOSPhysicsAnalyzerSpectrumComponent &); | |
25 | AliHLTPHOSPhysicsAnalyzerSpectrumComponent & operator = (const AliHLTPHOSPhysicsAnalyzerSpectrumComponent &) | |
26 | { | |
27 | return *this; | |
28 | } | |
29 | const char* GetComponentID(); | |
30 | void GetInputDataTypes(std::vector<AliHLTComponentDataType, std::allocator<AliHLTComponentDataType> >&); | |
31 | ||
32 | AliHLTComponentDataType GetOutputDataType(); | |
33 | ||
34 | void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier); | |
35 | ||
36 | ||
37 | Int_t DoEvent(const AliHLTComponentEventData&, const AliHLTComponentBlockData*, | |
38 | AliHLTComponentTriggerData&, AliHLTUInt8_t*, AliHLTUInt32_t&, | |
39 | std::vector<AliHLTComponentBlockData>&); | |
40 | ||
41 | ||
42 | AliHLTComponent* Spawn(); | |
43 | ||
44 | protected: | |
45 | ||
46 | Int_t DoInit(int argc, const char** argv); | |
47 | Int_t Deinit(); | |
48 | Int_t DoDeinit(); | |
49 | ||
50 | private: | |
51 | ||
52 | AliHLTPHOSPhysicsAnalyzerSpectrum* fAnalyzerPtr; | |
53 | AliHLTPHOSPhysicsAnalyzerPeakFitter* fPeakFitter; | |
54 | TH1F* fRootHistPtr; | |
55 | AliHLTPHOSClusterDataStruct* fClusterArrayPtr[10000]; | |
56 | Int_t fWriteInterval; | |
57 | ||
58 | static const AliHLTComponentDataType inputDataTypes[]; | |
59 | static int fEventCount; | |
60 | ||
61 | }; | |
62 | ||
63 | #endif |