1 #ifndef ALIANALYSISTASKSELC2V0BACHELOR_H
2 #define ALIANALYSISTASKSELC2V0BACHELOR_H
3 /**************************************************************************
4 * Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
6 * Author: The ALICE Off-line Project. *
7 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
24 #include "AliAnalysisTaskSE.h"
25 #include "AliAODEvent.h"
27 #include "AliAODTrack.h"
28 #include "AliPIDResponse.h"
29 #include "AliTPCPIDResponse.h"
30 #include "AliRDHFCutsLctoV0.h"
31 #include "AliNormalizationCounter.h"
33 class AliAnalysisTaskSELc2V0bachelor : public AliAnalysisTaskSE
38 AliAnalysisTaskSELc2V0bachelor();
39 AliAnalysisTaskSELc2V0bachelor(const Char_t* name, AliRDHFCutsLctoV0* cutsA, AliRDHFCutsLctoV0* cutsB);
40 virtual ~AliAnalysisTaskSELc2V0bachelor();
42 // Implementation of interface methods
43 virtual void UserCreateOutputObjects();
45 virtual void LocalInit() {Init();}
46 virtual void UserExec(Option_t *option);
47 virtual void Terminate(Option_t *option);
50 void FillLc2pK0Sspectrum(AliAODRecoCascadeHF *part, Int_t isLc,
51 Int_t &nSelectedProd, AliRDHFCutsLctoV0 *cutsProd,
52 Int_t &nSelectedAnal, AliRDHFCutsLctoV0 *cutsAnal);
54 void DefineHistograms();
55 Int_t CheckOrigin(TClonesArray* arrayMC, AliAODMCParticle *mcPartCandidate) const;
57 void MakeAnalysisForLc2prK0S(AliAODVertex * vtx1,
58 TClonesArray *arrayLctopK0s,
59 TClonesArray *mcArray,
60 Int_t &nSelectedProd, AliRDHFCutsLctoV0 *cutsProd,
61 Int_t &nSelectedAnal, AliRDHFCutsLctoV0 *cutsAnal);
63 Int_t MatchToMC(AliAODRecoCascadeHF *lc2bacV0,
64 Int_t *pdgDgLc2bacV0, Int_t *pdgDgV0,
65 TClonesArray *mcArray);
67 void SearchLcDaughter(TClonesArray *arrayMC);
69 void DefineK0SHistos();
72 void SetMC(Bool_t theMCon) {fUseMCInfo = theMCon;}
73 Bool_t GetMC() const {return fUseMCInfo;}
75 void FillArmPodDistribution(AliAODv0 *vZero, TString histoTitle, TList *histoList);
77 void SetK0sAnalysis(Bool_t a) {fIsK0sAnalysis=a;}
78 Bool_t GetK0sAnalysis() const {return fIsK0sAnalysis;}
83 AliAnalysisTaskSELc2V0bachelor(const AliAnalysisTaskSELc2V0bachelor &source);
84 AliAnalysisTaskSELc2V0bachelor& operator=(const AliAnalysisTaskSELc2V0bachelor& source);
86 Bool_t fUseMCInfo; // Use MC info
87 TList *fOutput; // User output1 // general histos
88 TList *fOutputAll; // User output2 // histos without pid and cut on V0
89 TList *fOutputPIDBach; // User output3 // histos with PId on Bachelor
91 // define the histograms
92 TH1F *fCEvents; // Histogram to check selected events
93 AliPIDResponse *fPIDResponse; //! PID response object
94 Bool_t fIsK0sAnalysis; // switch between Lpi and K0sp
95 AliNormalizationCounter *fCounter; // AliNormalizationCounter on output slot 4
96 AliRDHFCutsLctoV0 *fProdCuts; // Cuts - sent to output slot 5
97 AliRDHFCutsLctoV0 *fAnalCuts; // Cuts - sent to output slot 5
98 TList *fListCuts; // list of cuts
100 ClassDef(AliAnalysisTaskSELc2V0bachelor,1); // class for Lc->p K0