1 /**************************************************************************
2 * This file is property of and copyright by the ALICE HLT Project *
3 * All rights reserved. *
4 * INFN, Laboratori Nazionali di Frascati *
5 * Primary Authors: Federico Ronchetti *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15 #ifndef ALIHLTEMCALRAWHISTOMAKERCOMPONENT_H
16 #define ALIHLTEMCALRAWHISTOMAKERCOMPONENT_H
18 /** @file AliHLTEMCALRawHistoMakerComponent.h
19 @author Federico Ronchetti
21 @brief A histo maker component for EMCAL HLT
26 #include "AliHLTCaloProcessor.h"
27 #include "AliHLTCaloClusterDataStruct.h"
29 #include "AliHLTCaloConstantsHandler.h"
30 #include "AliHLTEMCALDefinitions.h"
31 #include "AliHLTDataTypes.h"
35 class AliHLTEMCALRawHistoMaker;
36 class AliHLTCaloClusterHeaderStruct;
40 class AliHLTEMCALRawHistoMakerComponent : public AliHLTCaloProcessor
45 AliHLTEMCALRawHistoMakerComponent();
48 virtual ~AliHLTEMCALRawHistoMakerComponent();
51 /** interface function, see @ref AliHLTComponent for description */
52 const char* GetComponentID();
54 /** interface function, see @ref AliHLTComponent for description */
55 void GetInputDataTypes(std::vector<AliHLTComponentDataType>& list);
57 /** interface function, see @ref AliHLTComponent for description */
58 AliHLTComponentDataType GetOutputDataType();
60 /** interface function, see @ref AliHLTComponent for description */
61 void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
63 /** interface function, see @ref AliHLTComponent for description */
64 int DoEvent(const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
65 AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size,
66 std::vector<AliHLTComponentBlockData>& outputBlocks);
68 /** interface function, see @ref AliHLTComponent for description */
69 AliHLTComponent* Spawn();
73 /** interface function, see @ref AliHLTComponent for description */
75 int DoInit(int argc, const char** argv);
80 using AliHLTCaloProcessor::DoEvent;
82 /** interface function, see @ref AliHLTComponent for description */
83 virtual int Deinit(); ////////// PTH WARNING
88 TString fRootFileName;
93 /** Pointer to the histo maker itself */
94 AliHLTEMCALRawHistoMaker *fRawHistoMakerPtr; //! transient
97 AliHLTEMCALRawHistoMakerComponent(const AliHLTEMCALRawHistoMakerComponent & );
98 AliHLTEMCALRawHistoMakerComponent & operator = (const AliHLTEMCALRawHistoMakerComponent &);