]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/global/physics/AliHLTCaloHistoMatchedTracks.h
-Added separeate dXY and dZ histograms
[u/mrichter/AliRoot.git] / HLT / global / physics / AliHLTCaloHistoMatchedTracks.h
1 //-*- Mode: C++ -*-
2  /**************************************************************************
3  * This file is property of and copyright by the ALICE HLT Project        * 
4  * All rights reserved.                                                   *
5  *                                                                        *
6  * Primary Authors: Svein Lindal                                          *
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
17 #ifndef ALIHLTCALOHISTOMATCHEDTRACKS_H
18 #define ALIHLTCALOHISTOMATCHEDTRACKS_H
19
20 /** 
21  * @file   AliHLTCaloHistoMatchedTracks
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
33
34 #include "Rtypes.h"
35 #include "AliHLTCaloHistoProducer.h"
36
37 class TRefArray;
38 class TObjArray;
39 class TH1F;
40 class TH2F;
41
42 /** 
43  * @class AliHLTCaloHistoMatchedTracks
44  *
45  * Class produces physics histograms for PHOS. It takes a TClonesArray
46  * of AliESDCalocluster as input and fills several histograms
47  *
48  * @ingroup alihlt_phos
49  */
50
51
52
53 class AliHLTCaloHistoMatchedTracks : public AliHLTCaloHistoProducer {
54
55  public:
56
57   /** Constructor */
58   AliHLTCaloHistoMatchedTracks(TString det);
59
60   /** Destructor */
61   virtual ~AliHLTCaloHistoMatchedTracks();
62
63   /** Loop over cluster data and fill histograms */
64   Int_t FillHistograms(Int_t nc, TRefArray * clusterArray);
65   Int_t FillHistograms(Int_t nc, vector<AliHLTCaloClusterDataStruct*> &cVec);
66
67   /** Do the actual histogram filling, regardless of clustertype */
68   template <class T>
69   Int_t FillMatchedTracks(T*);
70   
71  private:
72   
73   /** Default constructor prohibited */
74   AliHLTCaloHistoMatchedTracks();
75
76   /** Copy constructor prohibited*/
77   AliHLTCaloHistoMatchedTracks(const AliHLTCaloHistoMatchedTracks &);
78
79   /** Assignment operator */
80   AliHLTCaloHistoMatchedTracks & operator= (const AliHLTCaloHistoMatchedTracks);
81
82   /** Histograms of the track - cluster residuals */
83   TH1F *fHistDxy;                  //!transient
84   TH1F *fHistDz;                  //!transient
85   TH2F *fHistDxyDz;                           //!transient
86   
87   /** Histograms of the energy distribution of mached and unmatched clusters */
88   TH1F *fHistMatchedEnergy;                 //!transient
89   TH1F *fHistUnMatchedEnergy;               //!transient
90   
91  
92
93   ClassDef(AliHLTCaloHistoMatchedTracks, 0);
94
95 };
96  
97 #endif