]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/SPECTRA/AliAnalysisTaskSEITSsaSpectra.h
Updated impact parameter resolution for 2010 tracks (L. Milano)
[u/mrichter/AliRoot.git] / PWG2 / SPECTRA / AliAnalysisTaskSEITSsaSpectra.h
index 2f5ed4539c572103f7df788fdee402575282a66b..baf8334be94b55bf7f4c2776f7d89a93e981b7e2 100644 (file)
@@ -12,6 +12,8 @@
 // F. Prino, prino@to.infn.it
 ///////////////////////////////////////////////////////////////////////////
 
+/* $Id$ */
+
 class TString;
 class TTree;
 class TH1F;
@@ -31,13 +33,13 @@ class AliAnalysisTaskSEITSsaSpectra : public AliAnalysisTaskSE {
   virtual void   UserExec(Option_t *);
   virtual void   Terminate(Option_t *);
 
-  void SetMaxChi2Clu(Double_t chi=1.){
+  void SetMaxChi2Clu(Double_t chi=2.5){
     fMaxChi2Clu=chi;
   }
   void SetRapidityRange(Double_t dy=0.5){
     fMaxY=dy;
   }
-  void SetMinNSigma(Double_t ns=3.){
+  void SetMinNSigma(Double_t ns=1.5){
     fMinNSigma=ns;
   }
   void SetMindEdx(Double_t mind=0.){
@@ -53,7 +55,12 @@ class AliAnalysisTaskSEITSsaSpectra : public AliAnalysisTaskSE {
     fNSigmaDCAxy=nsxy;
     fNSigmaDCAz=nsz; 
   }
+  void SetMultBin(Int_t LowBin=0,Int_t UpBin=9999){
+    fLowMult=LowBin;
+    fUpMult=UpBin;
+  }
 
+  void SetYear(Int_t year){fYear=year;}
   void SetReadMC(Bool_t flag = kTRUE) {fMC = flag;}
   void SetFillNtuple(Bool_t fill=kTRUE) {fFillNtuple=fill;}
   void SetSmearMC(Double_t smearp, Double_t smeardedx){
@@ -75,7 +82,10 @@ class AliAnalysisTaskSEITSsaSpectra : public AliAnalysisTaskSE {
   AliESDEvent *fESD; //ESD object
   TList *fOutput; //! tlist with output
   TH1F *fHistNEvents; //! histo with number of events
+  TH1F *fHistMult; //! histo with multiplicity of the events
   TH1F *fHistNTracks; //! histo with number of tracks
+  TH1F *fHistNTracksPos; //! histo with number of tracks
+  TH1F *fHistNTracksNeg; //! histo with number of tracks
   
   TH2F *fHistDEDX; //! histo with dedx versus momentum
   TH2F *fHistDEDXdouble; //! histo with dedx versus signed momentum
@@ -111,7 +121,7 @@ class AliAnalysisTaskSEITSsaSpectra : public AliAnalysisTaskSE {
   TH1F *fHistNegK[kNbins]; //! histo with dedx distibution in the kaons hypotesis (negative)
   TH1F *fHistNegP[kNbins]; //! histo with dedx distibution in the protons hypotesis (negative)
   
-  TH1F *fHistDCAPosPi[kNbins]; //! histo with DCA distibution in the pions hypotesis (positive)
+  TH1F *fHistDCAPosPi[kNbins]; //! histo with DCA distibution in the kaons hypotesis (positive)
   TH1F *fHistDCAPosK[kNbins]; //! histo with DCA distibution in the kaons hypotesis (positive)
   TH1F *fHistDCAPosP[kNbins]; //! histo with DCA distibution in the protons hypotesis (positive)
   TH1F *fHistDCANegPi[kNbins]; //! histo with DCA distibution in the pions hypotesis (negative)
@@ -173,17 +183,19 @@ class AliAnalysisTaskSEITSsaSpectra : public AliAnalysisTaskSE {
   Double_t fMaxChi2Clu;      // maximum cluster
   Double_t fNSigmaDCAxy;     // DCA cut in bend. plane
   Double_t fNSigmaDCAz;      // DCA cut along z
-
+  Int_t fLowMult;      // Multiplicity bin
+  Int_t fUpMult;      // Multiplicity bin
+  Int_t fYear;        // Year (2009, 2010)
   Bool_t   fMC;        //flag to switch on the MC analysis for the efficiency estimation
   Bool_t   fSmearMC;   // flag to apply extra smearing on MC 
   Double_t fSmearP;    // extra relative smearing on simulated momentum
   Double_t fSmeardEdx; // extra relative smearing on simulated dE/dx
-  TRandom3* fRandGener;    // generator for smaring
+  TRandom3* fRandGener;    // generator for smearing
   Bool_t       fFillNtuple;      // fill ntuple  
   TNtuple     *fNtupleNSigma;//! output ntuple
   TNtuple     *fNtupleMC;//! output MC ntuple
   
-  ClassDef(AliAnalysisTaskSEITSsaSpectra, 1);
+  ClassDef(AliAnalysisTaskSEITSsaSpectra, 2);
 };
 
 #endif