]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSHistogramProducer.h
Updating CMake files
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSHistogramProducer.h
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;
40
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:
68
69   TH1D* fClusterEnergiesHistPtr;
70   TH1D* fMultiplicitiesHistPtr;
71   TNtuple* fClusterNtuplePtr;
72
73   bool fFillClusterEnergies;
74   bool fFillMultiplicities;
75   bool fFillNtuple;
76   
77   Int_t fMaxNtupleEntries;
78
79 };
80 #endif
81