]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/EMCAL/AliHLTEMCALClusterMonitor.h
Add a task to a train
[u/mrichter/AliRoot.git] / HLT / EMCAL / AliHLTEMCALClusterMonitor.h
1 /**************************************************************************
2  * This file is property of and copyright by the ALICE HLT Project        *
3  * All rights reserved.                                                   *
4  *                                                                        *
5  * Primary Authors: Francesco Blanco                                      *
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 #ifndef ALIHLTEMCALCLUSTERMONITOR_H
16 #define ALIHLTEMCALCLUSTERMONITOR_H
17
18 /**
19  * Class makes histograms from information from raw data
20  *
21  * @file   AliHLTEMCALClusterMonitor.h
22  * @author Francesco Blanco
23  * @date
24  * @brief  Histo maker for EMCAL HLT
25  */
26
27
28 #include "AliHLTCaloClusterDataStruct.h"
29 #include "AliHLTCaloClusterReader.h"
30
31
32 #include "TH1F.h"
33 #include "TH2F.h"
34 #include "TH1I.h"
35 #include "TObjArray.h"
36 #include "TString.h"
37
38 class AliHLTEMCALClusterMonitor : public TObject
39 {
40
41 public:
42   /** Constructor */
43   AliHLTEMCALClusterMonitor();
44
45   /** Destructor */
46   virtual ~AliHLTEMCALClusterMonitor();
47
48   Int_t MakeHisto(AliHLTCaloClusterHeaderStruct *caloClusterHeaderPtr);
49
50   TObjArray * GetHistograms();
51
52 private:
53
54   AliHLTCaloClusterReader* fClusterReaderPtr; // !transient The reader
55
56   TObjArray *hList;
57         TH1F *hClusterEne;
58         TH2F *hClusterEneVsTime;
59         TH1I *hClusterCells;
60         TH2F *hClusterEneVsCells;
61         TH2F *hClusterEtaVsPhi;
62
63   AliHLTEMCALClusterMonitor(const AliHLTEMCALClusterMonitor &);
64   AliHLTEMCALClusterMonitor & operator = (const AliHLTEMCALClusterMonitor &);
65   
66   ClassDef(AliHLTEMCALClusterMonitor, 0); 
67
68 };
69
70
71 #endif
72