1 /**************************************************************************
2 * This file is property of and copyright by the ALICE HLT Project *
3 * All rights reserved. *
5 * Primary Authors: Oystein Djuvsland *
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 **************************************************************************/
16 #ifndef ALIHLTPHOSHISTOGRAMPRODUCER_H
17 #define ALIHLTPHOSHISTOGRAMPRODUCER_H
25 * @file AliHLTPHOSHistogramProducer.h
26 * @author Oystein Djuvsland
31 // see header file for class documentation
33 // refer to README to build package
35 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
37 //#include "AliHLTPHOSBase.h"
41 class AliHLTPHOSCaloClusterContainerStruct;
44 * @class AliHLTPHOSHistogramProducer
46 * @ingroup alihlt_phos
48 //class AliHLTPHOSHistogramProducer : public AliHLTPHOSBase
49 class AliHLTPHOSHistogramProducer
54 AliHLTPHOSHistogramProducer();
55 ~AliHLTPHOSHistogramProducer();
57 Int_t Fill(AliHLTPHOSCaloClusterContainerStruct* clusterContainerPtr);
59 Int_t InitializeObjects();
61 TH1D* GetClusterEnergiesHistogram() { return fClusterEnergiesHistPtr; }
62 TH1D* GetMultiplicitiesHistogram() { return fMultiplicitiesHistPtr; }
63 TNtuple* GetClusterNtuple() { return fClusterNtuplePtr; }
65 void SetFillClusterEnergies(bool val) { fFillClusterEnergies = val; }
66 void SetFillMultiplicities(bool val) { fFillMultiplicities = val; }
67 void SetFillClusterNtuple(bool val) { fFillNtuple = val; }
68 void SetMaxNtupleEntries(Int_t n) { fMaxNtupleEntries = n; }
71 AliHLTPHOSHistogramProducer(const AliHLTPHOSHistogramProducer & );
72 AliHLTPHOSHistogramProducer & operator = (const AliHLTPHOSHistogramProducer &);
73 TH1D* fClusterEnergiesHistPtr;
74 TH1D* fMultiplicitiesHistPtr;
75 TNtuple* fClusterNtuplePtr;
77 bool fFillClusterEnergies;
78 bool fFillMultiplicities;
81 Int_t fMaxNtupleEntries;