5 /**************************************************************************
6 * This file is property of and copyright by the ALICE HLT Project *
7 * All rights reserved. *
9 * Primary Authors: Oystein Djuvsland *
11 * Permission to use, copy, modify and distribute this software and its *
12 * documentation strictly for non-commercial purposes is hereby granted *
13 * without fee, provided that the above copyright notice appears in all *
14 * copies and that both the copyright notice and this permission notice *
15 * appear in the supporting documentation. The authors make no claims *
16 * about the suitability of this software for any purpose. It is *
17 * provided "as is" without express or implied warranty. *
18 **************************************************************************/
20 #ifndef ALIHLTPHOSCLUSTERIZERCOMPONENT_H
21 #define ALIHLTPHOSCLUSTERIZERCOMPONENT_H
26 * Clusterizer component for PHOS HLT
28 * @file AliHLTPHOSClusterizerComponent.h
29 * @author Oystein Djuvsland
31 * @brief A clusterizer component for PHOS HLT
34 // see below for class documentation
36 // refer to README to build package
38 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
40 #include "AliHLTPHOSProcessor.h"
42 class AliHLTPHOSClusterizer;
43 class AliHLTPHOSRcuCellEnergyDataStruct;
44 class AliHLTPHOSRecPointDataStruct;
45 class AliHLTPHOSRecPointContainerStruct;
46 class AliHLTPHOSRecPointListDataStruct;
47 class AliHLTPHOSDigitContainerDataStruct;
50 * @class AliHLTPHOSClusterizerComponent
52 * Class for running clusterization for PHOS in HLT. It takes digits as input and
53 * gives reconstruction points as output.
55 * The component has the following component arguments:
56 * -clusterthreshold The energy threshold for starting a new rec point
57 * -energythreshold The energy threshold for including a digit in a
59 * @ingroup alihlt_phos
61 class AliHLTPHOSClusterizerComponent: public AliHLTPHOSProcessor
66 AliHLTPHOSClusterizerComponent();
69 virtual ~AliHLTPHOSClusterizerComponent();
71 /** Copy constructor */
72 AliHLTPHOSClusterizerComponent(const AliHLTPHOSClusterizerComponent &) :
73 AliHLTPHOSProcessor(),
76 fRecPointStructArrayPtr(0),
78 fModuleClusterizationMode(0),
81 //Copy constructor not implemented
85 AliHLTPHOSClusterizerComponent & operator = (const AliHLTPHOSClusterizerComponent)
91 /** interface function, see @ref AliHLTComponent for description */
92 const char* GetComponentID();
94 /** interface function, see @ref AliHLTComponent for description */
95 void GetInputDataTypes(std::vector<AliHLTComponentDataType>& list);
97 /** interface function, see @ref AliHLTComponent for description */
98 AliHLTComponentDataType GetOutputDataType();
100 /** interface function, see @ref AliHLTComponent for description */
101 void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
103 /** interface function, see @ref AliHLTComponent for description */
105 using AliHLTPHOSProcessor::DoEvent;
106 int DoEvent(const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
107 AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size,
108 std::vector<AliHLTComponentBlockData>& outputBlocks);
109 // Int_t DoEvent( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData);
110 /** interface function, see @ref AliHLTComponent for description */
111 AliHLTComponent* Spawn();
115 /** interface function, see @ref AliHLTComponent for description */
116 int DoInit(int argc, const char** argv);
118 /** interface function, see @ref AliHLTComponent for description */
123 /** All digits in the event */
124 AliHLTPHOSDigitContainerDataStruct *fAllDigitsPtr; //! transient
126 /** Pointer to the clusterizer it self */
127 AliHLTPHOSClusterizer* fClusterizerPtr; //! transient
129 /** Pointer to rec points used in clusterization */
130 AliHLTPHOSRecPointDataStruct* fRecPointStructArrayPtr; //! transient
132 /** Number of digits in event */
135 /** If the clusterizer is doing clusterization of the whole module */
136 Bool_t fModuleClusterizationMode; //COMMENT
138 /** If one should consider crazyness or not */
139 Bool_t fNoCrazyness; //COMMENT
141 /** interface function, see @ref AliHLTComponent for description */
142 static const AliHLTComponentDataType fgkInputDataTypes[]; //COMMENT