本文整理汇总了C++中AliGenCocktail::UseSingleInjectionPerEvent方法的典型用法代码示例。如果您正苦于以下问题:C++ AliGenCocktail::UseSingleInjectionPerEvent方法的具体用法?C++ AliGenCocktail::UseSingleInjectionPerEvent怎么用?C++ AliGenCocktail::UseSingleInjectionPerEvent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AliGenCocktail
的用法示例。
在下文中一共展示了AliGenCocktail::UseSingleInjectionPerEvent方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GeneratorCustom
AliGenerator* GeneratorCustom()
{
AliGenCocktail *ctl = GeneratorCocktail("Monash2013_RsnNcl002");
// pythia8
AliGenerator *py8 = GeneratorPythia8(kPythia8Tune_Monash2013);
ctl->AddGenerator(py8, "Pythia8 (Monash2013)", 1.);
// randomly injected particles
const int nParticles = 10;
particle_inj particleList[10] = { // {name,pdgcode,maxpt,maxy},
{1,"f2(1270)",225,15.,0.6},
{1,"Lambda(1520)",3124,15.,0.6},
{1,"Lambda_bar(1520)",-3124,15.,0.6},
{1,"f0(980)",9010221,15.,0.6},
{1,"Xi*0(1530)",3324,15.,0.6},
{1,"Xi*0_bar(1530)",-3324,15.,0.6},
{1,"Xi0(1820)",123324,15.,0.6},
{1,"Xi0_bar(1820)",-123324,15.,0.6},
{1,"Xi-(1820)",123314,15.,0.6},
{1,"Xi+(1820)",-123314,15.,0.6}
};
AliDecayerPythia *dec = new AliDecayerPythia;
AliPDG::AddParticlesToPdgDataBase();
ctl->UseSingleInjectionPerEvent();
for (int idx = 0; idx < nParticles; ++idx) {
AliGenerator *inj = GeneratorParam(particleList[idx].n, particleList[idx].pdg, 0., particleList[idx].maxpt,-particleList[idx].maxy, particleList[idx].maxy,dec);
ctl->AddGenerator(inj, (TString(particleList[idx].name) + " injector").Data(), 1.);
}
return ctl;
}