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 */
6 /* $Id: AliTRDqaElectronSpectra.h $ */
9 // This class is a part of a package of high level QA monitoring for TRD.
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
17 // radomski@physi.uni-heidelberg.de
21 #include "AliAnalysisTask.h"
27 class AliExternalTrackParam;
29 class AliTRDqaElectronSpectra : public AliAnalysisTask {
33 AliTRDqaElectronSpectra();
34 AliTRDqaElectronSpectra(const char *name);
35 AliTRDqaElectronSpectra(const AliTRDqaElectronSpectra & trd);
36 AliTRDqaElectronSpectra &operator=(const AliTRDqaElectronSpectra & /*g*/) { return *this; };
37 virtual ~AliTRDqaElectronSpectra() {}
39 virtual void Exec(Option_t * opt = "");
40 virtual void ConnectInputData(Option_t *);
41 virtual void CreateOutputObjects();
42 virtual void Terminate(Option_t * opt = "");
46 TTree * fChain; //!pointer to the analyzed TTree or TChain
47 AliESDEvent * fESD; //! Declaration of leave types
49 TObjArray * fOutputContainer; //! output data container
53 TH1D *fStatus; // track status
54 TH1D *fSector; // sector
55 TH1D *fTheta; // theta to decide on stack
56 TH1D *fStack; // stack ID
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
62 TH1D *fPt; // transverse momentum distribution
63 TH1D *fPtElectron; // transverse momentum of electrons
65 TH1D *fMeanPt; // all tracks
66 TH1D *fMeanPtElectron; // electrons
68 TH2D *fPtStack; // pt distribution per stack
69 TH2D *fPtStackElectron; // for electrons
71 TH1D *fElectronLQ; // electron likehood
74 ClassDef(AliTRDqaElectronSpectra, 0); // a TRD analysis task
76 #endif // ALITRDQAELECTRONSPECTRA_H