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
23 * @file AliHLTPHOSHistogramProducer.h
24 * @author Oystein Djuvsland
29 // see header file for class documentation
31 // refer to README to build package
33 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
35 #include "AliHLTPHOSBase.h"
39 class AliHLTPHOSCaloClusterContainerStruct;
42 * @class AliHLTPHOSHistogramProducer
44 * @ingroup alihlt_phos
46 class AliHLTPHOSHistogramProducer : public AliHLTPHOSBase
51 AliHLTPHOSHistogramProducer();
52 ~AliHLTPHOSHistogramProducer();
54 Int_t Fill(AliHLTPHOSCaloClusterContainerStruct* clusterContainerPtr);
56 Int_t InitializeObjects();
58 TH1D* GetClusterEnergiesHistogram() { return fClusterEnergiesHistPtr; }
59 TH1D* GetMultiplicitiesHistogram() { return fMultiplicitiesHistPtr; }
60 TNtuple* GetClusterNtuple() { return fClusterNtuplePtr; }
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; }
69 TH1D* fClusterEnergiesHistPtr;
70 TH1D* fMultiplicitiesHistPtr;
71 TNtuple* fClusterNtuplePtr;
73 bool fFillClusterEnergies;
74 bool fFillMultiplicities;
77 Int_t fMaxNtupleEntries;