1 #ifndef ALIHLTTRDESDWRITERCOMPONENT_H
2 #define ALIHLTTRDESDWRITERCOMPONENT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 /** @file AliHLTTRDEsdWriterComponent.h
7 @author Mateusz Ploskon
9 @brief Writer component to store tracks of the HLT TRD
12 #include "AliHLTRootFileWriterComponent.h"
14 // forward declarations
19 * @class AliHLTTRDEsdWriterComponent
20 * @see AliHLTFileWriter and AliHLTRootFileWriterComponent for more parameters
22 class AliHLTTRDEsdWriterComponent : public AliHLTRootFileWriterComponent
25 /** standard constructor */
26 AliHLTTRDEsdWriterComponent();
28 ~AliHLTTRDEsdWriterComponent();
31 * The id of the component.
32 * @return component id (string)
34 const char* GetComponentID() {return "TRDEsdWriter";};
36 void GetInputDataTypes( vector<AliHLTComponent_DataType>& list);
40 * @return new class instance
42 AliHLTComponent* Spawn() {return new AliHLTTRDEsdWriterComponent;}
46 * Data processing method for the component.
47 * The function can be overloaded by specific ROOT file writer
49 * @param evtData event data structure
50 * @param blocks input data block descriptors
51 * @param trigData trigger data structure
53 virtual int DumpEvent( const AliHLTComponentEventData& evtData,
54 const AliHLTComponentBlockData* blocks,
55 AliHLTComponentTriggerData& trigData );
58 * Scan one argument and adjacent parameters.
59 * @param argc size of the argument array
60 * @param argv agument array for component initialization
61 * @return number of processed members of the argv <br>
62 * -EINVAL unknown argument <br>
63 * -EPROTO parameter for argument missing <br>
65 int ScanArgument(int argc, const char** argv);
68 /** not a valid copy constructor, defined according to effective C++ style */
69 AliHLTTRDEsdWriterComponent(const AliHLTTRDEsdWriterComponent&);
70 /** not a valid assignment op, but defined according to effective C++ style */
71 AliHLTTRDEsdWriterComponent& operator=(const AliHLTTRDEsdWriterComponent&);
75 * The DoInit function is not available for this child class. InitWriter is the
76 * corresponding function for classes derived from AliHLTFileWriter.
82 * The DoDeinit function is not available for this child class. CloseWriter is the
83 * corresponding function for classes derived from AliHLTFileWriter.
88 TTree* fTree; //! transient value
91 AliESDEvent* fESD; //! transient value
93 ClassDef(AliHLTTRDEsdWriterComponent, 1)