1 /**************************************************************************
2 * This file is property of and copyright by the ALICE HLT Project *
3 * All rights reserved. *
5 * Primary Authors: Albin Gaignette *
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 ALIHLTPHOSPHYSICSHISTOGRAMPRODUCER_H
17 #define ALIHLTPHOSPHYSICSHISTOGRAMPRODUCER_H
20 * @file AliHLTPHOSPhysicsHistogramProducer
21 * @author Albin Gaignette
23 * @brief Histogram producer for PHOS HLT
26 // see header file for class documentation
28 // refer to README to build package
30 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
32 //#include "AliHLTPHOSBase.h"
35 #include "TClonesArray.h"
36 #include "AliHLTPHOSConstant.h"
38 using namespace PhosHLTConst;
46 * @class AliHLTPHOSPhysicsHistogramProducer
48 * Class produces physics histograms for PHOS. It takes a TClonesArray
49 * of AliESDCalocluster as input and fills several histograms
52 * - Total number of clusters per event
53 * - Energy distribution of clusters
54 * - Total energy in event
55 * - Invariant mass of two clusters
56 * - Number of cells in clusters
57 * - Fraction of cells with energy deposit
60 * - Number of cells in cluster vs cluster energy
61 * - Number of clusters vs total energy
63 * @ingroup alihlt_phos
68 //class AliHLTPHOSPhysicsHistogramProducer : public AliHLTPHOSBase
69 class AliHLTPHOSPhysicsHistogramProducer
74 AliHLTPHOSPhysicsHistogramProducer();
77 virtual ~AliHLTPHOSPhysicsHistogramProducer();
79 /** Copy constructor */
80 AliHLTPHOSPhysicsHistogramProducer(const AliHLTPHOSPhysicsHistogramProducer &) :
85 fHistTwoClusterInvMass(0),
87 fHistNcellsPercentage(0),
90 fHistNcellsSumCells(0),
93 // Copy constructor not implemented
96 /** Assignment operator */
97 AliHLTPHOSPhysicsHistogramProducer & operator= (const AliHLTPHOSPhysicsHistogramProducer)
103 /** Analyse the clusters in the event */
104 Int_t AnalyseClusters(TClonesArray* clusters);
106 /** Get a pointer to the TObjArray of histograms */
107 TObjArray *GetHistograms();
111 /** Histogram of number of clusters */
112 TH1F *fHistNcls; //!transient
114 /** Histogram of the cluster energies */
115 TH1F *fHistEnergy; //!transient
117 /** Histogram of the total energy in PHOS */
118 TH1F *fHistTotEnergy; //!transient
120 /** Histogram of the 2 cluster invariant mass */
121 TH1F *fHistTwoClusterInvMass; //!transient
123 /** Histogram of the number of cells with energy */
124 TH1F *fHistNcells; //!transient
126 /** Histogram of the fraction of cells with energy deposit */
127 TH1F *fHistNcellsPercentage; //!transient
129 /** Histogram of number of cells in cluster vs cluster energy */
130 TH2F *fHistCellsEnergy; //!transient
132 /** Histogram of number of clusters vs total energy */
133 TH2F *fHistNclusterTotE; //!transient
135 /** Histogram of number of cells in the cluster vs total number of cells in PHOS */
136 TH2F *fHistNcellsSumCells; //!transient
138 /** Pointer to the array of histograms */
139 TObjArray *fHistArrayPtr; //!transient
141 ClassDef(AliHLTPHOSPhysicsHistogramProducer, 0);