-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract starlight from the cocktail for Psi2sToMuPi decays (#28)
- Loading branch information
1 parent
774c38c
commit 063af58
Showing
1 changed file
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,24 @@ | ||
AliGenerator* GeneratorCustom() { | ||
AliGenStarLight *genStarLight = (AliGenStarLight *) GeneratorStarlight(); | ||
AliGenerator* gen = GeneratorStarlight(); | ||
|
||
if (processConfig.Contains("Incoh")) { | ||
Float_t bslope = 3.75; | ||
if (systemConfig.EqualTo("p-Pb")) bslope = 6.4; // Pb towards muon arm | ||
else if (systemConfig.EqualTo("Pb-p")) bslope = 3.75; // p towards muon arm | ||
printf("GeneratorCustom: b-slope = %.2f\n",bslope); | ||
|
||
AliGenStarLight *genStarLight = 0; | ||
if (processConfig.Contains("Psi2sToElPi") || processConfig.Contains("Psi2sToMuPi") || processConfig.Contains("RhoPrime")) { | ||
// printf("Extract starlight pointer from the cocktail\n"); | ||
AliGenCocktail* genCocktail = (AliGenCocktail *) gen; | ||
genStarLight = (AliGenStarLight*) genCocktail->FirstGenerator()->Generator(); | ||
} else { | ||
// printf("Take Starlight pointer directly\n"); | ||
genStarLight = (AliGenStarLight *) gen; | ||
} | ||
genStarLight->SetParameter("BSLOPE_DEFINITION = 1"); | ||
genStarLight->SetParameter(Form("BSLOPE_VALUE = %.2f",bslope)); | ||
} | ||
return genStarLight; | ||
|
||
return gen; | ||
} |