]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/PHOS/AliHLTPHOSHistogramProducerComponent.h
Improved Clusterizer and rawanalyzer
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSHistogramProducerComponent.h
CommitLineData
9bf87c6f 1
2/**************************************************************************
3 * This file is property of and copyright by the ALICE HLT Project *
4 * All rights reserved. *
5 * *
6 * Primary Authors: Oystein Djuvsland *
7 * *
8 * Permission to use, copy, modify and distribute this software and its *
9 * documentation strictly for non-commercial purposes is hereby granted *
10 * without fee, provided that the above copyright notice appears in all *
11 * copies and that both the copyright notice and this permission notice *
12 * appear in the supporting documentation. The authors make no claims *
13 * about the suitability of this software for any purpose. It is *
14 * provided "as is" without express or implied warranty. *
15 **************************************************************************/
16
17#ifndef ALIHLTPHOSHISTOGRAMPRODUCERCOMPONENT_H
18#define ALIHLTPHOSHISTOGRAMPRODUCERCOMPONENT_H
19
20
21
22/**
23 *
24 *
25 * @file AliHLTPHOSHistogramProducerComponent.cxx
26 * @author Oystein Djuvsland
27 * @date
28 * @brief
29*/
30
31// see below for class documentation
32// or
33// refer to README to build package
34// or
35// visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
36
37#include "AliHLTPHOSProcessor.h"
38
39class TH1D;
40class TNtuple;
41class AliHLTPHOSHistogramProducer;
42class AliHLTPHOSCaloClusterContainerStruct;
43
44/**
45 * @class AliHLTPHOSHistogramProducerComponent
46 *
47 *
48 * @ingroup alihlt_phos
49 */
50class AliHLTPHOSHistogramProducerComponent: public AliHLTPHOSProcessor
51{
52 public:
53
54 /** Constructor */
55 AliHLTPHOSHistogramProducerComponent();
56
57 /** Destructor */
58 virtual ~AliHLTPHOSHistogramProducerComponent();
59
60 /** Copy constructor */
61 AliHLTPHOSHistogramProducerComponent(const AliHLTPHOSHistogramProducerComponent &) :
62 AliHLTPHOSProcessor(),
63 fClusterEnergiesHistPtr(0),
64 fMultiplicitiesHistPtr(0),
65 fClusterNtuplePtr(0),
66 fDoFillClusterEnergies(false),
67 fDoFillMultiplicities(false),
68 fDoFillNtuple(false),
69 fHistogramProducerPtr(0)
70 {
71 //Copy constructor not implemented
72 }
73
74 /** Assignment */
75 AliHLTPHOSHistogramProducerComponent & operator = (const AliHLTPHOSHistogramProducerComponent)
76 {
77 //Assignment
78 return *this;
79 }
80
81 /** interface function, see @ref AliHLTComponent for description */
82 const char* GetComponentID();
83
84 /** interface function, see @ref AliHLTComponent for description */
85 void GetInputDataTypes(std::vector<AliHLTComponentDataType>& list);
86
87 /** interface function, see @ref AliHLTComponent for description */
88 AliHLTComponentDataType GetOutputDataType();
89
90 /** interface function, see @ref AliHLTComponent for description */
91 void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
92
93 /** interface function, see @ref AliHLTComponent for description */
94
95 using AliHLTPHOSProcessor::DoEvent;
96
97 int DoEvent(const AliHLTComponentEventData& evtData,
98 AliHLTComponentTriggerData& trigData);
99
100 // Int_t DoEvent( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData);
101 /** interface function, see @ref AliHLTComponent for description */
102 AliHLTComponent* Spawn();
103
104protected:
105
106 /** interface function, see @ref AliHLTComponent for description */
107 int DoInit(int argc, const char** argv);
108
109 /** interface function, see @ref AliHLTComponent for description */
110 int Deinit();
111
112 private:
113
114 TH1D* fClusterEnergiesHistPtr;
115 TH1D* fMultiplicitiesHistPtr;
116 TNtuple* fClusterNtuplePtr;
117
118 bool fDoFillClusterEnergies;
119 bool fDoFillMultiplicities;
120 bool fDoFillNtuple;
121
122 AliHLTPHOSHistogramProducer* fHistogramProducerPtr;
123
124 /** interface function, see @ref AliHLTComponent for description */
125 static const AliHLTComponentDataType fgkInputDataTypes[]; //COMMENT
126};
127
128#endif