-
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.
Merge branch 'master' of https://github.com/alisw/AliDPG
- Loading branch information
Showing
25 changed files
with
1,100 additions
and
87 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
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
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; | ||
|
||
} |
Oops, something went wrong.