]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/PHOS/AliHLTPHOSTreeMakerComponent.h
Coding conventions and minor fixes
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSTreeMakerComponent.h
CommitLineData
f3ab4848 1
2 /**************************************************************************
3 * This file is property of and copyright by the ALICE HLT Project *
4 * All rights reserved. *
5 * *
6 * Primary Authors: Oystein Djuvsland *
7 * *
8 * Permission to use, copy, modify and distribute this software and its *
9 * documentation strictly for non-commercial purposes is hereby granted *
10 * without fee, provided that the above copyright notice appears in all *
11 * copies and that both the copyright notice and this permission notice *
12 * appear in the supporting documentation. The authors make no claims *
13 * about the suitability of this software for any purpose. It is *
14 * provided "as is" without express or implied warranty. *
15 **************************************************************************/
16
17
18
19#ifndef ALIHLTPHOSTREEMAKERCOMPONENT_H
20#define ALIHLTPHOSTREEMAKERCOMPONENT_H
21
ab38011b 22#include "AliHLTPHOSProcessor.h"
f3ab4848 23
24class AliHLTPHOSTreeMaker;
25class TTree;
26
27class AliHLTPHOSTreeMakerComponent : public AliHLTPHOSProcessor
28{
29 public:
30
31 AliHLTPHOSTreeMakerComponent();
ab38011b 32 virtual ~AliHLTPHOSTreeMakerComponent();
f3ab4848 33
34 const char* GetComponentID();
35
36 void GetInputDataTypes(std::vector<AliHLTComponentDataType>& list);
37
38 AliHLTComponentDataType GetOutputDataType();
39
40 void GetOutputDataSize(unsigned long& constBase, double& inputmultiplier);
41/*
42 int DoEvent(const AliHLTComponentEventData&,
43 AliHLTComponentTriggerData&);
44 */
45
ab38011b 46 int DoEvent(const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
47 AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t&size,
48 std::vector<AliHLTComponentBlockData>& outputBlocks);
f3ab4848 49
50 AliHLTComponent* Spawn();
51
52 void Write();
53 void ResetTrees();
54
ab38011b 55
f3ab4848 56 protected:
1804b020 57 using AliHLTPHOSProcessor::DoEvent;
f3ab4848 58 int DoInit(int argc, const char** argv);
59
60 virtual int Deinit(); ////////// PTH WARNING you should Define a class AliHLTPHOSModuleProcessor
61
62 private:
ab38011b 63 AliHLTPHOSTreeMaker *fTreeMakerPtr; //comment
64 TTree *fDigitTreePtr; //comment
939c67e7 65 // UInt_t fEventCount; //comment
ab38011b 66 UInt_t fWriteInterval; //comment
939c67e7 67 // UInt_t fRunNb; //comment
ab38011b 68 char *fDirectory; //comment
f3ab4848 69
70 static const AliHLTComponentDataType fgkInputDataTypes[]; //HLT input data type
71
72};
73#endif
74