]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/trigger/AliHLTFastJetMonitor.cxx
removing the CTPData from the HLTGlobalTrigger decision because of bug #88431 until...
[u/mrichter/AliRoot.git] / HLT / trigger / AliHLTFastJetMonitor.cxx
CommitLineData
171dcedf 1#include "AliHLTFastJetMonitor.h"
2#include "AliHLTScalars.h"
3#include "TString.h"
4#include "TMath.h"
5
6
7ClassImp(AliHLTFastJetMonitor);
8
9AliHLTFastJetMonitor::AliHLTFastJetMonitor():
10 hList(NULL),
11 hTracksPt(NULL),
12 hClusterEn(NULL),
13 hClusterEta(NULL),
14 hClusterPhi(NULL),
15 hJetsPt(NULL)
16{
17
18 // book histograms
19 hList = new TObjArray;
20
21 hTracksPt = new TH1F("hTracksPt", "Tracks pT (GeV/c)", 300, 0, 300);
22 hList->Add(hTracksPt);
23
24 hClusterEn = new TH1F("hClusterEn", "Cluster Energy (GeV)", 300, 0, 300);
25 hList->Add(hClusterEn);
26
27 hClusterEta = new TH1F("hClusterEta", "Cluster position in #eta", 300, -2*TMath::Pi(),2*TMath::Pi());
28 hList->Add(hClusterEta);
29
30 hClusterPhi = new TH1F("hClusterPhi", "Cluster position in #phi", 300, -TMath::Pi(),TMath::Pi());
31 hList->Add(hClusterPhi);
32}
33//___________________________________________________________________________________________________________________________________________________
34
35AliHLTFastJetMonitor::~AliHLTFastJetMonitor()
36{
37
38 // default destructor
39
40}
41//___________________________________________________________________________________________________________________________________________________
42
43TObjArray* AliHLTFastJetMonitor::GetHistograms()
44{
45
46 // pointer to histogram objects
47
48 return hList;
49
50}
51//___________________________________________________________________________________________________________________________________________________
52
53Int_t AliHLTFastJetMonitor::MakeHisto(AliHLTScalars *scalar)
54{
55
56 // make the histograms
57
58 hTracksPt->Fill( scalar->GetScalar("TracksPt").Value() );
59
60 hClusterEn->Fill( scalar->GetScalar("ClusterEn").Value() );
61
62 hClusterEta->Fill( scalar->GetScalar("ClusterEta").Value() );
63
64 hClusterPhi->Fill( scalar->GetScalar("ClusterPhi").Value() );
65
66 hJetsPt->Fill( scalar->GetScalar("JetsPt").Value() );
67
68 return 0;
69
70}
71