-
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.
EPOS pileup generator for bkg in embedding MCs
Removing also "&" when generating EPOS event in fifo
- Loading branch information
1 parent
320da88
commit d9319d3
Showing
2 changed files
with
39 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#if !defined(__CINT__) || defined(__MAKECINT__) | ||
//For ROOT6 | ||
R__ADD_INCLUDE_PATH($ALIDPG_ROOT) | ||
#include "Utils/GetTriggerBCMaskAndMu.C" | ||
#endif | ||
|
||
AliGenerator *GeneratorCustom(){ | ||
|
||
// This is the EPOS pileup generator for background of embedded productions | ||
// The trigger event is the signal that will be added on top | ||
|
||
#if defined(__CINT__) | ||
// For ROOT5 | ||
gROOT->LoadMacro("$ALIDPG_ROOT/Utils/GetTriggerBCMaskAndMu.C++"); | ||
#endif | ||
|
||
Double_t mu = 0.001; | ||
TString bcm = GetTriggerBCMaskAndMu(mu); | ||
|
||
//printf(" BC mask = %s\n",bcm.Data()); | ||
//printf(" mu = %f\n",mu); | ||
//printf(" Energy = %f\n",energyConfig); | ||
|
||
AliGenPileup *genpil = new AliGenPileup(); | ||
// this is the EPOS-LHC generator for the pileup events, | ||
// which is configured wihtout impact parameter cuts | ||
AliGenerator * eposPU = GeneratorEPOSLHC(kTRUE); | ||
genpil->SetGenerator(eposPU, mu); | ||
// Set the beam time structure | ||
// Details on the syntax in STEER/AliTriggerBCMask | ||
genpil->SetBCMask(bcm.Data()); | ||
// Do not generate the trigger interaction! This will go in the signal | ||
genpil->GenerateTrigInteraction(kFALSE); | ||
genpil->Print(); | ||
|
||
return genpil; | ||
|
||
} |
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