]>
Commit | Line | Data |
---|---|---|
9bf87c6f | 1 | /************************************************************************** |
2 | * This file is property of and copyright by the ALICE HLT Project * | |
3 | * All rights reserved. * | |
4 | * * | |
5 | * Primary Authors: Oystein Djuvsland * | |
6 | * * | |
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 | ||
16 | #ifndef ALIHLTPHOSHISTOGRAMPRODUCER_H | |
17 | #define ALIHLTPHOSHISTOGRAMPRODUCER_H | |
18 | ||
19 | ||
20 | /** | |
21 | * Class does | |
22 | * | |
23 | * @file AliHLTPHOSHistogramProducer.h | |
24 | * @author Oystein Djuvsland | |
25 | * @date | |
26 | * @brief | |
27 | */ | |
28 | ||
29 | // see header file for class documentation | |
30 | // or | |
31 | // refer to README to build package | |
32 | // or | |
33 | // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt | |
34 | ||
35 | #include "AliHLTPHOSBase.h" | |
36 | ||
37 | class TH1D; | |
38 | class TNtuple; | |
39 | class AliHLTPHOSCaloClusterContainerStruct; | |
d8122453 | 40 | |
9bf87c6f | 41 | /** |
42 | * @class AliHLTPHOSHistogramProducer | |
43 | * | |
44 | * @ingroup alihlt_phos | |
45 | */ | |
46 | class AliHLTPHOSHistogramProducer : public AliHLTPHOSBase | |
47 | { | |
48 | ||
49 | public: | |
50 | ||
51 | AliHLTPHOSHistogramProducer(); | |
52 | ~AliHLTPHOSHistogramProducer(); | |
53 | ||
54 | Int_t Fill(AliHLTPHOSCaloClusterContainerStruct* clusterContainerPtr); | |
55 | ||
56 | Int_t InitializeObjects(); | |
57 | ||
58 | TH1D* GetClusterEnergiesHistogram() { return fClusterEnergiesHistPtr; } | |
59 | TH1D* GetMultiplicitiesHistogram() { return fMultiplicitiesHistPtr; } | |
60 | TNtuple* GetClusterNtuple() { return fClusterNtuplePtr; } | |
61 | ||
62 | void SetFillClusterEnergies(bool val) { fFillClusterEnergies = val; } | |
63 | void SetFillMultiplicities(bool val) { fFillMultiplicities = val; } | |
64 | void SetFillClusterNtuple(bool val) { fFillNtuple = val; } | |
65 | void SetMaxNtupleEntries(Int_t n) { fMaxNtupleEntries = n; } | |
66 | ||
67 | private: | |
87434909 | 68 | AliHLTPHOSHistogramProducer(const AliHLTPHOSHistogramProducer & ); |
69 | AliHLTPHOSHistogramProducer & operator = (const AliHLTPHOSHistogramProducer &); | |
9bf87c6f | 70 | TH1D* fClusterEnergiesHistPtr; |
71 | TH1D* fMultiplicitiesHistPtr; | |
72 | TNtuple* fClusterNtuplePtr; | |
73 | ||
74 | bool fFillClusterEnergies; | |
75 | bool fFillMultiplicities; | |
76 | bool fFillNtuple; | |
77 | ||
78 | Int_t fMaxNtupleEntries; | |
79 | ||
80 | }; | |
9bf87c6f | 81 | #endif |
d8122453 | 82 |