Single Muon Analysis from generic or muon-selected AOD's (Diego)
[u/mrichter/AliRoot.git] / PWG3 / muon / AliAnalysisTaskSingleMu.h
CommitLineData
662e37fe 1/// \ingroup "PWG3muon"
2/// \class AliAnalysisTaskSingleMu
3/// \brief Analysis task for single muons in the spectrometer
4///
5// Author Diego Stocco
aad6618e 6
7#include "AliAODEvent.h"
aad6618e 8#include "AliAODTrack.h"
9
10class AliAnalysisTaskSingleMu : public AliAnalysisTask {
11 public:
12 AliAnalysisTaskSingleMu(const char *name = "AliAnalysisTaskSingleMu");
13 virtual ~AliAnalysisTaskSingleMu() {}
14
15 virtual void ConnectInputData(Option_t *);
16 virtual void CreateOutputObjects();
17 virtual void Exec(Option_t *option);
18 virtual void Terminate(Option_t *);
19
662e37fe 20 protected:
21 Bool_t FillTrackVariables(AliAODTrack &muonTrack);
22
23 void InitVariables();
aad6618e 24
662e37fe 25 private:
8b8b0b7a 26 AliAnalysisTaskSingleMu(const AliAnalysisTaskSingleMu&);
27 AliAnalysisTaskSingleMu& operator=(const AliAnalysisTaskSingleMu&);
28
aad6618e 29 AliAODEvent *fAOD; //!< ESDevent object
30
662e37fe 31 TTree *fResults; //!< Tree with results
aad6618e 32
662e37fe 33 enum {
34 kVarPt, //!< Muon pt
35 kVarY, //!< Muon rapidity
36 kVarPhi, //!< Muon phi
37 kVarVz, //!< Primary vertex longitudinal position
38 kVarDCA, //!< Transverse distance at vertex
39 kNfloatVars
aad6618e 40 };
41
662e37fe 42 enum {
43 kVarTrig, //!< Matched trigger
44 kNintVars
45 };
46
aad6618e 47
662e37fe 48 Float_t* fVarFloat; //!< Array of float variables
49 Int_t* fVarInt; //!< Array of int variables
50
51 TString* fFloatVarName; //!< Float variable names for branches
52 TString* fIntVarName; //!< Intt variable names for branches
aad6618e 53
aad6618e 54 ClassDef(AliAnalysisTaskSingleMu, 0); // Single muon analysis
55};
56