add flag
authorcbaumann <cbaumann@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 25 Jun 2012 12:00:10 +0000 (12:00 +0000)
committercbaumann <cbaumann@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 25 Jun 2012 12:00:10 +0000 (12:00 +0000)
PWGDQ/dielectron/macrosLMEE/ConfigLMEEPbPb2011.C

index ac52e69..26823dc 100644 (file)
@@ -297,6 +297,7 @@ void InitCF(AliDielectron* die, Int_t cutDefinition)
 
   cf->AddVariable(AliDielectronVarManager::kCentrality,"0.,10.0,30.0,40.0,60.,80.,100.");
   cf->AddVariable(AliDielectronVarManager::kOpeningAngle,320,0.,3.2);
+  cf->AddVariable(AliDielectronVarManager::kPsiPair,320,0.,3.2);
   //leg variables
   cf->AddVariable(AliDielectronVarManager::kP,200,0.,20.,kTRUE);
   cf->AddVariable(AliDielectronVarManager::kPt,200,0.,20.,kTRUE);
@@ -312,6 +313,11 @@ void InitCF(AliDielectron* die, Int_t cutDefinition)
        cf->AddVariable(AliDielectronVarManager::kPdgCodeMother,10000,-5000.5,4999.5,kTRUE);
   }
 
+//Added after train commit
+  cf->SetStepsForEachCut();
+  cf->SetStepForAfterAllCuts();
+
+
   cf->SetStepsForSignal();
   die->SetCFManagerPair(cf);
 
@@ -343,6 +349,28 @@ void InitCF(AliDielectron* die, Int_t cutDefinition)
   die->AddSignalMC(finalState);
 
 
+  AliDielectronSignalMC* eleFromConversions=new
+       AliDielectronSignalMC("eleFromConversions","conversion electrons");
+  eleFromConversions->SetLegPDGs(11,-11);
+  eleFromConversions->SetCheckBothChargesLegs(kTRUE,kTRUE);
+  eleFromConversions->SetLegSources(AliDielectronSignalMC::kSecondary,
+         AliDielectronSignalMC::kSecondary);
+  eleFromConversions->SetMotherPDGs(22,22);    // 22- photon
+  die->AddSignalMC(eleFromConversions);
+
+
+  AliDielectronSignalMC* dalitzDecays=new
+       AliDielectronSignalMC("dalitzDecays","dalitz Pairs");
+  dalitzDecays->SetLegPDGs(11,-11);
+  dalitzDecays->SetCheckBothChargesLegs(kTRUE,kTRUE);
+  dalitzDecays->SetLegSources(AliDielectronSignalMC::kSecondary,
+         AliDielectronSignalMC::kSecondary);
+  dalitzDecays->SetMotherPDGs(111,111);
+  dalitzDecays->SetFillPureMCStep(kTRUE);
+  die->AddSignalMC(dalitzDecays);
+
+                                                        
+
 }
 
 //--------------------------------------