activate wider tpc cut
authorcbaumann <cbaumann@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Jun 2012 15:21:24 +0000 (15:21 +0000)
committercbaumann <cbaumann@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Jun 2012 15:21:24 +0000 (15:21 +0000)
PWGDQ/dielectron/macrosLMEE/AddTask_cbaumann_LMEEPbPb2011.C
PWGDQ/dielectron/macrosLMEE/ConfigLMEEPbPb2011.C

index 6be9021..b718816 100644 (file)
@@ -1,4 +1,4 @@
-AliAnalysisTask *AddTask_cbaumann_LMEEPbPb2011(Bool_t runAll=kFALSE, Bool_t setMC=kFALSE){
+AliAnalysisTask *AddTask_cbaumann_LMEEPbPb2011(Bool_t runRejection=kFALSE, Bool_t setMC=kFALSE){
   //get the current analysis manager
   AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
   if (!mgr) {
@@ -56,10 +56,13 @@ AliAnalysisTask *AddTask_cbaumann_LMEEPbPb2011(Bool_t runAll=kFALSE, Bool_t setM
   task->AddDielectron(lowmass3);
   printf("add: %s\n",lowmass3->GetName());
 */
-if (runAll) {
+if (runRejection) {
   AliDielectron *lowmass4=ConfigLMEEPbPb2011(4,hasMC);
   task->AddDielectron(lowmass4);
   printf("add: %s\n",lowmass4->GetName());
+  AliDielectron *lowmass8=ConfigLMEEPbPb2011(8,hasMC);
+  task->AddDielectron(lowmass8);
+  printf("add: %s\n",lowmass8->GetName())
 
 //  AliDielectron *lowmass5=ConfigLMEEPbPb2011(5,hasMC);
 //  task->AddDielectron(lowmass5);
@@ -69,6 +72,9 @@ else {
   AliDielectron *lowmass1=ConfigLMEEPbPb2011(1,hasMC);
   task->AddDielectron(lowmass1);
   printf("add: %s\n",lowmass1->GetName())
+  AliDielectron *lowmass7=ConfigLMEEPbPb2011(7,hasMC);
+  task->AddDielectron(lowmass7);
+  printf("add: %s\n",lowmass7->GetName())
 }
 
   mgr->AddTask(task);
index 45e4608..f444416 100644 (file)
@@ -2,7 +2,7 @@ void InitHistograms(AliDielectron *die, Int_t cutDefinition);
 void InitCF(AliDielectron* die, Int_t cutDefinition);
 void EnableMC();
 
-TString names=("noPairing;TPCTOFCentnoRej;TPCTOFSemiCentnoRej;TPCTOFPerinoRej;TPCTOFCent;TPCTOFSemiCent;TPCTOFPeri");
+TString names=("noPairing;TPCTOFCentnoRej;TPCTOFSemiCentnoRej;TPCTOFPerinoRej;TPCTOFCent;TPCTOFSemiCent;TPCTOFPeri;TPCTOFCentnoRejTight;TPCTOFCentTight");
 TObjArray *arrNames=names.Tokenize(";");
 const Int_t nDie=arrNames->GetEntries();
 
@@ -42,35 +42,48 @@ AliDielectron* ConfigLMEEPbPb2011(Int_t cutDefinition, Bool_t hasMC=kFALSE)
        //not yet implemented
   }
   else if (cutDefinition==1) {
-       selectedPID = LMEECutLib::kPbPb2011TPCandTOF;
+       selectedPID = LMEECutLib::kPbPb2011TPCandTOFwide;
        selectedCentrality = LMEECutLib::kPbPb2011Central;
        rejectionStep = kFALSE;
   }
   else if (cutDefinition==2) {
-       selectedPID = LMEECutLib::kPbPb2011TPCandTOF;
+       selectedPID = LMEECutLib::kPbPb2011TPCandTOFwide;
        selectedCentrality = LMEECutLib::kPbPb2011SemiCentral;
        rejectionStep = kFALSE;
   }
   else if (cutDefinition==3) {
-       selectedPID = LMEECutLib::kPbPb2011TPCandTOF;
+       selectedPID = LMEECutLib::kPbPb2011TPCandTOFwide;
        selectedCentrality = LMEECutLib::kPbPb2011Peripheral;
        rejectionStep = kFALSE;
   }
   else if (cutDefinition==4) {
-       selectedPID = LMEECutLib::kPbPb2011TPCandTOF;
+       selectedPID = LMEECutLib::kPbPb2011TPCandTOFwide;
        selectedCentrality = LMEECutLib::kPbPb2011Central;
        rejectionStep = kTRUE;
   }
   else if (cutDefinition==5) {
-       selectedPID = LMEECutLib::kPbPb2011TPCandTOF;
+       selectedPID = LMEECutLib::kPbPb2011TPCandTOFwide;
        selectedCentrality = LMEECutLib::kPbPb2011SemiCentral;
        rejectionStep = kTRUE;
   }
   else if (cutDefinition==6) {
-       selectedPID = LMEECutLib::kPbPb2011TPCandTOF;
+       selectedPID = LMEECutLib::kPbPb2011TPCandTOFwide;
        selectedCentrality = LMEECutLib::kPbPb2011Peripheral;
        rejectionStep = kTRUE;
   }
+
+//Legacy cuts, check consistence w/ 1 & 4, then remove
+  else if (cutDefinition==7) {
+       selectedPID = LMEECutLib::kPbPb2011TPCandTOFwide;
+       selectedCentrality = LMEECutLib::kPbPb2011Central;
+       rejectionStep = kFALSE;
+  }
+  else if (cutDefinition==8) {
+       selectedPID = LMEECutLib::kPbPb2011TPCandTOFwide;
+       selectedCentrality = LMEECutLib::kPbPb2011Central;
+       rejectionStep = kTRUE;
+  }
+
   else Semi{
        cout << " =============================== " << endl;
        cout << " ==== INVALID CONFIGURATION ==== " << endl;