]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG3/muon/AliAnalysisTaskSEMuonsHF.h
set ownership of cuts container
[u/mrichter/AliRoot.git] / PWG3 / muon / AliAnalysisTaskSEMuonsHF.h
CommitLineData
4292b3b6 1#ifndef ALIANALYSISTASKSEMUONSHF_H
2#define ALIANALYSISTASKSEMUONSHF_H
3
fd1d0cb9 4/* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7//*************************************************************************
8// Class AliAnalysisTaskSEMuonsHF
9// AliAnalysisTaskSE for the single muon and dimuon from HF analysis
10// Author: X-M. Zhang, zhang@clermont.in2p3.fr
11// zhangxm@iopp.ccnu.edu.cn
12//*************************************************************************
4292b3b6 13
4292b3b6 14#include "AliAnalysisTaskSE.h"
15
fd1d0cb9 16class TString;
17class TList;
18class TClonesArray;
9bcac085 19class AliMuonsHFHeader;
fd1d0cb9 20
4292b3b6 21class AliAnalysisTaskSEMuonsHF : public AliAnalysisTaskSE {
22 public:
23
24 AliAnalysisTaskSEMuonsHF();
25 AliAnalysisTaskSEMuonsHF(const char *name);
26 virtual ~AliAnalysisTaskSEMuonsHF();
27
fd1d0cb9 28 virtual void Init();
29 virtual void LocalInit() { Init(); }
4292b3b6 30 virtual void UserCreateOutputObjects();
31 virtual void UserExec(Option_t *opt);
32 virtual void Terminate(Option_t *opt);
33
1195bb6f 34 void SetAnaMode(Int_t mode) { fAnaMode = ((mode>=0 && mode<3) ? mode : 0); }
35 void SetIsOutputTree(Bool_t ist) { fIsOutputTree = ist; }
36 void SetUseMC(Bool_t isMC) { fIsMC = isMC; }
4292b3b6 37
fd1d0cb9 38 void SetEvsHCuts(Double_t cuts[3]) const { AliMuonsHFHeader::SetSelectionCuts(cuts); }
1195bb6f 39 void SetMuonCuts(Double_t cuts[12]) const { AliMuonInfoStoreRD::SetSelectionCuts(cuts); }
40 void SetDimuCuts(Double_t cuts[12]) const { AliDimuInfoStoreRD::SetSelectionCuts(cuts); }
4292b3b6 41
42 private:
43
fd1d0cb9 44 AliAnalysisTaskSEMuonsHF(const AliAnalysisTaskSEMuonsHF&);
45 AliAnalysisTaskSEMuonsHF& operator=(const AliAnalysisTaskSEMuonsHF&);
46
47 Int_t fAnaMode; // = 0, ana both single muon and dimuon
48 // = 1, ana single muon
49 // = 2, ana dimuon
4292b3b6 50 Bool_t fIsOutputTree; // flag used to switch on/off tree output
1195bb6f 51 Bool_t fIsMC; // flag of whether the input is MC
4292b3b6 52
fd1d0cb9 53 AliMuonsHFHeader *fHeader; // output for info at ev level
1195bb6f 54 TClonesArray *fMuonClArr; // output clones array for single mu
55 TClonesArray *fDimuClArr; // output clones array for dimu
56 TList *fListOutput; // output list of histos
fd1d0cb9 57
58 ClassDef(AliAnalysisTaskSEMuonsHF, 6);
4292b3b6 59};
60
61#endif