2 /**************************************************************************
3 * This file is property of and copyright by the ALICE HLT Project *
4 * All rights reserved. *
6 * Primary Authors: Oystein Djuvsland *
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 **************************************************************************/
19 #ifndef ALIHLTPHOSTREEMAKERCOMPONENT_H
20 #define ALIHLTPHOSTREEMAKERCOMPONENT_H
23 * Tree maker component for PHOS HLT
25 * @file AliHLTPHOSTreeMakerComponent.h
26 * @author Oystein Djuvsland
28 * @brief A tree maker component for PHOS HLT
31 // see below for class documentation
33 // refer to README to build package
35 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
36 #include "AliHLTPHOSProcessor.h"
38 class AliHLTPHOSTreeMaker;
43 * @class AliHLTPHOSTreeMakerComponent
45 * Class for making trees of digits in PHOS HLT
46 * Takes as input structs of type AliHLTPHOSDigitContainerStruct, and makes a
47 * tree of TClonesArrays of objects of type AliHLTPHOSDigit
49 * The component has the following component arguments:
50 * -path File name base
51 * -writeinterval How often to write to disk, in events
53 * @ingroup alihlt_phos
55 class AliHLTPHOSTreeMakerComponent : public AliHLTPHOSProcessor
60 AliHLTPHOSTreeMakerComponent();
63 virtual ~AliHLTPHOSTreeMakerComponent();
65 /** interface function, see @ref AliHLTComponent for description */
66 const char* GetComponentID();
68 /** interface function, see @ref AliHLTComponent for description */
69 void GetInputDataTypes(std::vector<AliHLTComponentDataType>& list);
71 /** interface function, see @ref AliHLTComponent for description */
72 AliHLTComponentDataType GetOutputDataType();
74 /** interface function, see @ref AliHLTComponent for description */
75 void GetOutputDataSize(unsigned long& constBase, double& inputmultiplier);
78 int DoEvent(const AliHLTComponentEventData&,
79 AliHLTComponentTriggerData&);
82 /** interface function, see @ref AliHLTComponent for description */
83 int DoEvent(const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
84 AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t&size,
85 std::vector<AliHLTComponentBlockData>& outputBlocks);
87 /** interface function, see @ref AliHLTComponent for description */
88 AliHLTComponent* Spawn();
93 /** Reset the trees */
99 /** interface function, see @ref AliHLTComponent for description */
100 int DoInit(int argc, const char** argv);
102 using AliHLTPHOSProcessor::DoEvent;
104 /** interface function, see @ref AliHLTComponent for description */
105 virtual int Deinit(); ////////// PTH WARNING you should Define a class AliHLTPHOSModuleProcessor
109 /** Pointer to a AliHLTPHOSTreeMaker object */
110 AliHLTPHOSTreeMaker *fTreeMakerPtr; //! transient
112 /** Pointer to the tree */
113 TTree *fDigitTreePtr; //! transient
116 UInt_t fEvtCount; //COMMENT
118 /** Write interval */
119 UInt_t fWriteInterval; //COMMENT
122 //UInt_t fRunNb; //COMMENT
124 /** Path to the directory where to write the tree */
125 char *fDirectory; //! transient
127 /** Framework variable */
128 static const AliHLTComponentDataType fgkInputDataTypes[]; //COMMENT