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 ALIHLTPHOSHISTOGRAMPRODUCERCOMPONENT_H
21 #define ALIHLTPHOSHISTOGRAMPRODUCERCOMPONENT_H
28 * @file AliHLTPHOSHistogramProducerComponent.cxx
29 * @author Oystein Djuvsland
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 AliHLTPHOSPhysicsHistogramProducer;
44 class AliHLTPHOSHistoProdCellEnergy;
46 class AliHLTPHOSHistoProdClusterEnergy;
48 class AliHLTPHOSHistoProdInvMass;
50 class AliHLTPHOSHistoProdMatchedTracks;
53 * @class AliHLTPHOSHistogramProducerComponent
56 * @ingroup alihlt_phos
58 class AliHLTPHOSHistogramProducerComponent: public AliHLTPHOSProcessor
63 AliHLTPHOSHistogramProducerComponent();
66 virtual ~AliHLTPHOSHistogramProducerComponent();
68 /** Copy constructor */
69 AliHLTPHOSHistogramProducerComponent(const AliHLTPHOSHistogramProducerComponent & ) :
70 AliHLTPHOSProcessor(),
71 fPhysicsHistogramProducerPtr(0),
77 fCellEnergyHistProducer(0),
78 fClusterEnergyHistProducer(0),
79 fInvariantMassHistProducer(0),
80 fMatchedTracksHistProducer(0)
83 //Copy constructor not implemented
87 AliHLTPHOSHistogramProducerComponent & operator = (const AliHLTPHOSHistogramProducerComponent)
93 /** interface function, see @ref AliHLTComponent for description */
94 const char* GetComponentID();
96 /** interface function, see @ref AliHLTComponent for description */
97 void GetInputDataTypes(std::vector<AliHLTComponentDataType>& list);
99 /** interface function, see @ref AliHLTComponent for description */
100 AliHLTComponentDataType GetOutputDataType();
102 /** interface function, see @ref AliHLTComponent for description */
103 void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
105 /** interface function, see @ref AliHLTComponent for description */
107 using AliHLTPHOSProcessor::DoEvent;
109 int DoEvent(const AliHLTComponentEventData& evtData,
110 AliHLTComponentTriggerData& trigData);
112 // Int_t DoEvent( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData);
113 /** interface function, see @ref AliHLTComponent for description */
114 AliHLTComponent* Spawn();
118 /** interface function, see @ref AliHLTComponent for description */
119 int DoInit(int argc, const char** argv);
121 /** interface function, see @ref AliHLTComponent for description */
126 AliHLTPHOSPhysicsHistogramProducer* fPhysicsHistogramProducerPtr;
130 Bool_t fCellEnergy; // make the cell energy histograms?
131 Bool_t fClusterEnergy; // make the cluster energy histograms?
132 Bool_t fInvariantMass; // make the invariant mass histograms?
133 Bool_t fMatchedTracks; // make the matched tracks histograms?
135 AliHLTPHOSHistoProdCellEnergy *fCellEnergyHistProducer; // cell energy histogram producer
137 AliHLTPHOSHistoProdClusterEnergy *fClusterEnergyHistProducer; // cluster energy histogram producer
139 AliHLTPHOSHistoProdInvMass *fInvariantMassHistProducer; // invariant mass histogram producer
141 AliHLTPHOSHistoProdMatchedTracks *fMatchedTracksHistProducer; // matched tracks histogram producer