updated macros for kaon femtoscopy train
authormaszyman <maszyman@cern.ch>
Thu, 18 Dec 2014 07:16:03 +0000 (08:16 +0100)
committermaszyman <maszyman@cern.ch>
Thu, 18 Dec 2014 07:16:03 +0000 (08:16 +0100)
PWGCF/FEMTOSCOPY/macros/Train/KchKch_purity_test/AddTaskFemtoKchHBT0005.C [new file with mode: 0644]
PWGCF/FEMTOSCOPY/macros/Train/KchKch_purity_test/AddTaskFemtoKchHBT0010.C
PWGCF/FEMTOSCOPY/macros/Train/KchKch_purity_test/PbPb2011/0005/ConfigFemtoAnalysis.C [new file with mode: 0644]
PWGCF/FEMTOSCOPY/macros/Train/KchKch_purity_test/PbPb2011/0010/ConfigFemtoAnalysis.C
PWGCF/FEMTOSCOPY/macros/Train/KchKch_purity_test/PbPb2011/1090/ConfigFemtoAnalysis.C

diff --git a/PWGCF/FEMTOSCOPY/macros/Train/KchKch_purity_test/AddTaskFemtoKchHBT0005.C b/PWGCF/FEMTOSCOPY/macros/Train/KchKch_purity_test/AddTaskFemtoKchHBT0005.C
new file mode 100644 (file)
index 0000000..1c0840b
--- /dev/null
@@ -0,0 +1,81 @@
+//=============================================================================
+//
+// *** AddTaskFemto.C ***
+// ---train version ---
+// This macro initialize a complete AnalysisTask object for femtoscopy.
+// from:
+// alicepc100/cern/users/erogocha/PbPb2.76/2011/AOD115_0-10_newPID/to_alien_newtag/AddTaskFemto.C
+// ---modified to train---
+//  KM: March 25, 2013
+//=============================================================================
+
+//this line for local: AliAnalysisTaskFemto *AddTaskFemtoKchHBT(const char *configMacroName="ConfigFemtoAnalysis.C", const char *configMacroParameters="" )
+
+AliAnalysisTaskFemto *AddTaskFemtoKchHBT0010(TString configMacroName, const char *containerName="lmlist005", const char *configMacroParameters="" )
+{
+// Creates a proton analysis task and adds it to the analysis manager.
+  
+  // A. Get the pointer to the existing analysis manager via the static access method.
+  //==============================================================================
+  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
+  if (!mgr) {
+    Error("AddTaskFemto", "No analysis manager to connect to.");
+    return NULL;
+  }  
+
+  // B. Check the analysis type using the event handlers connected to the analysis
+  //    manager. The availability of MC handler cann also be checked here.
+  //==============================================================================
+  if (!mgr->GetInputEventHandler()) {
+    ::Error("AddTaskFemto", "This task requires an input event handler");
+    return NULL;
+  }  
+  TString type = mgr->GetInputEventHandler()->GetDataType(); // can be "ESD" or "AOD"
+  cout << "Found " <<type << " event handler" << endl;
+
+  // C. Create the task, add it to manager.
+  //===========================================================================
+//  gSystem->SetIncludePath("-I$ROOTSYS/include  -I./PWG2AOD/AOD -I./PWG2femtoscopy/FEMTOSCOPY/AliFemto -I./PWG2femtoscopyUser/FEMTOSCOPY/AliFemtoUser -I$ALICE_ROOT/include");
+
+  if (TProofMgr::GetListOfManagers()->GetEntries()) {
+//     if (dynamic_cast<TProofLite *> gProof) {
+//       char *macrocommand[10000];
+//       sprintf(macrocommand, ".L %s", configMacroName);
+//       gProof->Exec(macrocommand);
+//     }
+//     else
+    gProof->Load(configMacroName);
+  }  
+  //  gROOT->LoadMacro("ConfigFemtoAnalysis.C++");
+
+  //was befere aliroot 5.04.33: AliAnalysisTaskFemto *taskfemto = new AliAnalysisTaskFemto("TaskFemto",configMacroName);
+  //  AliAnalysisTaskFemto *taskfemto = new AliAnalysisTaskFemto("TaskFemto",configMacroName,kFALSE);
+  //March 2013:
+  //to check localy before new tag I did symbolic link on my laplot
+  //in $ALICE_ROOT/PWGCF/FEMTOSCOPY/macros/Train/
+  //[root@alicethinks Train]# ln -s /scratch/AliWork/PbPb2.76/Train2013/KchHBT KchHBT
+  //
+  AliAnalysisTaskFemto *taskfemto = new AliAnalysisTaskFemto("TaskFemto","$ALICE_ROOT/"+configMacroName,configMacroParameters,kFALSE);
+  //taskfemto->SelectCollisionCandidates(AliVEvent::kCentral );// this a new line for train
+  taskfemto->SelectCollisionCandidates(AliVEvent::kMB | AliVEvent::kCentral);
+  mgr->AddTask(taskfemto);
+
+  // D. Configure the analysis task. Extra parameters can be used via optional
+  // arguments of the AddTaskXXX() function.
+  //===========================================================================
+  
+  // E. Create ONLY the output containers for the data produced by the task.
+  // Get and connect other common input/output containers via the manager as below
+  //==============================================================================
+  TString outputfile = AliAnalysisManager::GetCommonFileName();  
+  outputfile += ":PWG2FEMTO";
+  AliAnalysisDataContainer *cout_femto  = mgr->CreateContainer("lmlist005",  TList::Class(),
+                                                              AliAnalysisManager::kOutputContainer,outputfile);
+
+
+   mgr->ConnectInput(taskfemto, 0, mgr->GetCommonInputContainer());
+   mgr->ConnectOutput(taskfemto, 0, cout_femto);
+
+   // Return task pointer at the end
+   return taskfemto;
+}
index d83d3cc..322c032 100644 (file)
@@ -11,7 +11,7 @@
 
 //this line for local: AliAnalysisTaskFemto *AddTaskFemtoKchHBT(const char *configMacroName="ConfigFemtoAnalysis.C", const char *configMacroParameters="" )
 
