AliPhysics  a4b41ad (a4b41ad)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Go to the documentation of this file.
4 /* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
7 /* $Id$ */
16 #include <TROOT.h>
17 #include <TSystem.h>
18 #include <TH1F.h>
19 #include <TH2F.h>
20 #include <THnSparse.h>
22 #include "AliAnalysisTaskSE.h"
23 #include "AliRDHFCutsDstoKKpi.h"
24 #include "AliLog.h"
30 {
31  public:
34  AliAnalysisTaskSEDs(const char *name, AliRDHFCutsDstoKKpi* analysiscuts, Int_t fillNtuple=0);
35  virtual ~AliAnalysisTaskSEDs();
36  void SetReadMC(Bool_t readMC=kTRUE){fReadMC=readMC;}
38  if(fReadMC) fWriteOnlySignal=opt;
39  else AliError("fReadMC has to be kTRUE");
40  }
41  void SetFillNtuple(Int_t fill=0){fFillNtuple=fill;}
42  void SetFillNSparse(Bool_t fill=kTRUE){fFillSparse=fill;}
43  void SetFillNSparseDplus(Bool_t fill=kTRUE){fFillSparseDplus=fill;if(fill)fFillSparse=fill;}
44  void SetMassRange(Double_t rang=0.4){fMassRange=rang;}
45  void SetDoCutVarHistos(Bool_t opt=kTRUE) {fDoCutVarHistos=opt;}
46  void SetUseSelectionBit(Bool_t opt=kFALSE){ fUseSelectionBit=opt;}
48  void SetUseRotBkg(Bool_t flag=kFALSE) {fDoRotBkg=flag;}
49  void SetUseBkgFromPhiSB(Bool_t flag=kFALSE) {fDoBkgPhiSB=flag;}
52  Bool_t CheckDaugAcc(TClonesArray* arrayMC,Int_t nProng, Int_t *labDau);
53  void FillMCGenAccHistos(TClonesArray *arrayMC, AliAODMCHeader *mcHeader);
54  void GenerateRotBkg(AliAODRecoDecayHF3Prong *d, Int_t dec, Int_t iPtBin);
55  void GenerateBkgFromPhiSB(AliAODRecoDecayHF3Prong *d, Int_t dec, Int_t iPtBin, Double_t massKK);
57  void SetInvMassBinSize(Double_t binsiz=0.002){fMassBinSize=binsiz;}
58  void SetPtBins(Int_t n, Float_t* lim);
60  void SetSystem(Int_t system){fSystem = system;}
62  virtual void UserCreateOutputObjects();
63  virtual void Init();
64  virtual void LocalInit() {Init();}
65  virtual void UserExec(Option_t *option);
66  virtual void Terminate(Option_t *option);
68  private:
69  Int_t GetHistoIndex(Int_t iPtBin) const { return iPtBin*4;}
70  Int_t GetSignalHistoIndex(Int_t iPtBin) const { return iPtBin*4+1;}
71  Int_t GetBackgroundHistoIndex(Int_t iPtBin) const { return iPtBin*4+2;}
72  Int_t GetReflSignalHistoIndex(Int_t iPtBin) const { return iPtBin*4+3;}
80  TH1F* fHistNEvents;
81  TH1F* fChanHist[4];
82  TH1F* fMassHist[4*kMaxPtBins];
90  TH1F* fCosPHist[4*kMaxPtBins];
91  TH1F* fDLenHist[4*kMaxPtBins];
96  TH1F* fDCAHist[4*kMaxPtBins];
110  TH1F *fHistCentrality[3];
112  TNtuple *fNtupleDs;
114  Int_t fSystem;
128  UChar_t fNPtBins;
130  TList *fListCuts; //list of cuts
142  THnSparseF *fnSparse;
143  THnSparseF *fnSparseIP;
144  THnSparseF *fnSparseMC[4];
145  THnSparseF *fnSparseMCDplus[4];
152  ClassDef(AliAnalysisTaskSEDs,21);
153 };
156 #endif
virtual void LocalInit()
THnSparseF * fnSparseMCDplus[4]
TH1F * fPtMaxHist[4 *kMaxPtBins]
! hist. for Pt Max (Prod Cuts)
AliAnalysisTaskSEDs & operator=(const AliAnalysisTaskSEDs &source)
void SetFillNSparseDplus(Bool_t fill=kTRUE)
THnSparseF * fnSparseMC[4]
!<!THnSparse for topomatic variable
double Double_t
Definition: External.C:58
Definition: External.C:236
TH1F * fPtProng1Hist[4 *kMaxPtBins]
! hist. for DCA (Prod Cuts)
void SetUseRotBkg(Bool_t flag=kFALSE)
void SetInvMassBinSize(Double_t binsiz=0.002)
void SetUseSelectionBit(Bool_t opt=kFALSE)
void SetPtBins(Int_t n, Float_t *lim)
TH2F * fDalitzK0st[4 *kMaxPtBins]
! dalitz plot via K0* (sig,bkg,tot)
Bool_t fFillSparseDplus
flag for usage of THnSparse
Int_t GetHistoIndex(Int_t iPtBin) const
void SetSystem(Int_t system)
Double_t fMassRange
limits for pt bins
TH2F * fPtVsMass
! hist. of pt vs. mass (prod. cuts)
TH1F * fPtProng0Hist[4 *kMaxPtBins]
! hist. for Pt Max (Prod Cuts)
void SetFillNtuple(Int_t fill=0)
TH2F * fYVsPtSig
! hist. of Y vs. Pt (MC, only sig, prod. cuts)
virtual void UserCreateOutputObjects()
Implementation of interface methods.
Bool_t fFillSparse
flag for usage of HasSelectionBit
TH1F * fSumd02Hist[4 *kMaxPtBins]
! hist. for sum d02 (Prod Cuts)
TH1F * fMassHistPhi[4 *kMaxPtBins]
! hist. of mass spectra via phi (sig,bkg,tot)
Bool_t fDoBkgPhiSB
flag to create rotational bkg (rotating pi track)
THnSparseF * fnSparse
Cuts for Analysis.
TNtuple * fNtupleDs
! output ntuple
TH1F * fMassRotBkgHistPhi[kMaxPtBins]
! hist. of bkg generated from rot. of the pion
void GenerateRotBkg(AliAODRecoDecayHF3Prong *d, Int_t dec, Int_t iPtBin)
Bool_t fDoRotBkg
flag for usage of THnSparse
TH1F * fHistCentrality[3]
!hist. for cent distr (all,sel ev, )
int Int_t
Definition: External.C:63
void SetWriteOnlySignalInNtuple(Bool_t opt=kTRUE)
AliNormalizationCounter * fCounter
flag to set mass window of phi meson (when using pion rotation to create bkg)
float Float_t
Definition: External.C:68
TH2F * fHistCentralityMult[3]
!hist. for cent distr vs mult (all,sel ev, )
TH1F * fHistNEvents
! hist. for No. of events
AliRDHFCutsDstoKKpi * fAnalysisCuts
TList * fOutput
! list send on output slot 0
void SetPhiMassRange4RotBkg(Double_t range)
TH2F * fHistAllV0multNTPCout
! histo for V0mult vs #tracks TPCout (all)
void SetMassRange(Double_t rang=0.4)
void GenerateBkgFromPhiSB(AliAODRecoDecayHF3Prong *d, Int_t dec, Int_t iPtBin, Double_t massKK)
THnSparseF * fnSparseIP
!<!THnSparse for candidates on data
Bool_t CheckDaugAcc(TClonesArray *arrayMC, Int_t nProng, Int_t *labDau)
TH2F * fDalitzPhi[4 *kMaxPtBins]
! dalitz plot via phi (sig,bkg,tot)
TH2F * fHistSelV0multNTPCout
! histo for V0mult vs #tracks TPCout (sel)
TH1F * fMassHistKpi[kMaxPtBins]
! hist. of mass spectra of Kpi
TH1F * fMassRSBkgHistPhi[kMaxPtBins]
! hist. of bkg generated from right phi sideband + pion
TH1F * fPtCandHist[4 *kMaxPtBins]
! hist. for Pt Max (Prod Cuts)
void FillMCGenAccHistos(TClonesArray *arrayMC, AliAODMCHeader *mcHeader)
Bool_t fReadMC
0 = pp, 1 = pPb,PbPb
Int_t fAODProtection
flag to activate cut on V0mult vs #tracks TPCout
Int_t GetSignalHistoIndex(Int_t iPtBin) const
TH1F * fMassLSBkgHistPhi[kMaxPtBins]
! hist. of bkg generated from left phi sideband + pion
virtual void UserExec(Option_t *option)
Int_t GetReflSignalHistoIndex(Int_t iPtBin) const
virtual void Terminate(Option_t *option)
TH1F * fCosPHist[4 *kMaxPtBins]
! hist. of cos pointing angle (sig,bkg,tot)
Bool_t fDoCutV0multTPCout
flag to create bkg from phi sidebands
void SetUseBkgFromPhiSB(Bool_t flag=kFALSE)
TH1F * fDLenHist[4 *kMaxPtBins]
! hist. of decay length (sig,bkg,tot)
void SetReadMC(Bool_t readMC=kTRUE)
Bool_t fUseSelectionBit
flag to create and fill histos with distributions of cut variables
void SetUseCutV0multVsTPCout(Bool_t flag)
void SetFillNSparse(Bool_t fill=kTRUE)
const char Option_t
Definition: External.C:48
void SetDoCutVarHistos(Bool_t opt=kTRUE)
TH1F * fChanHist[4]
! hist. with KKpi and piKK candidates (sig,bkg,tot)
TH1F * fMassHist[4 *kMaxPtBins]
! hist. of mass spectra (sig,bkg,tot)
TH1F * fDCAHist[4 *kMaxPtBins]
! hist. for DCA (Prod Cuts)
Bool_t fDoCutVarHistos
flag to control ntuple writing in MC
TH1F * fPtProng2Hist[4 *kMaxPtBins]
! hist. for DCA (Prod Cuts)
bool Bool_t
Definition: External.C:53
void SetAODMismatchProtection(Int_t opt=1)
void SetAnalysisCuts(AliRDHFCutsDstoKKpi *cuts)
TH2F * fDalitz[4 *kMaxPtBins]
! dalitz plot (sig,bkg,tot)
TH1F * fSigVertHist[4 *kMaxPtBins]
! hist. for sigVert (Prod Cuts)
TH2F * fPtVsMassPhi
! hist. of pt vs. mass (phi selection)
TH1F * fMassHistKK[kMaxPtBins]
! hist. of mass spectra of KK
TH1F * fMassHistK0st[4 *kMaxPtBins]
! hist. of mass spectra via K0* (sig,bkg,tot)
TH2F * fYVsPt
! hist. of Y vs. Pt (prod. cuts)
TH2F * fPtVsMassK0st
! hist. of pt vs. mass (K0* selection)
TList * fListCuts
number of Pt bins
UChar_t fNPtBins
-1: no protection, 0: check AOD/dAOD nEvents only, 1: check AOD/dAOD nEvents + TProcessID names ...
Bool_t fWriteOnlySignal
flag for access to MC
Double_t fMassBinSize
range for mass histogram
Double_t fminMass
bin size for inv. mass histo
Int_t GetBackgroundHistoIndex(Int_t iPtBin) const
Float_t fPtLimits[kMaxPtBins+1]