TRD module
[u/mrichter/AliRoot.git] / TRD / TRDqaAnalysis / AliTRDqaElectronSpectra.h
CommitLineData
917559ee 1#ifndef ALITRDQAELECTRONSPECTRA_H
2#define ALITRDQAELECTRONSPECTRA_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id: AliTRDqaElectronSpectra.h $ */
7
8//
9// This class is a part of a package of high level QA monitoring for TRD.
10//
11// The transverse momentum spectrum is analyzed stack-by-stack
12// for all tracks, and for electron tracks.
13// Tracks have to pass quality cuts.
14// Electrons are waighted with the PID LQ
15//
16// S. Radomski
17// radomski@physi.uni-heidelberg.de
18// March 2008
19//
20
21#include "AliAnalysisTask.h"
22
23class TTree;
24class AliESDEvent;
25class TH1D;
26class TH2D;
27class AliExternalTrackParam;
28
29class AliTRDqaElectronSpectra : public AliAnalysisTask {
30
31 public:
32
33 AliTRDqaElectronSpectra();
34 AliTRDqaElectronSpectra(const char *name);
f2e1656b 35 AliTRDqaElectronSpectra(const AliTRDqaElectronSpectra & trd);
36 AliTRDqaElectronSpectra &operator=(const AliTRDqaElectronSpectra & /*g*/) { return *this; };
917559ee 37 virtual ~AliTRDqaElectronSpectra() {}
38
39 virtual void Exec(Option_t * opt = "");
40 virtual void ConnectInputData(Option_t *);
41 virtual void CreateOutputObjects();
42 virtual void Terminate(Option_t * opt = "");
43
44 private:
45
46 TTree * fChain; //!pointer to the analyzed TTree or TChain
47 AliESDEvent * fESD; //! Declaration of leave types
48
49 TObjArray * fOutputContainer; //! output data container
50
51 // histograms
52
53 TH1D *fStatus; // track status
54 TH1D *fSector; // sector
55 TH1D *fTheta; // theta to decide on stack
56 TH1D *fStack; // stack ID
57
58 TH1D *fnTracks; // number of tracks in a stack
59 TH1D *fnElTracks; // number of electrons tracks in a stack
60 TH1D *fTracksRatio; // fraction of electron tracks in a stack
61
62 TH1D *fPt; // transverse momentum distribution
63 TH1D *fPtElectron; // transverse momentum of electrons
64
65 TH1D *fMeanPt; // all tracks
66 TH1D *fMeanPtElectron; // electrons
67
68 TH2D *fPtStack; // pt distribution per stack
69 TH2D *fPtStackElectron; // for electrons
70
71 TH1D *fElectronLQ; // electron likehood
72
73
74 ClassDef(AliTRDqaElectronSpectra, 0); // a TRD analysis task
75};
76#endif // ALITRDQAELECTRONSPECTRA_H