Fix Coverity 24835
[u/mrichter/AliRoot.git] / PWG / DevNanoAOD / AliAnalysisNanoAODCuts.h
CommitLineData
778636d4 1#ifndef _ALIANALYSISNANOAODCUTSANDSETTERS_H_
2#define _ALIANALYSISNANOAODCUTSANDSETTERS_H_
3
4#include "AliAnalysisCuts.h"
5#include "AliNanoAODCustomSetter.h"
5cb630d4 6#include "AliNanoAODCustomSetter.h"
778636d4 7
8class AliAnalysisNanoAODTrackCuts : public AliAnalysisCuts
9{
10public:
11 AliAnalysisNanoAODTrackCuts();
12 virtual ~AliAnalysisNanoAODTrackCuts() {}
13 virtual Bool_t IsSelected(TObject* obj); // TObject should be an AliAODTrack
14 virtual Bool_t IsSelected(TList* /* list */ ) { return kTRUE; }
15 UInt_t GetBitMask() { return fBitMask; }
16 void SetBitMask (UInt_t var) { fBitMask = var;}
5cb630d4 17 Float_t GetMinPt() { return fMinPt; }
18 void SetMinPt (Float_t var) { fMinPt = var;}
19 Float_t GetMaxEta() { return fMaxEta; }
20 void SetMaxEta (Float_t var) { fMaxEta = var;}
21
22
23// [11/3/14 09:15:20] Fiete: to make a full test with the CF train: we also need the possibility to copy values of the header: at least vertex and centrality
24// [11/3/14 09:15:29] Fiete: let's put this before i tag
778636d4 25
26private:
27 UInt_t fBitMask; // Only AOD tracks matching this bit mask are accepted
5cb630d4 28 Float_t fMinPt; // miminum pt of the tracks
29 Float_t fMaxEta; // MaxEta
30
31
778636d4 32
33 ClassDef(AliAnalysisNanoAODTrackCuts,1); // Select muon spectrometer tracks
34};
35
36class AliAnalysisNanoAODEventCuts : public AliAnalysisCuts
37{
38public:
39 AliAnalysisNanoAODEventCuts();
40 virtual ~AliAnalysisNanoAODEventCuts() {}
41 virtual Bool_t IsSelected(TObject* obj); // TObject should be an AliAODEvent
42 virtual Bool_t IsSelected(TList* /* list */ ) { return kTRUE; }
43 Float_t GetVertexRange() { return fVertexRange; }
44 void SetVertexRange (Float_t var) { fVertexRange = var;}
45public:
46 Float_t fVertexRange; // Only events with primary vertex within this range are accepted (whathever the vertex)
47
48
49 ClassDef(AliAnalysisNanoAODEventCuts,1); // Select primary vertices
50};
51
5cb630d4 52class AliNanoAODSimpleSetter : public AliNanoAODCustomSetter
53{
54public:
55 AliNanoAODSimpleSetter(){;}
56 virtual ~AliNanoAODSimpleSetter(){;}
57
58 virtual void SetNanoAODHeader(const AliAODEvent * event , AliNanoAODHeader * head );
59 virtual void SetNanoAODTrack (const AliAODTrack * /*aodTrack*/, AliNanoAODTrack * /*spTrack*/){;}
60
61 ClassDef(AliNanoAODSimpleSetter, 1)
62
63};
778636d4 64
65
66
67
68#endif /* _ALIANALYSISNANOAODCUTSANDSETTERS_H_ */