]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGCF/EBYE/BalanceFunctions/AliAnalysisTaskEventMixingBF.h
Split: removed dirs now in AliPhysics
[u/mrichter/AliRoot.git] / PWGCF / EBYE / BalanceFunctions / AliAnalysisTaskEventMixingBF.h
diff --git a/PWGCF/EBYE/BalanceFunctions/AliAnalysisTaskEventMixingBF.h b/PWGCF/EBYE/BalanceFunctions/AliAnalysisTaskEventMixingBF.h
deleted file mode 100755 (executable)
index f806fbd..0000000
+++ /dev/null
@@ -1,243 +0,0 @@
-#ifndef ALIANALYSISTASKEVENTMIXINGBF_CXX
-#define ALIANALYSISTASKEVENTMIXINGBF_CXX
-
-// Analysis task for the EventMixingBF code
-// Authors: Panos Cristakoglou@cern.ch, m.weber@cern.ch
-
-class TList;
-class TH1F;
-class TH2F;
-class TF1;
-
-class AliMixInputEventHandler;
-class AliBalanceEventMixing;
-class AliESDtrackCuts;
-
-#include "AliAnalysisTaskSE.h"
-#include "AliBalanceEventMixing.h"
-
-#include "AliPID.h"  
-#include "AliPIDResponse.h"
-#include "AliPIDCombined.h"
-
-class AliAnalysisTaskEventMixingBF : public AliAnalysisTaskSE {
- public:
-  AliAnalysisTaskEventMixingBF(const char *name = "AliAnalysisTaskEventMixingBF");
-  virtual ~AliAnalysisTaskEventMixingBF(); 
-  
-  
-  virtual void   UserCreateOutputObjects();
-  virtual void   UserExec(Option_t *option);
-  virtual void   UserExecMix(Option_t*);
-  virtual void   FinishTaskOutput();
-  virtual void   Terminate(Option_t *);
-
-  void SetAnalysisObject(AliBalanceEventMixing *const analysis) {
-    fBalance         = analysis;
-    }
-  void SetShufflingObject(AliBalanceEventMixing *const analysisShuffled) {
-    fRunShuffling = kTRUE;
-    fShuffledBalance = analysisShuffled;
-  }
-  void SetAnalysisCutObject(AliESDtrackCuts *const trackCuts) {
-    fESDtrackCuts = trackCuts;}
-  void SetVertexDiamond(Double_t vx, Double_t vy, Double_t vz) {
-    fVxMax = vx;
-    fVyMax = vy;
-    fVzMax = vz;
-  }
-
-  //==============AOD analysis==============//
-  void SetAODtrackCutBit(Int_t bit){
-    nAODtrackCutBit = bit;
-  }
-
-  void SetKinematicsCutsAOD(Double_t ptmin, Double_t ptmax, Double_t etamin, Double_t etamax){
-    fPtMin  = ptmin;  fPtMax  = ptmax;
-    fEtaMin = etamin; fEtaMax = etamax;
-
-  }
-
-  void SetExtraDCACutsAOD(Double_t DCAxy, Double_t DCAz){
-    fDCAxyCut  = DCAxy;
-    fDCAzCut = DCAz;
-  }
-
-   void SetExtraTPCCutsAOD(Double_t maxTPCchi2, Int_t minNClustersTPC){
-    fTPCchi2Cut      = maxTPCchi2;
-    fNClustersTPCCut = minNClustersTPC;
-  }
-
-  //==============MC analysis==============//
-  void SetKinematicsCutsMC(Double_t ptmin, Double_t ptmax,
-                           Double_t etamin, Double_t etamax){
-    fPtMin  = ptmin; fPtMax  = ptmax;
-    fEtaMin = etamin; fEtaMax = etamax;
-  }
-  void UseFlowAfterBurner(TF1 *gDifferentialV2) {
-    fDifferentialV2 = gDifferentialV2;
-    fUseFlowAfterBurner = kTRUE;
-  }
-  void ExcludeResonancesInMC() {fExcludeResonancesInMC = kTRUE;}
-
-  void SetPDGCode(Int_t gPdgCode) {
-    fUseMCPdgCode = kTRUE;
-    fPDGCodeToBeAnalyzed = gPdgCode;
-  }
-
-  //Centrality
-  void SetCentralityEstimator(const char* centralityEstimator) {fCentralityEstimator = centralityEstimator;}
-  const char* GetCentralityEstimator(void)    const            {return fCentralityEstimator;}
-  void SetCentralityPercentileRange(Double_t min, Double_t max) { 
-    fUseCentrality = kTRUE;
-    fCentralityPercentileMin=min;
-    fCentralityPercentileMax=max;
-  }
-  void SetImpactParameterRange(Double_t min, Double_t max) { 
-    fUseCentrality = kTRUE;
-    fImpactParameterMin=min;
-    fImpactParameterMax=max;
-  }
-
-  //multiplicity
-  void SetMultiplicityRange(Int_t min, Int_t max) {
-    fUseMultiplicity = kTRUE;
-    fNumberOfAcceptedTracksMin = min;
-    fNumberOfAcceptedTracksMax = max;}
-  
-  void UseOfflineTrigger() {fUseOfflineTrigger = kTRUE;}
-  
-  //Acceptance filter
-  void SetAcceptanceParameterization(TF1 *parameterization) {
-    fAcceptanceParameterization = parameterization;}
-
-  //pid
-  enum kDetectorUsedForPID { kTPCpid, kTOFpid, kTPCTOF }; // default TPC & TOF pid (via GetTPCpid & GetTOFpid)  
-  enum kParticleOfInterest { kMuon, kElectron, kPion, kKaon, kProton };  
-
-  void SetUseBayesianPID(Double_t gMinProbabilityValue) {
-    fUsePID = kTRUE; fUsePIDnSigma = kFALSE; fUsePIDPropabilities = kTRUE;
-    fMinAcceptedPIDProbability = gMinProbabilityValue; }
-
-  void SetUseNSigmaPID(Double_t gMaxNSigma) {
-    fUsePID = kTRUE; fUsePIDPropabilities = kFALSE; fUsePIDnSigma = kTRUE;
-    fPIDNSigma = gMaxNSigma; }
-
-  void SetParticleOfInterest(kParticleOfInterest poi) {
-    fParticleOfInterest = poi;}
-  void SetDetectorUsedForPID(kDetectorUsedForPID detConfig) {
-    fPidDetectorConfig = detConfig;}
-
- private:
-  AliBalanceEventMixing *fBalance; //EventMixingBF object
-  Bool_t fRunShuffling;//run shuffling or not
-  AliBalanceEventMixing *fShuffledBalance; //EventMixingBF object (shuffled)
-  TList *fList; //fList object
-  TList *fListEventMixingBF; //fList object
-  TList *fListEventMixingBFS; //fList object
-  TList *fHistListPIDQA;  //! list of histograms
-
-  TH1F *fHistEventStats; //event stats
-  TH2F *fHistCentStats; //centrality stats
-  TH1F *fHistTriggerStats; //trigger stats
-  TH1F *fHistTrackStats; //Track filter bit stats
-  TH1F *fHistVx; //x coordinate of the primary vertex
-  TH1F *fHistVy; //y coordinate of the primary vertex
-  TH1F *fHistVz; //z coordinate of the primary vertex
-
-  TH2F *fHistClus;//number of clusters (QA histogram)
-  TH2F *fHistDCA;//DCA  (QA histogram)
-  TH1F *fHistChi2;//track chi2 (QA histogram)
-  TH1F *fHistPt;//transverse momentum (QA histogram)
-  TH1F *fHistEta;//pseudorapidity (QA histogram)
-  TH1F *fHistPhi;//phi (QA histogram)
-  TH1F *fHistPhiBefore;//phi before v2 afterburner (QA histogram)
-  TH1F *fHistPhiAfter;//phi after v2 afterburner (QA histogram)
-  TH2F *fHistV0M;//V0 multiplicities (QA histogram)
-  TH2F *fHistRefTracks;//reference track multiplicities (QA histogram)
-
-  //============PID============//
-  TH2D *fHistdEdxVsPTPCbeforePID;//TPC dEdx vs momentum before PID cuts (QA histogram)
-  TH2D *fHistBetavsPTOFbeforePID;//beta vs momentum before PID cuts (QA histogram)
-  TH2D *fHistProbTPCvsPtbeforePID; //TPC probability vs pT before PID cuts (QA histogram)
-  TH2D *fHistProbTOFvsPtbeforePID;//TOF probability vs pT before PID cuts (QA histogram)
-  TH2D *fHistProbTPCTOFvsPtbeforePID;//TOF/TPC probability vs pT before PID cuts (QA histogram)
-  TH2D *fHistNSigmaTPCvsPtbeforePID;//TPC nsigma vs pT before PID cuts (QA histogram)
-  TH2D *fHistNSigmaTOFvsPtbeforePID;//TOF nsigma vs pT before PID cuts (QA histogram)
-  TH2D *fHistdEdxVsPTPCafterPID;//TPC dEdx vs momentum after PID cuts (QA histogram)
-  TH2D *fHistBetavsPTOFafterPID;//beta vs momentum after PID cuts (QA histogram)
-  TH2D *fHistProbTPCvsPtafterPID; //TPC probability vs pT after PID cuts (QA histogram)
-  TH2D *fHistProbTOFvsPtafterPID;//TOF probability vs pT after PID cuts (QA histogram)
-  TH2D *fHistProbTPCTOFvsPtafterPID;//TOF/TPC probability vs pT after PID cuts (QA histogram)
-  TH2D *fHistNSigmaTPCvsPtafterPID;//TPC nsigma vs pT after PID cuts (QA histogram)
-  TH2D *fHistNSigmaTOFvsPtafterPID;//TOF nsigma vs pT after PID cuts (QA histogram)
-
-  AliPIDResponse *fPIDResponse;     //! PID response object
-  AliPIDCombined       *fPIDCombined;     //! combined PID object
-  
-  kParticleOfInterest  fParticleOfInterest;//analyzed particle
-  kDetectorUsedForPID   fPidDetectorConfig;//used detector for PID
-
-  Bool_t fUsePID; //flag to use PID 
-  Bool_t fUsePIDnSigma;//flag to use nsigma method for PID
-  Bool_t fUsePIDPropabilities;//flag to use probability method for PID
-  Double_t fPIDNSigma;//nsigma cut for PID
-  Double_t fMinAcceptedPIDProbability;//probability cut for PID
-  //============PID============//
-
-  AliESDtrackCuts *fESDtrackCuts; //ESD track cuts
-
-  TString fCentralityEstimator;      //"V0M","TRK","TKL","ZDC","FMD"
-  Bool_t fUseCentrality;//use the centrality (PbPb) or not (pp)
-  Double_t fCentralityPercentileMin;//centrality percentile min
-  Double_t fCentralityPercentileMax;//centrality percentile max
-  Double_t fImpactParameterMin;//impact parameter min (used for MC)
-  Double_t fImpactParameterMax;//impact parameter max (used for MC)
-
-  Bool_t fUseMultiplicity;//use the multiplicity cuts
-  Int_t fNumberOfAcceptedTracksMin;//min. number of number of accepted tracks (used for the multiplicity dependence study - pp)
-  Int_t fNumberOfAcceptedTracksMax;//max. number of number of accepted tracks (used for the multiplicity dependence study - pp)
-  TH1F *fHistNumberOfAcceptedTracks;//hisot to store the number of accepted tracks
-
-  Bool_t fUseOfflineTrigger;//Usage of the offline trigger selection
-
-  Double_t fVxMax;//vxmax
-  Double_t fVyMax;//vymax
-  Double_t fVzMax;//vzmax
-
-  Int_t nAODtrackCutBit;//track cut bit from track selection (only used for AODs)
-
-  Double_t fPtMin;//only used for AODs
-  Double_t fPtMax;//only used for AODs
-  Double_t fEtaMin;//only used for AODs
-  Double_t fEtaMax;//only used for AODs
-
-  Double_t fDCAxyCut;//only used for AODs
-  Double_t fDCAzCut;//only used for AODs
-
-  Double_t fTPCchi2Cut;//only used for AODs
-  Int_t fNClustersTPCCut;//only used for AODs
-
-  TF1 *fAcceptanceParameterization;//acceptance filter used for MC
-
-  TF1 *fDifferentialV2;//pt-differential v2 (from real data)
-  Bool_t fUseFlowAfterBurner;//Usage of a flow after burner
-
-  Bool_t fExcludeResonancesInMC;//flag to exclude the resonances' decay products from the MC analysis
-  Bool_t fUseMCPdgCode; //Boolean to analyze a set of particles in MC
-  Int_t fPDGCodeToBeAnalyzed; //Analyze a set of particles in MC
-
-  // Event Mixing
-  AliVEvent       *fMainEvent;//main event in the event mixing loop
-  AliVEvent       *fMixEvent;//second event in the event mixing loop
-
-  AliMixInputEventHandler *SetupEventsForMixing();  
-
-  AliAnalysisTaskEventMixingBF(const AliAnalysisTaskEventMixingBF&); // not implemented
-  AliAnalysisTaskEventMixingBF& operator=(const AliAnalysisTaskEventMixingBF&); // not implemented
-  
-  ClassDef(AliAnalysisTaskEventMixingBF, 1); // example of analysis
-};
-
-#endif