Exec changed to UserExec.
[u/mrichter/AliRoot.git] / ANALYSIS / AliAnalysisTaskKineFilter.h
CommitLineData
81ae6b8d 1#ifndef ALIANALYSISTASKKINEFILTER_H
2#define ALIANALYSISTASKKINEFILTER_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// Analysis task for Kinematic filtering
9// Fill AOD tracks from Kinematic stack
10//
11
12#include <TList.h>
13#include "AliAnalysisTaskSE.h"
14
15class AliMCEvent;
16class TChain;
17class AliAODEvent;
18class AliAnalysisFilter;
19class TParticle;
20class AliAODTrack;
21class AliAODVertex;
22
23class AliAnalysisTaskKineFilter : public AliAnalysisTaskSE
24{
25 public:
26 AliAnalysisTaskKineFilter();
27 AliAnalysisTaskKineFilter( const char* name );
28 AliAnalysisTaskKineFilter(const AliAnalysisTaskKineFilter& obj);
1294c7eb 29 virtual ~AliAnalysisTaskKineFilter();
81ae6b8d 30 AliAnalysisTaskKineFilter& operator=(const AliAnalysisTaskKineFilter& other);
31
32 // Implementation of interface methods
33 virtual void UserCreateOutputObjects();
19b8d057 34 virtual void UserExec( Option_t *option );
81ae6b8d 35
36 // Setters
1294c7eb 37 virtual void SetTrackFilter(AliAnalysisFilter* trackF) { fTrackFilter = trackF; }
81ae6b8d 38
39 private:
40 Int_t LoopOverSecondaries(TParticle *mother, Int_t& jTracks, Int_t& jVertices, Int_t& nPos, Int_t& nNeg );
41 void SetChargeAndPID(Int_t pdgCode, AliAODTrack *track);
42 void SetVertexType(TParticle *part, AliAODVertex *vertex);
43
1294c7eb 44 AliAnalysisFilter* fTrackFilter; // Track Filter
81ae6b8d 45
46 ClassDef( AliAnalysisTaskKineFilter, 1 ); // Analysis task for Kinematic filtering
47};
48
49#endif