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"
40 * @class AliHLTPHOSPhysicsHistogramProducer
42 * Class produces physics histograms for PHOS. It takes a TClonesArray
43 * of AliESDCalocluster as input and fills several histograms
46 * - Total number of clusters per event
47 * - Energy distribution of clusters
48 * - Total energy in event
49 * - Invariant mass of two clusters
50 * - Number of cells in clusters
51 * - Fraction of cells with energy deposit
54 * - Number of cells in cluster vs cluster energy
55 * - Number of clusters vs total energy
57 * @ingroup alihlt_phos
62 class AliHLTPHOSPhysicsHistogramProducer : public AliHLTPHOSBase
67 AliHLTPHOSPhysicsHistogramProducer();
70 virtual ~AliHLTPHOSPhysicsHistogramProducer();
72 /** Copy constructor */
73 AliHLTPHOSPhysicsHistogramProducer(const AliHLTPHOSPhysicsHistogramProducer &) :
78 fHistTwoClusterInvMass(0),
80 fHistNcellsPercentage(0),
83 fHistNcellsSumCells(0),
86 // Copy constructor not implemented
89 /** Assignment operator */
90 AliHLTPHOSPhysicsHistogramProducer & operator= (const AliHLTPHOSPhysicsHistogramProducer)
96 /** Analyse the clusters in the event */
97 Int_t AnalyseClusters(TClonesArray* clusters);
99 /** Get a pointer to the TObjArray of histograms */
100 TObjArray *GetHistograms();
104 /** Histogram of number of clusters */
105 TH1F *fHistNcls; //!transient
107 /** Histogram of the cluster energies */
108 TH1F *fHistEnergy; //!transient
110 /** Histogram of the total energy in PHOS */
111 TH1F *fHistTotEnergy; //!transient
113 /** Histogram of the 2 cluster invariant mass */
114 TH1F *fHistTwoClusterInvMass; //!transient
116 /** Histogram of the number of cells with energy */
117 TH1F *fHistNcells; //!transient
119 /** Histogram of the fraction of cells with energy deposit */
120 TH1F *fHistNcellsPercentage; //!transient
122 /** Histogram of number of cells in cluster vs cluster energy */
123 TH2F *fHistCellsEnergy; //!transient
125 /** Histogram of number of clusters vs total energy */
126 TH2F *fHistNclusterTotE; //!transient
128 /** Histogram of number of cells in the cluster vs total number of cells in PHOS */
129 TH2F *fHistNcellsSumCells; //!transient
131 /** Pointer to the array of histograms */
132 TObjArray *fHistArrayPtr; //!transient
134 ClassDef(AliHLTPHOSPhysicsHistogramProducer, 0);