]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGHF/hfe/AliHFEdebugTreeTaskAOD.h
update
[u/mrichter/AliRoot.git] / PWGHF / hfe / AliHFEdebugTreeTaskAOD.h
1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 *                                                                        *
4 * Author: The ALICE Off-line Project.                                    *
5 * Contributors are mentioned in the code where appropriate.              *
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 //
16 // Debug tree to look at the distribution of the variable we are cutting on
17 //
18 //
19 #ifndef ALIHFEDEBUGTREETASKAOD_H
20 #define ALIHFEDEBUGTREETASKAOD_H
21
22 #include "AliAnalysisTaskSE.h"
23
24 class AliHFEcuts;
25 class TString;
26 class TTreeSRedirector;
27 class AliHFEpidTPC;
28 class AliAODMCHeader;
29 class TClonesArray;
30 class AliHFEsignalCuts;
31 class AliHFEextraCuts;
32 class TTree;
33
34 class AliHFEdebugTreeTaskAOD : public AliAnalysisTaskSE{
35   public:
36     AliHFEdebugTreeTaskAOD();
37     AliHFEdebugTreeTaskAOD(const char *name);
38     virtual ~AliHFEdebugTreeTaskAOD();
39
40     virtual void UserCreateOutputObjects();
41     virtual void UserExec(Option_t *);
42     virtual void Terminate(Option_t *);
43
44     // Setters for cuts
45     void SetFileName(const char *filename);
46     void SetMinNclustersTPC(Int_t mincl) { fNclustersTPC = mincl; };
47     void SetMinNclustersTPCPID(Int_t mincl) { fNclustersTPCPID = mincl; };
48     void SetMinNclustersITS(Int_t mincl) { fNclustersITS = mincl; };
49     void SetDebugStream(Bool_t on) { fDebugstream = on; };
50     AliHFEpidTPC *GetTPCResponse() { return fTPCpid; }
51     
52   private:
53     AliHFEdebugTreeTaskAOD(const AliHFEdebugTreeTaskAOD &);
54     AliHFEdebugTreeTaskAOD &operator=(const AliHFEdebugTreeTaskAOD &);
55
56     AliAODMCHeader *fAODMCHeader;     // ! MC info AOD
57     TClonesArray *fAODArrayMCInfo;    // ! MC info particle AOD
58     AliHFEcuts *fTrackCuts;           // Track
59     AliHFEextraCuts *fExtraCuts;      // HFE IP info
60     AliHFEsignalCuts *fSignalCuts;    // Signal Cuts
61     AliHFEpidTPC *fTPCpid;            // TPC PID
62     Int_t fEventNumber;               // Event Number
63     Int_t fNclustersTPC;              // Min Number of clusters in TPC
64     Int_t fNclustersTPCPID;           // Min Number of clusters for TPC PID
65     Int_t fNclustersITS;              // Min Number of clusters in ITS
66     TString fFilename;                // file name for the debug tree
67     Bool_t  fDebugstream;             // to choose the way
68     TTreeSRedirector *fDebugTree;     // Debug Tree
69     TTree *fDebugTreee;               // Debug Tree
70
71     Float_t fCentrality;              // variable
72     Int_t   fRun;                     // run
73     Int_t   fDoublec;                 // double counted
74     Float_t fMomentum;                // Momentum
75     Float_t fMomentumTPC;             // Momentum TPC
76     Float_t fTransverseMomentum;      // Transverse Momentum
77     Float_t fEta;                     // Eta
78     Float_t fPhi;                     // Phi
79     Int_t   fCharge;                  // charge
80     Int_t   fNClustersTPCall;         // Nb of TPC clusters TPC all
81     Int_t   fNClustersTPCPID;         // Nb of TPC clusters TPC PID
82     Int_t   fNClustersTPCshared;      // Nb of TPC clusters shared
83     Int_t   fNCrossedRowsTPC;         // Nb of cross row TPC
84     Float_t fClusterRatioTPCall;      // cls ratio TPC all
85     Int_t   fNClustersITS;            // Nb of ITS clusters
86     Int_t   fStatusL0;                // status L0
87     Int_t   fStatusL1;                // status L1
88     Float_t fSigmaTOF;                // Sigma TOF
89     Float_t fSigmaTPC;                // Sigma TPC
90     Float_t fDcaxy;                   // Dcaxy
91     Float_t fDcaz;                    // Dcaz
92     Int_t   fFilter2;                 // filter2
93     Int_t   fFilter4;                 // filter4
94     Int_t   fSource;                  // source
95     Float_t fEr;                      // er
96     Float_t fSignal;                  // signal
97
98     
99   
100     ClassDef(AliHFEdebugTreeTaskAOD, 2)
101 };
102 #endif
103