Coverity fixes
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / extra / AliAnalysisTaskSigma1385.h
CommitLineData
35e49ca5 1#ifndef ALIANALYSISTASKSIGMA1385_H
2#define ALIANALYSISTASKSIGMA1385_H
3
4/* See cxx source for full Copyright notice */
5
6//-----------------------------------------------------------------
7// AliAnalysisTaskSigma1385 class
8//-----------------------------------------------------------------
9
10class TList;
11class TH1F;
12class TNtuple;
7356f978 13class AliESDcascade;
35e49ca5 14
15//-------------------------------- For PID
16
17
18#include "AliESDpid.h"
19#include "AliTOFT0maker.h"
20#include "AliTOFcalib.h"
21#include "AliCDBManager.h"
22#include "AliESDtrackCuts.h"
23
7356f978 24//-------------------------------
35e49ca5 25
26#include "TString.h"
27#include "AliAnalysisTaskSE.h"
28
29class AliAnalysisTaskSigma1385 : public AliAnalysisTaskSE {
7356f978 30public:
31 AliAnalysisTaskSigma1385();
32 AliAnalysisTaskSigma1385(const char *name);
33 virtual ~AliAnalysisTaskSigma1385() {}
34
35 virtual void UserCreateOutputObjects();
36 virtual void UserExec(Option_t *option);
37 virtual void Terminate(Option_t *);
38
39 void SetCollidingSystems(Short_t collidingSystems = 0) {fCollidingSystems = collidingSystems;}
40 void SetAnalysisType(const char* analysisType = "ESD") {fAnalysisType = analysisType;}
41 void SetDataType(const char* dataType = "REAL") {fDataType = dataType;}
42
43 virtual const char *GetDataType() {return fDataType;}
44
7d460484 45 //Bool_t *IsSelected(AliESDtrack* track);
46 void IsSelected(AliESDtrack* track);
7356f978 47
48
49
35e49ca5 50
51//-------------------------------- For Alberto's PID
52
53
7356f978 54 void SetCheckITS(Bool_t yn = kTRUE) {fCheckITS = yn;}
55 void SetCheckTPC(Bool_t yn = kTRUE) {fCheckTPC = yn;}
56 void SetCheckTOF(Bool_t yn = kTRUE) {fCheckTOF = yn;}
57 void SetUseGlobal(Bool_t yn = kTRUE) {fUseGlobal = yn;}
58 void SetUseITSSA(Bool_t yn = kTRUE) {fUseITSSA = yn;}
59
60 void SetITSband(Double_t v) {fMaxITSband = v;}
61
62 void SetTPCpLimit(Double_t v) {fTPCpLimit = v;}
63 void SetTPCrange(Double_t min, Double_t max) {fMinTPCband = min; fMaxTPCband = max;}
64 void SetTPCpar(Double_t p0, Double_t p1, Double_t p2, Double_t p3, Double_t p4)
65 {fTPCpar[0] = p0; fTPCpar[1] = p1; fTPCpar[2] = p2; fTPCpar[3] = p3; fTPCpar[4] = p4;}
66
67 void SetTOFcalibrateESD(Bool_t yn = kTRUE) {fTOFcalibrateESD = yn;}
68 void SetTOFcorrectTExp(Bool_t yn = kTRUE) {fTOFcorrectTExp = yn;}
69 void SetTOFuseT0(Bool_t yn = kTRUE) {fTOFuseT0 = yn;}
70 void SetTOFtuneMC(Bool_t yn = kTRUE) {fTOFtuneMC = yn;}
71 void SetTOFresolution(Double_t v = 100.0) {fTOFresolution = v;}
72 void SetTOFrange(Double_t v1, Double_t v2) {fMinTOF = v1; fMaxTOF = v2;}
73
74
75//-------------------------------
76
77private:
78
79 TString fAnalysisType; // "ESD" or "AOD" analysis type
80 Short_t fCollidingSystems; // 0 = pp collisions or 1 = AA collisions
81 TString fDataType; // "REAL" or "SIM" data type
82
83 TList *fListHistCascade; //! List of Cascade histograms
84 TH1F *fHistEventMultiplicity;
85 TH1F *fHistEventMultiplicityRAVS; //event rejected after vertex selection
86 TNtuple *fNtuple1;
87 TNtuple *fNtuple2;
88 TNtuple *fNtuple3;
89 TNtuple *fNtuple4;
90
91
92
35e49ca5 93//-------------------------------- For PID
7356f978 94
95protected:
96
97 Bool_t isMC;
98 Bool_t fIsMC; // switch for MC analysis
99 Bool_t fCheckITS; // switch for ITS dE/dx check
100 Bool_t fCheckTPC; // switch for TPC dE/dx check
101 Bool_t fCheckTOF; // switch for TOF time check
102 Bool_t fUseGlobal; // switch to use TPC global tracks
103 Bool_t fUseITSSA; // switch to use ITS standalone tracks
104
105 Double_t fMaxITSband; // range for ITS de/dx band
106
107 Double_t fTPCpLimit; // limit to choose what band to apply
108 Double_t fTPCpar[5]; // parameters for TPC bethe-Bloch
109 Double_t fMinTPCband; // range for TPC de/dx band - min
110 Double_t fMaxTPCband; // range for TPC de/dx band - max
111
112
113 AliESDpid *fESDpid; //! PID manager
114 AliTOFT0maker *fTOFmaker; //! TOF time0 computator
115 AliTOFcalib *fTOFcalib; //! TOF calibration
116 Bool_t fTOFcalibrateESD; // TOF settings
117 Bool_t fTOFcorrectTExp; // TOF settings
118 Bool_t fTOFuseT0; // TOF settings
119 Bool_t fTOFtuneMC; // TOF settings
120 Double_t fTOFresolution; // TOF settings
121 Double_t fMinTOF; // range for TOF PID (min)
122 Double_t fMaxTOF; // range for TOF PID (max)
123 Int_t fLastRun; // last run number
7d460484 124 Bool_t fOkTrack[5]; // utility variable to know track selection success
7356f978 125
126//-------------------------------
127
128
129 AliAnalysisTaskSigma1385(const AliAnalysisTaskSigma1385&); // not implemented
130 AliAnalysisTaskSigma1385& operator=(const AliAnalysisTaskSigma1385&); // not implemented
131
132 ClassDef(AliAnalysisTaskSigma1385, 3);
35e49ca5 133};
134
135#endif