AliPhysics  1811c8f (1811c8f)
AliAnalysisTaskSEB0toDStarPi.h
Go to the documentation of this file.
1 #ifndef AliAnalysisTaskSEB0toDStarPi_H
2 #define AliAnalysisTaskSEB0toDStarPi_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 #include <vector>
27 #include "AliAODVertex.h"
28 
29 #include "AliAnalysisTaskSE.h"
30 
33 
35 {
36 
37  public:
38 
42 
44  virtual void UserCreateOutputObjects();
45  virtual void Init();
46  virtual void LocalInit() {Init();}
47  virtual void UserExec(Option_t *option);
48  virtual void Terminate(Option_t *option);
49 
50  // histos
51  void DefineHistograms();
52 
53  //selection and reconstruction
54  void B0toDStarPiSignalTracksInMC(TClonesArray * mcTrackArray,AliAODEvent* aodevent,TMatrix * B0toDStarPiLabelMatrix, TList *listout);
55  void DStarPionSelection(AliAODEvent* aodEvent, AliAODVertex *primaryVertex, Double_t bz, TClonesArray * mcTrackArray, TMatrix * B0toDStarPiLabelMatrix);
56  void B0PionSelection(AliAODEvent* aodEvent, AliAODVertex *primaryVertex, Double_t bz, TClonesArray * mcTrackArray, TMatrix * B0toDStarPiLabelMatrix);
57  void D0Selection(AliAODEvent* aodEvent, AliAODVertex *primaryVertex, Double_t bz,TClonesArray * mcTrackArray,TMatrix * B0toDStarPiLabelMatrix, TClonesArray * D0TracksFromFriendFile);
58  void DStarAndB0Selection(AliAODEvent* aodEvent, AliAODVertex *primaryVertex, Double_t bz, TClonesArray * mcTrackArray, TMatrix * B0toDStarPiLabelMatrix, TClonesArray * D0TracksFromFriendFile);
59 
60  AliAODVertex* RecalculateVertex(const AliVVertex *primary,TObjArray *tracks,Double_t bField, Double_t dispersion);
61  void FillFinalTrackHistograms(AliAODRecoDecayHF2Prong * trackB0, Bool_t isDesiredCandidate,TClonesArray * mcTrackArray);
62 
63  void FillD0Histograms(AliAODRecoDecayHF2Prong * selectedMother, AliAODVertex *primaryVertex, Double_t bz, Int_t motherType, Int_t histType, Int_t pdgCodeMother = -1);
64  void FillDStarAndB0Histograms(AliAODRecoDecayHF2Prong * selectedMother, AliAODVertex *primaryVertex, Double_t bz, Int_t motherType, Int_t histType);
65  Int_t MatchCandidateToMonteCarlo(Int_t pdgabs, AliAODRecoDecayHF2Prong * candidate, TClonesArray *mcArray, TMatrix * B0toDStarPiLabelMatrix) const;
66 
67  // set MC usage
68  void SetMC(Bool_t bUseMCInfo) {fUseMCInfo = bUseMCInfo;}
69  Bool_t GetMC() const {return fUseMCInfo;}
70 
73 
75  void SetGetCutInfo(Bool_t value){fGetCutInfo = value;}
76 
77  void SetShowMask(Bool_t bShowMask) {fShowMask = bShowMask;}
78  Bool_t GetShowMask() const {return fShowMask;}
79 
80  void SetShowRejection(Bool_t bShowRejection) {fShowRejection = bShowRejection;}
82 
83  private:
84 
87 
92 
105 
106 
108 
109  TH1F *fCEvents;
110 
112 
113  std::vector<Int_t> * fDStarPionTracks;
114  std::vector<Int_t> * fB0PionTracks;
115  std::vector<Int_t> * fD0Tracks;
116 
119  Float_t * fPtBinLimits; //[fnPtBinLimits]
122  Float_t * fPtBinLimitsD0forD0ptbin; //[fnPtBinsD0forD0ptbinLimits]
125  Float_t * fPtBinLimitsD0forDStarptbin; //[fnPtBinsD0forDStarptbinLimits]
128  Float_t * fPtBinLimitsDStarforDStarptbin; //[fnPtBinsDStarforDStarptbinLimits]
129 
135 
136 
139 
141  ClassDef(AliAnalysisTaskSEB0toDStarPi,2);
142 };
144 
145 #endif
146 
void FillD0Histograms(AliAODRecoDecayHF2Prong *selectedMother, AliAODVertex *primaryVertex, Double_t bz, Int_t motherType, Int_t histType, Int_t pdgCodeMother=-1)
double Double_t
Definition: External.C:58
void FillDStarAndB0Histograms(AliAODRecoDecayHF2Prong *selectedMother, AliAODVertex *primaryVertex, Double_t bz, Int_t motherType, Int_t histType)
virtual void Terminate(Option_t *option)
Double_t bz
char Char_t
Definition: External.C:18
Int_t MatchCandidateToMonteCarlo(Int_t pdgabs, AliAODRecoDecayHF2Prong *candidate, TClonesArray *mcArray, TMatrix *B0toDStarPiLabelMatrix) const
AliNormalizationCounter * fCounter
!Counter for normalization slot 4
Double_t DeltaInvMassB0Kpipipi(AliAODRecoDecayHF2Prong *B0) const
virtual void UserCreateOutputObjects()
Implementation of interface methods.
void D0Selection(AliAODEvent *aodEvent, AliAODVertex *primaryVertex, Double_t bz, TClonesArray *mcTrackArray, TMatrix *B0toDStarPiLabelMatrix, TClonesArray *D0TracksFromFriendFile)
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
void B0toDStarPiSignalTracksInMC(TClonesArray *mcTrackArray, AliAODEvent *aodevent, TMatrix *B0toDStarPiLabelMatrix, TList *listout)
void DStarAndB0Selection(AliAODEvent *aodEvent, AliAODVertex *primaryVertex, Double_t bz, TClonesArray *mcTrackArray, TMatrix *B0toDStarPiLabelMatrix, TClonesArray *D0TracksFromFriendFile)
virtual void UserExec(Option_t *option)
void B0PionSelection(AliAODEvent *aodEvent, AliAODVertex *primaryVertex, Double_t bz, TClonesArray *mcTrackArray, TMatrix *B0toDStarPiLabelMatrix)
void FillFinalTrackHistograms(AliAODRecoDecayHF2Prong *trackB0, Bool_t isDesiredCandidate, TClonesArray *mcTrackArray)
AliAODVertex * RecalculateVertex(const AliVVertex *primary, TObjArray *tracks, Double_t bField, Double_t dispersion)
TH1F * fCEvents
Cuts - sent to output slot 3.
AliAnalysisTaskSEB0toDStarPi & operator=(const AliAnalysisTaskSEB0toDStarPi &source)
void SetShowRejection(Bool_t bShowRejection)
Double_t DeltaInvMassDStarKpipi(AliAODRecoDecayHF2Prong *DStar) const
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
void DStarPionSelection(AliAODEvent *aodEvent, AliAODVertex *primaryVertex, Double_t bz, TClonesArray *mcTrackArray, TMatrix *B0toDStarPiLabelMatrix)