Line data Source code
1 : // -*- Mode: C++ -*-
2 : // $Id$
3 :
4 : #ifndef ALIHLTFXSWRITERCOMPONENT_H
5 : #define ALIHLTFXSWRITERCOMPONENT_H
6 : //* This file is property of and copyright by the ALICE *
7 : //* ALICE Experiment at CERN, All rights reserved. *
8 : //* See cxx source for full Copyright notice *
9 :
10 : #include "AliHLTCalibrationProcessor.h"
11 : #include "TString.h"
12 :
13 : class AliHLTFXSWriterComponent : public AliHLTCalibrationProcessor
14 : {
15 : public:
16 : AliHLTFXSWriterComponent();
17 : virtual ~AliHLTFXSWriterComponent();
18 :
19 630 : virtual const char* GetComponentID() {return "FXSWriter";};
20 : virtual void GetInputDataTypes(AliHLTComponentDataTypeList& list);
21 : virtual AliHLTComponentDataType GetOutputDataType();
22 : virtual void GetOutputDataSize(unsigned long&, double&);
23 : virtual void GetOCDBObjectDescription( TMap* const targetArray);
24 :
25 0 : virtual AliHLTComponent* Spawn() {return new AliHLTFXSWriterComponent;}
26 :
27 : protected:
28 : virtual int InitCalibration();
29 : int ScanArgument( int argc, const char** argv ) {
30 0 : int result=ScanConfigurationArgument(argc, argv); return result>0?result-1:result;
31 : }
32 : virtual int DeinitCalibration();
33 : virtual int DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks );
34 : virtual int ShipDataToFXS( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData);
35 : virtual int ScanConfigurationArgument(int argc, const char** argv);
36 :
37 : private:
38 : AliHLTFXSWriterComponent(const AliHLTFXSWriterComponent&);
39 : AliHLTFXSWriterComponent& operator=(const AliHLTFXSWriterComponent&);
40 :
41 : TString fFXSName;
42 : TString fFXSDetector;
43 : AliHLTComponentDataType fDataType;
44 : bool fRootObject; //Deserialize the input and store as root file
45 :
46 8 : ClassDef(AliHLTFXSWriterComponent, 0)
47 : };
48 : #endif
|