AliPhysics  vAN-20151012 (2287573)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliAnalysisTaskSELc2pK0sfromAODtracks.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKSELC2PK0SFROMAODTRACKS_H
2 #define ALIANALYSISTASKSELC2PK0SFROMAODTRACKS_H
3 
4 /**************************************************************************
5  * Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
6  * *
7  * Author: The ALICE Off-line Project. *
8  * Contributors are mentioned in the code where appropriate. *
9  * *
10  * Permission to use, copy, modify and distribute this software and its *
11  * documentation strictly for non-commercial purposes is hereby granted *
12  * without fee, provided that the above copyright notice appears in all *
13  * copies and that both the copyright notice and this permission notice *
14  * appear in the supporting documentation. The authors make no claims *
15  * about the suitability of this software for any purpose. It is *
16  * provided "as is" without express or implied warranty. *
17  **************************************************************************/
18 
19 /* $Id$ */
20 
21 #include "TROOT.h"
22 #include "TSystem.h"
23 
24 #include "AliAnalysisTaskSE.h"
25 #include "AliAODEvent.h"
26 #include "AliPID.h"
28 
30 
31 class THnSparse;
32 class TH1F;
33 class TClonesArray;
35 class AliESDVertex;
36 class AliAODMCParticle;
37 
38 class AliAnalysisTaskSELc2pK0sfromAODtracks : public AliAnalysisTaskSE
39 {
40  public:
42  AliAnalysisTaskSELc2pK0sfromAODtracks(const Char_t* name, AliRDHFCutsLctopK0sfromAODtracks* cuts, Bool_t writeVariableTree=kTRUE);
44 
46  virtual void UserCreateOutputObjects();
47  virtual void Init();
48  virtual void LocalInit() {Init();}
49  virtual void UserExec(Option_t *option);
50  virtual void Terminate(Option_t *option);
51 
52  void FillROOTObjects(AliAODRecoCascadeHF *lcobj, AliAODMCParticle *mcpart, AliAODMCParticle *mcdau1, AliAODMCParticle *mcdau2, Int_t mcnused);
53  void MakeAnalysis(AliAODEvent *aod, TClonesArray *mcArray);
54 
55 
57  void SetMC(Bool_t theMCon) {fUseMCInfo = theMCon;}
58  Bool_t GetMC() const {return fUseMCInfo;}
59 
61 
62  AliAODRecoCascadeHF* MakeCascadeHF(AliAODv0 *casc, AliAODTrack *trk, AliAODEvent *aod, AliAODVertex *vert);
63  AliAODVertex* ReconstructSecondaryVertex(AliAODv0 *casc, AliAODTrack *trk, AliAODEvent *aod);
64 
65 
66  private:
67 
70 
71  void DefineTreeVariables();
74 
75  AliAODVertex *CallPrimaryVertex(AliAODv0 *v0, AliAODTrack *trk, AliAODEvent *evt);
76  AliAODVertex* PrimaryVertex(const TObjArray *trkArray,AliVEvent *event);
77 
78  Bool_t fUseMCInfo;
79  TList *fOutput;
80  TList *fOutputAll;
81  TList *fListCuts;
82  TH1F *fCEvents;
83  TH1F *fHTrigger;
84  TH1F *fHCentrality;
88  TTree *fVariablesTree;
90  Bool_t fIsMB;
91  Bool_t fIsSemi;
92  Bool_t fIsCent;
93  Bool_t fIsINT7;
94  Bool_t fIsEMC7;
96  AliAODVertex *fVtx1;
97  AliESDVertex *fV1;
98  Double_t fBzkG;
99  Float_t fCentrality;
100  Float_t fTriggerCheck;
101 
102  //--------------------- My histograms ------------------
103  THnSparse* fHistoLcK0SpMass;
104 
105  TH1F* fHistoBachPt;
106  TH1F* fHistod0Bach;
107  TH1F* fHistod0V0;
108  TH1F* fHistod0d0;
113 
114 
117 };
119 #endif
120 
AliAODVertex * PrimaryVertex(const TObjArray *trkArray, AliVEvent *event)
TH1F * fHistoProbProton
! Probability to be proton histogram
TTree * fVariablesTree
flag to decide whether to write the candidate variables on a tree variables
void FillROOTObjects(AliAODRecoCascadeHF *lcobj, AliAODMCParticle *mcpart, AliAODMCParticle *mcdau1, AliAODMCParticle *mcdau2, Int_t mcnused)
AliAnalysisTaskSELc2pK0sfromAODtracks & operator=(const AliAnalysisTaskSELc2pK0sfromAODtracks &source)
TH1F * fHCentrality
! Histogram to check Centrality
virtual void UserCreateOutputObjects()
Implementation of interface methods.
void MakeAnalysis(AliAODEvent *aod, TClonesArray *mcArray)
THnSparse * fHistoLcK0SpMass
Stores trigger information.
Bool_t fIsMB
Reconstruct primary vertex excluding candidate tracks.
TList * fOutputAll
! User Output slot 3 //analysis histograms
TH1F * fCEvents
! Histogram to check selected events
AliAODRecoCascadeHF * MakeCascadeHF(AliAODv0 *casc, AliAODTrack *trk, AliAODEvent *aod, AliAODVertex *vert)
AliAODVertex * CallPrimaryVertex(AliAODv0 *v0, AliAODTrack *trk, AliAODEvent *evt)
Bool_t fIsEventSelected
Cuts - sent to output slot 2.
AliAODVertex * ReconstructSecondaryVertex(AliAODv0 *casc, AliAODTrack *trk, AliAODEvent *aod)
TH1F * fHistoV0CosPA
! V0 cosine pointing angle to primary vertex