AliPhysics  vAN-20150924 (e816f45)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliAnalysisTaskSEDStarSpectra.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKSEDSTARSPECTRA_H
2 #define ALIANALYSISTASKSEDSTARSPECTRA_H
3 /**************************************************************************
4  * Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
5  * *
6  * Author: The ALICE Off-line Project. *
7  * Contributors are mentioned in the code where appropriate. *
8  * *
9  * Permission to use, copy, modify and distribute this software and its *
10  * documentation strictly for non-commercial purposes is hereby granted *
11  * without fee, provided that the above copyright notice appears in all *
12  * copies and that both the copyright notice and this permission notice *
13  * appear in the supporting documentation. The authors make no claims *
14  * about the suitability of this software for any purpose. It is *
15  * provided "as is" without express or implied warranty. *
16  **************************************************************************/
17 
18 /* $Id$ */
19 
21 
22 #include <TH2F.h>
23 #include <TH3F.h>
24 #include <THnSparse.h>
25 
26 #include "AliAnalysisTaskSE.h"
27 
30 
31 class AliAnalysisTaskSEDStarSpectra : public AliAnalysisTaskSE
32 {
33 
34  public:
35 
39 
41  virtual void UserCreateOutputObjects();
42  virtual void Init();
43  virtual void LocalInit() {Init();}
44  virtual void UserExec(Option_t *option);
45  virtual void Terminate(Option_t *option);
46 
47 
49  void SideBandBackground(AliAODRecoCascadeHF *part, AliRDHFCutsDStartoKpipi *cuts, Int_t isSel, TList *listout);
50  void WrongSignForDStar(AliAODRecoCascadeHF *part, AliRDHFCutsDStartoKpipi *cuts, TList *listout);
52  void FillSpectrum(AliAODRecoCascadeHF *part, Int_t isDStar, AliRDHFCutsDStartoKpipi *cuts, Int_t isSel, TList *listout);
53  void DefineHistograms();
54  Int_t CheckOrigin(TClonesArray* arrayMC, const AliAODMCParticle *mcPartCandidate) const;
56 
59  void PrintAnalysisType() {printf("Analysis type: %d\n(0: Heidelberg\t1: Utrecht)",fAnalysis);}
61  void SetMC(Bool_t theMCon) {fUseMCInfo = theMCon;}
62  Bool_t GetMC() const {return fUseMCInfo;}
65  Bool_t GetRareSearch() const {return fDoSearch;}
68  Bool_t GetDoImpactParameterHistos() const {return fDoImpParDstar;}
69 
70  Float_t GetTrueImpactParameterD0(const AliAODMCHeader *mcHeader, TClonesArray* arrayMC, const AliAODMCParticle *partDp) const;
71 
72  void SetDoDStarVsY(Bool_t theDStarVsY) {fDoDStarVsY = theDStarVsY;}
73 
74  private:
75 
78 
79  Int_t fEvents;
80  Int_t fAnalysis;
81  Double_t fD0Window;
82  Double_t fPeakWindow;
83  Bool_t fUseMCInfo;
84  Bool_t fDoSearch;
85  TList *fOutput;
86  TList *fOutputAll;
87  TList *fOutputPID;
88  Int_t fNSigma;
90  // define the histograms
91  TH1F *fCEvents;
92  TH2F *fTrueDiff2;
93  TH1F *fDeltaMassD1;
95  Bool_t fDoImpParDstar;
96  Int_t fNImpParBins;
97  Float_t fLowerImpPar;
98  Float_t fHigherImpPar;
99  Bool_t fDoDStarVsY;
100 
101  THnSparseF *fHistMassPtImpParTCDs[5];
102 
104  ClassDef(AliAnalysisTaskSEDStarSpectra,9);
105 };
107 
108 #endif
109 
TH1F * fCEvents
Cuts - sent to output slot 3.
Float_t fHigherImpPar
lower limit in impact parameter (um)
Int_t CheckOrigin(TClonesArray *arrayMC, const AliAODMCParticle *mcPartCandidate) const
Float_t fLowerImpPar
nunber of bins in impact parameter histos
void FillSpectrum(AliAODRecoCascadeHF *part, Int_t isDStar, AliRDHFCutsDStartoKpipi *cuts, Int_t isSel, TList *listout)
histos
AliRDHFCutsDStartoKpipi * fCuts
n sigma for kaon PID
Bool_t fDoDStarVsY
higher limit in impact parameter (um)
Float_t GetTrueImpactParameterD0(const AliAODMCHeader *mcHeader, TClonesArray *arrayMC, const AliAODMCParticle *partDp) const
AliNormalizationCounter * fCounter
!Counter for normalization slot 4
AliAnalysisTaskSEDStarSpectra & operator=(const AliAnalysisTaskSEDStarSpectra &source)
void SetMC(Bool_t theMCon)
set MC usage
virtual void UserCreateOutputObjects()
Implementation of interface methods.
virtual void UserExec(Option_t *option)
void SetDoImpactParameterHistos(Bool_t doImp=kTRUE)
impact par study
const Bool_t doImp
virtual void Terminate(Option_t *option)
void SideBandBackground(AliAODRecoCascadeHF *part, AliRDHFCutsDStartoKpipi *cuts, Int_t isSel, TList *listout)
Background simulation.
const Bool_t anaType
Double_t fPeakWindow
select width on D0Mass
const Bool_t theRareOn
void SetAnalysisType(Int_t anaType)
set analysis type
void WrongSignForDStar(AliAODRecoCascadeHF *part, AliRDHFCutsDStartoKpipi *cuts, TList *listout)
void SetRareSearch(Bool_t theRareOn)
set rare mesons
THnSparseF * fHistMassPtImpParTCDs[5]
flag to enable D* vs y
Bool_t fUseMCInfo
select width on DstarMass