]>
Commit | Line | Data |
---|---|---|
f4d27262 | 1 | #ifndef ALIHLTPHOSFILEWRITERCOMPONENT_H |
2 | #define ALIHLTPHOSFILEWRITERCOMPONENT_H | |
acd526ae | 3 | |
f4d27262 | 4 | #include "AliHLTDataSink.h" |
5 | #include "AliHLTPHOSFileWriterComponent.h" | |
6 | #include "AliRawReaderMemory.h" | |
7 | #include "AliCaloRawStream.h" | |
8 | #include "AliHLTPHOSDefinitions.h" | |
9 | #include <string> | |
10 | #include "AliHLTPHOSCommonDefs.h" | |
11 | #include "AliHLTPHOSFileWriter.h" | |
12 | #include "AliHLTPHOSCellEnergiesFileWriter.h" | |
13 | #include "AliHLTPHOSDDLPackedFileWriter.h" | |
14 | #include "Rtypes.h" | |
6a8ab2ab | 15 | #include "AliHLTFileWriter.h" |
16 | ||
f4d27262 | 17 | using std::string; |
acd526ae | 18 | |
05be0766 | 19 | |
f4d27262 | 20 | class AliHLTPHOSRcuCellEnergyDataStruct; |
21 | ||
05be0766 | 22 | |
6a8ab2ab | 23 | class AliHLTPHOSFileWriterComponent:public AliHLTFileWriter |
acd526ae | 24 | { |
25 | public: | |
26 | AliHLTPHOSFileWriterComponent(); | |
f4d27262 | 27 | virtual ~AliHLTPHOSFileWriterComponent(); |
28 | int AddDataType(string dataType); | |
f4d27262 | 29 | virtual int Deinit(); |
30 | virtual int DoDeinit(); | |
f4d27262 | 31 | virtual const char* GetComponentID(); |
32 | virtual void GetInputDataTypes(std::vector<AliHLTComponentDataType, std::allocator<AliHLTComponentDataType> >&); | |
33 | virtual AliHLTComponentDataType GetOutputDataType(); | |
34 | virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier); | |
35 | virtual AliHLTComponent* Spawn(); | |
acd526ae | 36 | |
f4d27262 | 37 | protected: |
acd526ae | 38 | |
f4d27262 | 39 | private: |
6a8ab2ab | 40 | Bool_t IsRegisteredDataType(const AliHLTComponentDataType&); |
f4d27262 | 41 | AliHLTPHOSFileWriterComponent(const AliHLTPHOSFileWriterComponent & ); |
42 | AliHLTPHOSFileWriterComponent & operator = (const AliHLTPHOSFileWriterComponent) | |
43 | { | |
44 | return *this; | |
45 | }; | |
46 | AliHLTPHOSCellEnergiesFileWriter *fCellEnergiesFileWriterPtr; | |
47 | AliHLTPHOSDDLPackedFileWriter *fDDLPackedFileWriterPtr ; | |
48 | string fDirectory; /**<target directory for files*/ | |
49 | string fFilename; /**<the basename of the output file*/ | |
50 | AliHLTComponentDataType fDataTypesToFile[N_DATATYPES]; | |
f4d27262 | 51 | int fEventCount; |
52 | static const AliHLTComponentDataType fInputDataTypes[]; | |
acd526ae | 53 | }; |
acd526ae | 54 | #endif |