1 /**************************************************************************
2 * This file is property of and copyright by the ALICE HLT Project *
3 * All rights reserved. *
5 * Primary Authors: Oystein Djuvsland *
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 #ifndef ALIHLTPHOSBASELINEANALYZERCOMPONENT_H
16 #define ALIHLTPHOSBASELINEANALYZERCOMPONENT_H
18 #include "AliHLTPHOSProcessor.h"
20 class AliHLTPHOSBaselineAnalyzer;
23 class AliHLTPHOSBaselineAnalyzerComponent : public AliHLTPHOSProcessor
26 AliHLTPHOSBaselineAnalyzerComponent();
27 virtual ~AliHLTPHOSBaselineAnalyzerComponent();
29 const char* GetComponentID();
31 void GetInputDataTypes(std::vector<AliHLTComponentDataType>& list);
33 AliHLTComponentDataType GetOutputDataType();
35 void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
37 int DoEvent(const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
38 AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size,
39 std::vector<AliHLTComponentBlockData>& outputBlocks);
41 AliHLTComponent* Spawn();
44 using AliHLTPHOSProcessor::DoEvent;
45 int DoInit(int argc, const char** argv);
46 virtual int Deinit(); ////////// PTH WARNING you should Define a class AliHLTPHOSModuleProcessor
52 AliHLTPHOSBaselineAnalyzer *fBaselineAnalyzerPtr; //comment
53 TTree *fTreePtr; //comment
54 TClonesArray *fBaselineArrayPtr; //comment
55 UInt_t fEvCnt; //comment
56 UInt_t fWriteInterval; //comment
57 UInt_t fFillInterval; //comment
58 char *fFilename; //comment
59 char* fDirectory; //comment
60 char* fHistPath; //comment
61 Int_t fRunNb; //comment
62 Bool_t fCalculateAll; //comment
64 static const AliHLTComponentDataType fgkInputDataTypes[]; //HLT input data type