-AliAnalysisTaskFemto *AddTaskFemtoKchHBT0010(TString configMacroName, const char *containerName="lmlist005", const char *configMacroParameters="" )
+AliAnalysisTaskFemto *AddTaskFemtoKchHBT0010(TString configMacroName, const char *containerName="lmlist010", const char *configMacroParameters="" )
 {
 // Creates a proton analysis task and adds it to the analysis manager.
   
diff --git a/PWGCF/FEMTOSCOPY/macros/Train/KchKch_purity_test/PbPb2011/0005/ConfigFemtoAnalysis.C b/PWGCF/FEMTOSCOPY/macros/Train/KchKch_purity_test/PbPb2011/0005/ConfigFemtoAnalysis.C
new file mode 100644 (file)
index 0000000..7d87f83
--- /dev/null
@@ -0,0 +1,456 @@
+/********************************************************************* 
+ *                                                                   * 
+ * ConfigFemtoAnalysis.C - configuration macro for the femtoscopic   * 
+ * analysis, meant as a QA process for two-particle effects          * 
+ *                                                                   * 
+ * Author: Adam Kisiel (Adam.Kisiel@cern.ch)                         * 
+ *                                                                   * 
+ *********************************************************************/ 
+#if !defined(__CINT__) || defined(__MAKECINT_) 
+#include "AliFemtoManager.h" 
+#include "AliFemtoEventReaderESDChain.h" 
+#include "AliFemtoEventReaderESDChainKine.h" 
+#include "AliFemtoEventReaderAODChain.h" 
+#include "AliFemtoSimpleAnalysis.h" 
+#include "AliFemtoBasicEventCut.h" 
+#include "AliFemtoESDTrackCut.h" 
+#include "AliFemtoKKTrackCut.h"
+#include "AliFemtoCorrFctn.h"
+#include "AliFemtoCutMonitorParticleYPt.h"
+#include "AliFemtoCutMonitorParticleVertPos.h"
+#include "AliFemtoCutMonitorParticleMomRes.h"
+#include "AliFemtoCutMonitorParticlePID.h"
+#include "AliFemtoCutMonitorEventMult.h"
+#include "AliFemtoCutMonitorEventVertex.h"
+#include "AliFemtoShareQualityTPCEntranceSepPairCut.h"
+#include "AliFemtoPairCutAntiGamma.h"
+#include "AliFemtoPairCutRadialDistance.h"
+#include "AliFemtoPairCutRadialDistanceKK.h"
+#include "AliFemtoQinvCorrFctn.h"
+#include "AliFemtoShareQualityCorrFctn.h"
+#include "AliFemtoTPCInnerCorrFctn.h"
+#include "AliFemtoVertexMultAnalysis.h"
+#include "AliFemtoCorrFctn3DSpherical.h"
+#include "AliFemtoChi2CorrFctn.h"
+#include "AliFemtoCorrFctnTPCNcls.h"
+#include "AliFemtoBPLCMS3DCorrFctn.h"
+#include "AliFemtoCorrFctn3DLCMSSym.h"
+#include "AliFemtoModelBPLCMSCorrFctn.h"
+#include "AliFemtoModelCorrFctn3DSpherical.h"
+#include "AliFemtoModelGausLCMSFreezeOutGenerator.h"
+#include "AliFemtoModelGausRinvFreezeOutGenerator.h"
+#include "AliFemtoModelManager.h"
+#include "AliFemtoModelWeightGeneratorBasic.h"
+#include "AliFemtoModelWeightGeneratorLednicky.h"
+#include "AliFemtoCorrFctnDirectYlm.h"
+#include "AliFemtoModelCorrFctnDirectYlm.h"
+#include "AliFemtoModelCorrFctnSource.h"
+#include "AliFemtoKTPairCut.h"
+#endif
+
+//________________________________________________________________________
+AliFemtoManager* ConfigFemtoAnalysis() {
+
+  double PionMass = 0.13956995;
+  double KaonMass = 0.493677;
+  const int cMu=1;
+  const int cKt=3;
+
+  //-------Single track cuts------------------------------------------------->
+  double DCAxy=2.4;//cm // our standard is 0.20 cm; super narrow was 0.015cm
+  double DCAz =3.0;//cm // our standard is 0.15 cm;
+  //-------Single track cuts-------------------------------------------------<
+  //=======Double track cuts=================================================>
+  //Dhevan's : PhiStarDifferenceMinimum=0.06; EtaDifferenceMinimum=0.02;
+  //standart
+  //double PhiStarDifferenceMinimum=0.017; //[radian]
+ // double EtaDifferenceMinimum=0.015; //[radian]
+ //for test
+   //double PhiStarDifferenceMinimum=0.03; //[radian]
+ // double EtaDifferenceMinimum=0.02; //[radian]
+   double PhiStarDifferenceMinimum=0.04; //[radian]
+   double EtaDifferenceMinimum=0.02; //[radian]
+  
+  
+  
+  //=======Double track cuts=================================================<
+
+  // Switches for QA analyses
+  int runmults[4] = {1, 0, 0, 0};
+  int multbins[5] = {0, 50, 300, 500, 900};
+
+  //.................................................
+
+  int runch[2] = {1, 1};
+  const char *chrgs[2] = { "Kp", "Km"};
+  
+  
+  int runktdep = 1;
+//YS  double ktrng[cKt+1] = {0.2, 0.36, 0.48, 0.6, 1.0, 1.5};
+  double ktrng[cKt+1] = {0.2, 0.4, 0.6, 1.5};
+
+// double ktrng[8] = {0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 2.0};
+
+  int run3d = 1;
+  int runshlcms = 0;
+
+  int runtype = 2; // Types 0 - global, 1 - ITS only, 2 - TPC Inner
+  int isrealdata = 1;
+
+  //   AliFemtoEventReaderESDChainKine* Reader=new AliFemtoEventReaderESDChainKine();
+  //   Reader->SetConstrained(true);
+  //   Reader->SetUseTPCOnly(false);
+
+  double shqmax;
+  double shqmaxSH;
+  int nbinssh = 100;
+
+//ml  if (runshlcms) shqmax = 0.25;
+//  else shqmax = 0.9;
+  
+
+  if (runshlcms) shqmaxSH = 0.25;
+  shqmax = 0.9;
+  
+
+  // AliFemtoEventReaderESDChain* Reader=new AliFemtoEventReaderESDChain();
+  // Reader->SetConstrained(true);
+  // Reader->SetUseTPCOnly(false);
+  // Reader->SetReadTPCInner(false);
+  // Reader->SetUseMultiplicity(AliFemtoEventReaderESDChain::kV0Centrality);
+
+  // if (runtype == 0)
+  //   Reader->SetReadTrackType(AliFemtoEventReaderESDChain::kGlobal);
+  // else if (runtype == 1)
+  //   Reader->SetReadTrackType(AliFemtoEventReaderESDChain::kITSOnly);
+  // else if (runtype == 2)
+  //   Reader->SetReadTrackType(AliFemtoEventReaderESDChain::kTPCOnly);
+  // if (isrealdata)
+  //   Reader->SetUsePhysicsSelection(kTRUE);
+  // else
+  //   Reader->SetUsePhysicsSelection(kFALSE);
+
+  // Reader->SetUseMultiplicity(AliFemtoEventReaderESDChain::kV0Centrality);
+
+  AliFemtoEventReaderAODChain *Reader = new AliFemtoEventReaderAODChain();
+    Reader->SetFilterBit(7);
+    Reader->SetCentralityPreSelection(0, 50);
+    Reader->SetDCAglobalTrack(kTRUE);//option the DCA information from global tracks (ITS+TPC)
+    
+  AliFemtoManager* Manager=new AliFemtoManager();
+  Manager->SetEventReader(Reader);
+
+  AliFemtoVertexMultAnalysis    *anetaphitpc[20];
+  AliFemtoBasicEventCut         *mecetaphitpc[20];
+  AliFemtoCutMonitorEventMult   *cutPassEvMetaphitpc[20];
+  AliFemtoCutMonitorEventMult   *cutFailEvMetaphitpc[20];
+  AliFemtoCutMonitorEventVertex *cutPassEvVetaphitpc[20];
+  AliFemtoCutMonitorEventVertex *cutFailEvVetaphitpc[20];
+  AliFemtoKKTrackCut           *dtc1etaphitpc[20];
+  AliFemtoKKTrackCut           *dtc2etaphitpc[20];
+//  AliFemtoESDTrackCut           *dtc1etaphitpc[20];
+//  AliFemtoESDTrackCut           *dtc2etaphitpc[20];
+  AliFemtoCutMonitorParticleYPt *cutPass1YPtetaphitpc[20];
+  AliFemtoCutMonitorParticleYPt *cutFail1YPtetaphitpc[20];
+  AliFemtoCutMonitorParticlePID *cutPass1PIDetaphitpc[20];
+  AliFemtoCutMonitorParticlePID *cutFail1PIDetaphitpc[20];
+  AliFemtoCutMonitorParticleYPt *cutPass2YPtetaphitpc[20];
+  AliFemtoCutMonitorParticleYPt *cutFail2YPtetaphitpc[20];
+  AliFemtoCutMonitorParticlePID *cutPass2PIDetaphitpc[20];
+  AliFemtoCutMonitorParticlePID *cutFail2PIDetaphitpc[20];
+//AliFemtoPairCutAntiGamma      *sqpcetaphitpc[20];
+//    AliFemtoShareQualityTPCEntranceSepPairCut      *sqpcetaphitpc[20];
+  //AliFemtoPairCutRadialDistance      *sqpcetaphitpc[20];//AliFemto dphi* cut
+  AliFemtoPairCutRadialDistanceKK      *sqpcetaphitpc[20];//Dhevan's dphi* cut
+  AliFemtoCorrFctnDirectYlm     *cylmetaphitpc[20];
+  AliFemtoCorrFctnDEtaDPhi      *cdedpetaphi[20*10];//20->20*10 due to kT
+  AliFemtoChi2CorrFctn          *cchiqinvetaphitpc[20];
+  AliFemtoKTPairCut             *ktpcuts[20*8];
+  AliFemtoCorrFctnDirectYlm     *cylmkttpc[20*8];
+  AliFemtoQinvCorrFctn          *cqinvkttpc[20*8];
+ // AliFemtoCorrFctn3DLCMSSym     *cq3dlcmskttpc[20*8];
+  AliFemtoBPLCMS3DCorrFctn  *cq3dlcmskttpc[20*8];
+  AliFemtoCorrFctnTPCNcls       *cqinvnclstpc[20];
+  AliFemtoShareQualityCorrFctn  *cqinvsqtpc[20*10];
+  AliFemtoChi2CorrFctn          *cqinvchi2tpc[20];
+  AliFemtoTPCInnerCorrFctn      *cqinvinnertpc[20*10];
+
+  // *** Third QA task - HBT analysis with all pair cuts off, TPC only ***
+  // *** Begin Kaon-Kaon (positive) analysis ***
+  int aniter = 0;
+
+  for (int imult=0; imult<cMu/*4*/; imult++) {
+    if (runmults[imult]) {
+      for (int ichg=0; ichg<2; ichg++) {
+       if (runch[ichg]) {
+         aniter = ichg*5+imult;
+
+         anetaphitpc[aniter] = new AliFemtoVertexMultAnalysis(4, -8.0, 8.0, 5, multbins[imult], multbins[imult+1]);
+         anetaphitpc[aniter]->SetNumEventsToMix(3);
+         anetaphitpc[aniter]->SetMinSizePartCollection(1);
+
+         mecetaphitpc[aniter] = new AliFemtoBasicEventCut();
+         mecetaphitpc[aniter]->SetEventMult(0,100000);
+         mecetaphitpc[aniter]->SetVertZPos(-8.0,8.0);
+         /* //was in aliroot 5.03.76
+         if (isrealdata)
+            mecetaphitpc[aniter]->SetAcceptOnlyPhysics(kTRUE);
+         */
+         //    mecetaphitpc->SetAcceptBadVertex(kTRUE);
+         
+         cutPassEvMetaphitpc[aniter] = new AliFemtoCutMonitorEventMult(Form("cutPass%stpcM%i", chrgs[ichg], imult));
+         cutFailEvMetaphitpc[aniter] = new AliFemtoCutMonitorEventMult(Form("cutFail%stpcM%i", chrgs[ichg], imult));
+         mecetaphitpc[aniter]->AddCutMonitor(cutPassEvMetaphitpc[aniter], cutFailEvMetaphitpc[aniter]);
+         
+         cutPassEvVetaphitpc[aniter] = new AliFemtoCutMonitorEventVertex(Form("cutPass%stpcM%i", chrgs[ichg], imult));
+         cutFailEvVetaphitpc[aniter] = new AliFemtoCutMonitorEventVertex(Form("cutFail%stpcM%i", chrgs[ichg], imult));
+         mecetaphitpc[aniter]->AddCutMonitor(cutPassEvVetaphitpc[aniter], cutFailEvVetaphitpc[aniter]);
+         
+         dtc1etaphitpc[aniter] = new AliFemtoKKTrackCut();
+//       dtc1etaphitpc[aniter] = new AliFemtoESDTrackCut();
+         //     dtc1etaphitpc[aniter]->SetPidProbPion(0.0,1.001);
+         //     dtc1etaphitpc[aniter]->SetPidProbMuon(0.0,1.0);
+         //     dtc1etaphitpc[aniter]->SetPidProbKaon(0.0,1.0);
+         //     dtc1etaphitpc[aniter]->SetPidProbProton(0.0,1.0);
+         if (ichg == 0)
+           dtc1etaphitpc[aniter]->SetCharge(1.0);
+         else if (ichg == 1)
+           dtc1etaphitpc[aniter]->SetCharge(-1.0);
+           
+         dtc1etaphitpc[aniter]->SetPt(0.14,1.5);
+         //      dtc1etaphitpc[aniter]->SetEta(-1.2,1.2);
+         dtc1etaphitpc[aniter]->SetEta(-0.8,0.8); //0.5
+         //    //    dtc1etaphitpc[aniter]->SetEta(-0.5,0.5);
+///      dtc1etaphitpc[aniter]->SetMass(PionMass);
+         dtc1etaphitpc[aniter]->SetMass(KaonMass);
+         
+         
+         ////    dtc1etaphitpc[aniter]->SetminTPCncls(80);
+                 
+///////   ----!!!!!!      
+         dtc1etaphitpc[aniter]->SetMostProbableKaon();  //!!!!!!
+         //------------------- November 2013 -----------------------------------< 
+         //New class in AliFemo: PWGCF/FEMTOSCOPY/AliFemtoUser/AliFemtoKKTrackCut.cxx
+         dtc1etaphitpc[aniter]->SetNsigmaTPCle250(2.0);
+         dtc1etaphitpc[aniter]->SetNsigmaTPC250_400(2.0);
+         dtc1etaphitpc[aniter]->SetNsigmaTPC400_450(2.0);
+         dtc1etaphitpc[aniter]->SetNsigmaTPC450_500(2.0);
+         dtc1etaphitpc[aniter]->SetNsigmaTPCge500(3.0);
+         // new cuts are stronger, better separation of pion in TOF 
+         // when momentum is greater then 800 MeV/c
+         dtc1etaphitpc[aniter]->SetNsigmaTOF500_800(2.0);
+         dtc1etaphitpc[aniter]->SetNsigmaTOF800_1000(1.5);
+         dtc1etaphitpc[aniter]->SetNsigmaTOFge1000(1.0);
+         //------------------- November 2013 ----------------------------------->
+
+////             dtc1etaphitpc[aniter]->SetMostProbablePion();
+         //    // Track quality cuts
+         if (runtype == 0) {
+           dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit|AliESDtrack::kITSrefit);
+           //      dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit);
+           //    dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kITSrefit);
+           dtc1etaphitpc[aniter]->SetminTPCncls(80);
+           dtc1etaphitpc[aniter]->SetRemoveKinks(kTRUE);
+           dtc1etaphitpc[aniter]->SetLabel(kFALSE);
+           //    dtc1etaphitpc[aniter]->SetMaxITSChiNdof(6.0);
+           dtc1etaphitpc[aniter]->SetMaxTPCChiNdof(4.0);
+           dtc1etaphitpc[aniter]->SetMaxImpactXY(DCAxy);
+           //Poland: dtc1etaphitpc[aniter]->SetMaxImpactXYPtDep(0.0182, 0.0350, -1.01);
+           dtc1etaphitpc[aniter]->SetMaxImpactZ(DCAz);
+           //      dtc1etaphitpc[aniter]->SetMaxSigmaToVertex(6.0);
+         }
+         else if (runtype == 1) {
+           //      dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit|AliESDtrack::kITSrefit);
+           //    dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit);
+           //      dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kITSrefit|AliESDtrack::kITSpureSA);
+           //      dtc1etaphitpc[aniter]->SetminTPCncls(70);
+           dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kITSrefit);
+           dtc1etaphitpc[aniter]->SetRemoveKinks(kTRUE);
+           dtc1etaphitpc[aniter]->SetLabel(kFALSE);
+           //    dtc1etaphitpc[aniter]->SetMaxITSChiNdof(6.0);
+           //      dtc1etaphitpc[aniter]->SetMaxTPCChiNdof(6.0);
+           dtc1etaphitpc[aniter]->SetMaxImpactXY(DCAxy);
+           dtc1etaphitpc[aniter]->SetMaxImpactZ(DCAz);
+           //      dtc1etaphitpc[aniter]->SetMaxSigmaToVertex(6.0);
+         }
+         else if (runtype == 2) {
+           //      dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit|AliESDtrack::kITSrefit);
+           dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCin);
+           //      dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit);
+           //    dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kITSrefit);
+           dtc1etaphitpc[aniter]->SetminTPCncls(80); //was "0"
+           dtc1etaphitpc[aniter]->SetRemoveKinks(kTRUE);
+           dtc1etaphitpc[aniter]->SetLabel(kFALSE);
+           //    dtc1etaphitpc[aniter]->SetMaxITSChiNdof(6.0);
+           dtc1etaphitpc[aniter]->SetMaxTPCChiNdof(4.0);
+           dtc1etaphitpc[aniter]->SetMaxImpactXY(DCAxy);
+           //dtc1etaphitpc[aniter]->SetMaxImpactXYPtDep(0.0182, 0.0350, -1.01);
+           dtc1etaphitpc[aniter]->SetMaxImpactZ(DCAz);  //3.0
+           //      dtc1etaphitpc[aniter]->SetMaxSigmaToVertex(6.0);
+         }
+
+         
+/*
+         cutPass1YPtetaphitpc[aniter] = new AliFemtoCutMonitorParticleYPt(Form("cutPass1%stpcM%i", chrgs[ichg], imult), 0.493677);
+         cutFail1YPtetaphitpc[aniter] = new AliFemtoCutMonitorParticleYPt(Form("cutFail1%stpcM%i", chrgs[ichg], imult), 0.493677);
+         dtc1etaphitpc[aniter]->AddCutMonitor(cutPass1YPtetaphitpc[aniter], cutFail1YPtetaphitpc[aniter]);
+         
+         cutPass1PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutPass1%stpcM%i", chrgs[ichg], imult),1);
+         cutFail1PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutFail1%stpcM%i", chrgs[ichg], imult),1);
+         dtc1etaphitpc[aniter]->AddCutMonitor(cutPass1PIDetaphitpc[aniter], cutFail1PIDetaphitpc[aniter]);
+*/
+         
+        // sqpcetaphitpc[aniter] = new AliFemtoPairCutAntiGamma();
+       //  sqpcetaphitpc[aniter] = new AliFemtoShareQualityTPCEntranceSepPairCut();
+         
+          if (ichg < 2) {
+           //sqpcetaphitpc[aniter] = new AliFemtoPairCutRadialDistance();//AliFemto dphi* cut
+         sqpcetaphitpc[aniter] = new AliFemtoPairCutRadialDistanceKK();  //Dhevan's dphi* cut
+         if (runtype == 0) {
+           sqpcetaphitpc[aniter]->SetShareQualityMax(1.0);
+           sqpcetaphitpc[aniter]->SetShareFractionMax(0.05);
+           sqpcetaphitpc[aniter]->SetRemoveSameLabel(kFALSE);
+           // sqpcetaphitpc[aniter]->SetMaxEEMinv(0.0);
+           // sqpcetaphitpc[aniter]->SetMaxThetaDiff(0.0);
+                   //ml sqpcetaphitpc[aniter]->SetTPCEntranceSepMinimum(1.5);
+//ml       sqpcetaphitpc[aniter]->SetRadialDistanceMinimum(0.12, 0.03);
+//ml       sqpcetaphitpc[aniter]->SetEtaDifferenceMinimum(0.02);
+
+        
+          //--------- km:  eta-phi* Dhevan's custs ----------->>>>
+           sqpcetaphitpc[aniter]->SetPhiStarDifferenceMinimum(PhiStarDifferenceMinimum);
+            sqpcetaphitpc[aniter]->SetEtaDifferenceMinimum(EtaDifferenceMinimum);
+           //sqpcetaphitpc[aniter]->SetMinimumRadius(0.8);//not need for AliFemtoPairCutRadialDistanceKK()
+          //--------- km:  eta-phi* Dhevan's custs -----------<<<
+
+          //////////////sqpcetaphitpc[aniter]->SetMagneticFieldSign(1);
+         
+        
+           
+         }
+         else if (runtype == 1) {
+           sqpcetaphitpc[aniter]->SetShareQualityMax(1.0);
+           sqpcetaphitpc[aniter]->SetShareFractionMax(1.05);
+           sqpcetaphitpc[aniter]->SetRemoveSameLabel(kFALSE);
+           // sqpcetaphitpc[aniter]->SetMaxEEMinv(0.002);
+           // sqpcetaphitpc[aniter]->SetMaxThetaDiff(0.008);
+                   //ml sqpcetaphitpc[aniter]->SetTPCEntranceSepMinimum(5.0);
+//         sqpcetaphitpc[aniter]->SetRadialDistanceMinimum(1.2, 0.03);
+//         sqpcetaphitpc[aniter]->SetEtaDifferenceMinimum(0.02);
+
+//  void SetPhiStarDifferenceMinimum(double dtpc);
+//  void SetEtaDifferenceMinimum(double etpc);
+//  void SetMinimumRadius(double minrad);
+//  void SetMagneticFieldSign(int magsign);
+
+          //--------- km:  eta-phi* Dhevan's custs ----------->>>>
+           sqpcetaphitpc[aniter]->SetPhiStarDifferenceMinimum(PhiStarDifferenceMinimum);
+            sqpcetaphitpc[aniter]->SetEtaDifferenceMinimum(EtaDifferenceMinimum);
+           //sqpcetaphitpc[aniter]->SetMinimumRadius(0.8);//not need for AliFemtoPairCutRadialDistanceKK()
+          //--------- km:  eta-phi* Dhevan's custs -----------<<<
+
+         /////////sqpcetaphitpc[aniter]->SetMagneticFieldSign(1);
+     //sqpcetaphitpc[aniter]->SetMagneticFieldSign(1.0);
+
+
+         }
+         else if (runtype == 2) {
+            sqpcetaphitpc[aniter]->SetDataType(AliFemtoPairCut::kAOD);
+           sqpcetaphitpc[aniter]->SetShareQualityMax(1.0);
+           sqpcetaphitpc[aniter]->SetShareFractionMax(0.05);
+           sqpcetaphitpc[aniter]->SetRemoveSameLabel(kFALSE);
+           // sqpcetaphitpc[aniter]->SetMaxEEMinv(0.0);
+           // sqpcetaphitpc[aniter]->SetMaxThetaDiff(0.0);
+               //ml    sqpcetaphitpc[aniter]->SetTPCEntranceSepMinimum(0.0);
+//ml       sqpcetaphitpc[aniter]->SetRadialDistanceMinimum(1.2, 0.045);
+//ml       sqpcetaphitpc[aniter]->SetEtaDifferenceMinimum(0.016);
+
+          //--------- km:  eta-phi* Dhevan's custs ----------->>>>
+           sqpcetaphitpc[aniter]->SetPhiStarDifferenceMinimum(PhiStarDifferenceMinimum);
+            sqpcetaphitpc[aniter]->SetEtaDifferenceMinimum(EtaDifferenceMinimum);
+           //sqpcetaphitpc[aniter]->SetMinimumRadius(0.8);//not need for AliFemtoPairCutRadialDistanceKK()
+          //--------- km:  eta-phi* Dhevan's custs -----------<<<
+
+           ////////sqpcetaphitpc[aniter]->SetMagneticFieldSign(1);
+        
+
+         }
+         }        
+
+         
+         anetaphitpc[aniter]->SetEventCut(mecetaphitpc[aniter]);
+         anetaphitpc[aniter]->SetFirstParticleCut(dtc1etaphitpc[aniter]);
+         anetaphitpc[aniter]->SetSecondParticleCut(dtc1etaphitpc[aniter]);
+         anetaphitpc[aniter]->SetPairCut(sqpcetaphitpc[aniter]);
+         
+        //       cylmetaphitpc[aniter] = new AliFemtoCorrFctnDirectYlm(Form("cylm%stpcM%i", chrgs[ichg], imult),3,nbinssh,0.0,shqmaxSH,runshlcms);
+         ///     anetaphitpc[aniter]->AddCorrFctn(cylmetaphitpc[aniter]);
+         
+         // cqinvnclstpc[aniter] = new AliFemtoCorrFctnTPCNcls(Form("cqinvncls%stpcM%i", chrgs[ichg], imult),nbinssh,0.0,shqmax);
+         // anetaphitpc[aniter]->AddCorrFctn(cqinvnclstpc[aniter]);
+
+         //      cqinvchi2tpc[aniter] = new AliFemtoChi2CorrFctn(Form("cqinvchi2%stpcM%i", chrgs[ichg], imult),nbinssh,0.0,shqmax);
+         //      anetaphitpc[aniter]->AddCorrFctn(cqinvchi2tpc[aniter]);
+
+         if (runktdep) {
+           int ktm;
+           for (int ikt=0; ikt<cKt/*8*/; ikt++) {
+             ktm = aniter*cKt/*8*/ + ikt;
+             ktpcuts[ktm] = new AliFemtoKTPairCut(ktrng[ikt], ktrng[ikt+1]);
+             
+////////             cylmkttpc[ktm] = new AliFemtoCorrFctnDirectYlm(Form("cylm%stpcM%ikT%i", chrgs[ichg], imult, ikt),3,
+///////                                                             nbinssh, 0.0,
+//////                                                      (imult>6)?shqmaxSH*2.5:shqmaxSH,
+/////                                                       runshlcms);
+//////               cylmkttpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]);
+/////                anetaphitpc[aniter]->AddCorrFctn(cylmkttpc[ktm]);
+             
+              cqinvkttpc[ktm] = new AliFemtoQinvCorrFctn(Form("cqinv%stpcM%ikT%i", chrgs[ichg], imult, ikt),nbinssh,0.0,(imult>6)?shqmax*2.5:shqmax);
+//           cqinvkttpc[ktm] = new AliFemtoQinvCorrFctn(Form("cqinv%stpcM%ikT%i", chrgs[ichg], imult, ikt),nbinssh,0.0,0.5);
+             cqinvkttpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]);
+             anetaphitpc[aniter]->AddCorrFctn(cqinvkttpc[ktm]);
+
+             cqinvsqtpc[ktm] = new AliFemtoShareQualityCorrFctn(Form("cqinvsq%stpcM%ikT%i", chrgs[ichg], imult, ikt),nbinssh,0.0,shqmax);
+             cqinvsqtpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]);
+             anetaphitpc[aniter]->AddCorrFctn(cqinvsqtpc[ktm]);
+
+//           cqinvinnertpc[ktm] = new AliFemtoTPCInnerCorrFctn(Form("cqinvinner%stpcM%ikT%i", chrgs[ichg], imult, ikt),nbinssh,0.0,shqmax);
+//           cqinvinnertpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]);
+//           cqinvinnertpc[ktm]->SetRadius(1.2);
+//           anetaphitpc[aniter]->AddCorrFctn(cqinvinnertpc[ktm]);
+
+//---- Correlation Function vs Delta_Eta and Delta_Phi (not Phi*)---->>>
+//           cdedpetaphi[ktm] = new AliFemtoCorrFctnDEtaDPhi(Form("cdedp%stpcM%ikT%i", chrgs[ichg], imult, ikt),100,100);
+//           anetaphitpc[aniter]->AddCorrFctn(cdedpetaphi[ktm]);
+//---- Correlation Function vs Delta_Eta and Delta_Phi (not Phi*)----<<<
+
+             if (run3d) {
+       //      cq3dlcmskttpc[ktm] = new AliFemtoCorrFctn3DLCMSSym(Form("cq3d%stpcM%ikT%i", chrgs[ichg], imult, ikt),60,(imult>3)?((imult>6)?((imult>7)?0.6:0.4):0.25):0.15);
+
+        //    AliFemtoBPLCMS3DCorrFctn *cq3dallpiptpc = new AliFemtoBPLCMS3DCorrFctn("cq3dallpiptpc",100,-1.5,1.5);
+                                 
+       cq3dlcmskttpc[ktm] = new AliFemtoBPLCMS3DCorrFctn(Form("cq3d%stpcM%ikT%i", chrgs[ichg], imult, ikt),60,-0.3,0.3);
+//     cq3dlcmskttpc[ktm] = new AliFemtoCorrFctn3DLCMSSym(Form("cq3d%stpcM%ikT%i", chrgs[ichg], imult, ikt),50,0.5);
+               cq3dlcmskttpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]);
+               anetaphitpc[aniter]->AddCorrFctn(cq3dlcmskttpc[ktm]);
+             }
+           }
+         }
+         
+         // cdedpetaphi[aniter] = new AliFemtoCorrFctnDEtaDPhi(Form("cdedp%stpcM%i", chrgs[ichg], imult),24, 24);
+         // anetaphitpc[aniter]->AddCorrFctn(cdedpetaphi[aniter]);
+         
+         Manager->AddAnalysis(anetaphitpc[aniter]);    
+       }
+      }
+    }
+  }
+  // *** End Kaon-Kaon (positive) analysis
+
+  return Manager;
+}                         
+                      
index d68090e..4167870 100644 (file)
@@ -70,8 +70,8 @@ AliFemtoManager* ConfigFemtoAnalysis() {
  //for test
    //double PhiStarDifferenceMinimum=0.03; //[radian]
  // double EtaDifferenceMinimum=0.02; //[radian]
-   double PhiStarDifferenceMinimum=0.06; //[radian]
-   double EtaDifferenceMinimum=0.045; //[radian]
+   double PhiStarDifferenceMinimum=0.04; //[radian]
+   double EtaDifferenceMinimum=0.02; //[radian]
   
   
   
index 7d8ed23..27622f9 100644 (file)
@@ -72,8 +72,8 @@ AliFemtoManager* ConfigFemtoAnalysis() {
   //Dhevan's : PhiStarDifferenceMinimum=0.06; EtaDifferenceMinimum=0.02;
   //double PhiStarDifferenceMinimum=0.03;//0.017; //[radian]
   //double EtaDifferenceMinimum=0.02;//0.015; //[radian]
-   double PhiStarDifferenceMinimum=0.06; //[radian]
-   double EtaDifferenceMinimum=0.045; //[radian]
+   double PhiStarDifferenceMinimum=0.04; //[radian]
+   double EtaDifferenceMinimum=0.02; //[radian]
   
   
   //=======Double track cuts=================================================<