]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/global/physics/AliHLTCaloHistoMatchedTracks.h
-Created new base class for the Calo physics histogram producers.
[u/mrichter/AliRoot.git] / HLT / global / physics / AliHLTCaloHistoMatchedTracks.h
CommitLineData
766aafea 1//-*- Mode: C++ -*-
2 /**************************************************************************
844d7fdd 3 * This file is property of and copyright by the ALICE HLT Project *
4 * All rights reserved. *
5 * *
766aafea 6 * Primary Authors: Svein Lindal *
844d7fdd 7 * *
8 * Permission to use, copy, modify and distribute this software and its *
9 * documentation strictly for non-commercial purposes is hereby granted *
10 * without fee, provided that the above copyright notice appears in all *
11 * copies and that both the copyright notice and this permission notice *
12 * appear in the supporting documentation. The authors make no claims *
13 * about the suitability of this software for any purpose. It is *
14 * provided "as is" without express or implied warranty. *
15 **************************************************************************/
16
766aafea 17#ifndef ALIHLTCALOHISTOMATCHEDTRACKS_H
18#define ALIHLTCALOHISTOMATCHEDTRACKS_H
844d7fdd 19
20/**
766aafea 21 * @file AliHLTCaloHistoMatchedTracks
844d7fdd 22 * @author Albin Gaignette and Svein Lindal slindal@fys.uio.no
23 * @date
24 * @brief Produces Invariant mass histograms of PHOS clusters
25 */
26
27// see header file for class documentation
28// or
29// refer to README to build package
30// or
31// visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
32
844d7fdd 33
34#include "Rtypes.h"
ce063697 35#include "AliHLTCaloHistoProducer.h"
844d7fdd 36
766aafea 37class TRefArray;
844d7fdd 38class TObjArray;
39class TH1F;
844d7fdd 40
41
42/**
766aafea 43 * @class AliHLTCaloHistoMatchedTracks
844d7fdd 44 *
45 * Class produces physics histograms for PHOS. It takes a TClonesArray
46 * of AliESDCalocluster as input and fills several histograms
47 *
844d7fdd 48 * @ingroup alihlt_phos
49 */
50
51
52
766aafea 53//class AliHLTCaloHistoMatchedTracks : public AliHLTPHOSBase
ce063697 54class AliHLTCaloHistoMatchedTracks : public AliHLTCaloHistoProducer {
766aafea 55
844d7fdd 56 public:
57
58 /** Constructor */
766aafea 59 AliHLTCaloHistoMatchedTracks(TString det);
844d7fdd 60
61 /** Destructor */
766aafea 62 virtual ~AliHLTCaloHistoMatchedTracks();
844d7fdd 63
766aafea 64 /** Loop over cluster data and fill histograms */
ce063697 65 Int_t FillHistograms(Int_t nc, TRefArray * clusterArray);
66 Int_t FillHistograms(Int_t nc, vector<AliHLTCaloClusterDataStruct*> &cVec);
844d7fdd 67
ce063697 68 /** Do the actual histogram filling, regardless of clustertype */
69 template <class T>
70 Int_t FillMatchedTracks(T*);
844d7fdd 71
72 private:
766aafea 73
74 /** Default constructor prohibited */
75 AliHLTCaloHistoMatchedTracks();
76
77 /** Copy constructor prohibited*/
78 AliHLTCaloHistoMatchedTracks(const AliHLTCaloHistoMatchedTracks &);
79
80 /** Assignment operator */
81 AliHLTCaloHistoMatchedTracks & operator= (const AliHLTCaloHistoMatchedTracks);
844d7fdd 82
844d7fdd 83 /** Histogram of the 2 cluster invariant mass */
766aafea 84 TH1F *fHistMatchDistance; //!transient
844d7fdd 85
766aafea 86 /** Histograms of the energy distribution of mached and unmatched clusters */
844d7fdd 87 TH1F *fHistMatchedEnergy; //!transient
766aafea 88 TH1F *fHistUnMatchedEnergy; //!transient
844d7fdd 89
ce063697 90 ClassDef(AliHLTCaloHistoMatchedTracks, 0);
844d7fdd 91
92};
93
94#endif