using AliCDBConnect task in test train of TRD
[u/mrichter/AliRoot.git] / PWG1 / TRD / AliTRDv0Monitor.h
CommitLineData
0ed6f095 1#ifndef ALITRDV0MONITOR_H
2#define ALITRDV0MONITOR_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/////////////////////////////////////////////////////
8//
9// Monitor V0 for TRD
10//
11// Authors:
12// Markus Heide <mheide@uni-muenster.de>
13//////////////////////////////////////////////////////
14
15#ifndef ALITRDRECOTASK_H
16#include "AliTRDrecoTask.h"
17#endif
18#ifndef ALIPID_H
19#include "AliPID.h"
20#endif
21#ifndef ALITRDV0INFO_H
22#include "info/AliTRDv0Info.h"
23#endif
24
25class TTree;
0ed6f095 26class TH2F;
27class TH1I;
28class TObjArray;
0ed6f095 29class AliTRDv0Monitor : public AliTRDrecoTask
30{
31public:
32 enum ETRDv0Monitor {
33 kNSamples = 3
34 ,kNPlots = 13 // Number of plots for this task
35 ,kNCutSteps = 3
36 ,kNDets = 3
37 };
38
39 AliTRDv0Monitor();
e30bd742 40 AliTRDv0Monitor(const char *name);
dea861a3 41 virtual ~AliTRDv0Monitor(){};
129a3fe2 42
068e2c00 43 Bool_t GetRefFigure(Int_t ifig);
44 TObjArray* Histos();
45 void UserExec(Option_t *option);
d48822f2 46 //void MakeSummary();
0ed6f095 47
dea861a3 48private:
49 AliTRDv0Monitor(const AliTRDv0Monitor&); // not implemented
50 AliTRDv0Monitor& operator=(const AliTRDv0Monitor&); // not implemented
0ed6f095 51
dea861a3 52 TH1I *fhCutReductions[AliPID::kSPECIES];//!histo for sample reductions by each ID cut
53 TH1I *fhQualityReductions;//!histo for sample reductions by each quality cut
54 TH2F *fhV0Chi2ndf[AliTRDv0Info::kNDecays][kNCutSteps];//!Chi2/ndf distributions before cuts, after inv. mass cut, after all cuts (same for all arrays below!!!)
55 TH2F *fhInvMass[AliTRDv0Info::kNDecays];//!invariant mass distributions
56 TH2F *fhPsiPair[AliTRDv0Info::kNDecays][kNCutSteps];//!Psi_pair angle distributions
57 TH2F *fhPointAngle[AliTRDv0Info::kNDecays][kNCutSteps];//!pointing angle
58 TH2F *fhDCA[AliTRDv0Info::kNDecays][kNCutSteps];//!Distance of closest approach between daughters
59 TH2F *fhOpenAngle[AliTRDv0Info::kNDecays][kNCutSteps];//!opening angle between daughters
60 TH2F *fhDetPID[kNDets][AliPID::kSPECIES];//!likelihood outputs from different detectors
61 TH2F *fhComPID[AliPID::kSPECIES];//!combined PID from TPC and TOF
62 TH2F *fhRadius[AliTRDv0Info::kNDecays][kNCutSteps];//!radial distance of secondary vertex to primary vertex
63 TH2F *fhTPCdEdx[AliPID::kSPECIES][kNCutSteps];//!energy deposition in TPC
fa6441b5 64
65
0ed6f095 66
67 TObjArray *fV0s; //! v0 array
68 TTree *fData; //! dEdx-P data
69 TObjArray *fInfo; //! list of PID info
dea861a3 70 Float_t fP; //! momentum
71 Float_t fPID[AliPID::kSPECIES]; //! pid from v0s
0ed6f095 72
73 ClassDef(AliTRDv0Monitor, 3); // V0 Monitor
74};
75
76#endif