]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/PHOS/AliHLTPHOSHistoProdCellEnergy.h
Adding couple of histograms classes
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSHistoProdCellEnergy.h
CommitLineData
844d7fdd 1/**************************************************************************
2 * This file is property of and copyright by the ALICE HLT Project *
3 * All rights reserved. *
4 * *
5 * Primary Authors: Albin Gaignette *
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
87b87810 16#ifndef ALIHLTPHOSHISTOPRODCELLENERGY
17#define ALIHLTPHOSHISTOPRODCELLENERGY
844d7fdd 18
19/**
87b87810 20 * @file AliHLTPHOSHistoProdCellEnergy
844d7fdd 21 * @author Albin Gaignette and Svein Lindal slindal@fys.uio.no
22 * @date
23 * @brief Produces Invariant mass histograms of PHOS clusters
24 */
25
26// see header file for class documentation
27// or
28// refer to README to build package
29// or
30// visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
31
32//#include "AliHLTPHOSBase.h"
33
34#include "Rtypes.h"
844d7fdd 35#include "AliHLTPHOSConstants.h"
36
844d7fdd 37class TObjArray;
38class TH1F;
87b87810 39class TH2F;
844d7fdd 40class AliHLTCaloClusterReader;
41struct AliHLTCaloClusterHeaderStruct;
42
43
76802e0f 44using namespace PhosHLTConst;
45
46
844d7fdd 47/**
87b87810 48 * @class AliHLTPHOSHistoProdCellEnergy
844d7fdd 49 *
50 * Class produces physics histograms for PHOS. It takes a TClonesArray
51 * of AliESDCalocluster as input and fills several histograms
52 *
53 * Histograms (1D):
76802e0f 54 * * - Invariant mass of two clusters
844d7fdd 55 *
844d7fdd 56 * @ingroup alihlt_phos
57 */
58
87b87810 59class AliHLTPHOSHistoProdCellEnergy
844d7fdd 60{
61 public:
76802e0f 62
844d7fdd 63 /** Constructor */
87b87810 64 AliHLTPHOSHistoProdCellEnergy();
844d7fdd 65
66 /** Destructor */
87b87810 67 virtual ~AliHLTPHOSHistoProdCellEnergy();
844d7fdd 68
69 /** Copy constructor */
87b87810 70 AliHLTPHOSHistoProdCellEnergy(const AliHLTPHOSHistoProdCellEnergy &) :
844d7fdd 71 fClusterReader(NULL),
87b87810 72 fHistCellEnergy(NULL),
73 fHistCellEnergyVsNCells(NULL),
76802e0f 74 fHistArrayPtr(NULL)
844d7fdd 75 {
76 // Copy constructor not implemented
77 }
78
79 /** Assignment operator */
87b87810 80 AliHLTPHOSHistoProdCellEnergy & operator= (const AliHLTPHOSHistoProdCellEnergy)
844d7fdd 81 {
82 // assignment
83 return *this;
84 }
85
86 /** Analyse the clusters in the event */
87 int DoEvent(AliHLTCaloClusterHeaderStruct* cHeader);
88
89 /** Get a pointer to the TObjArray of histograms */
90 TObjArray *GetHistograms();
91
92
93
94 private:
95
96 /** Cluster reader class */
97 AliHLTCaloClusterReader * fClusterReader;
98
99 /** Histogram of the 2 cluster invariant mass */
87b87810 100 TH1F *fHistCellEnergy; //!transient
844d7fdd 101
87b87810 102 /** 2D histogram of cluster energy vs the number of cells in the cluster */
103 TH2F *fHistCellEnergyVsNCells;
104
844d7fdd 105 /** Pointer to the array of histograms */
106 TObjArray *fHistArrayPtr; //!transient
107
87b87810 108 ClassDef(AliHLTPHOSHistoProdCellEnergy, 0);
844d7fdd 109
110};
111
112#endif