本文整理汇总了C++中AliGenCocktail::SetProjectile方法的典型用法代码示例。如果您正苦于以下问题:C++ AliGenCocktail::SetProjectile方法的具体用法?C++ AliGenCocktail::SetProjectile怎么用?C++ AliGenCocktail::SetProjectile使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AliGenCocktail
的用法示例。
在下文中一共展示了AliGenCocktail::SetProjectile方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AliGenCocktail
AliGenerator* Hijing2000HF(Int_t typeHF)
{
comment = comment.Append(" PbPb: Hjing2000 + pythia events for HF signals");
AliGenCocktail *cocktail = new AliGenCocktail();
cocktail->SetProjectile("A", 208, 82);
cocktail->SetTarget ("A", 208, 82);
AliGenerator* pythiaHF = 0x0;
// 20 Pythia events
Int_t nPythia=20;
for(Int_t i=0;i<nPythia; i++) {
switch(typeHF) {
case 0:
pythiaHF = MbPythiaTunePerugia0chadr();
break;
case 1:
pythiaHF = MbPythiaTunePerugia0bchadr();
break;
case 2:
pythiaHF = MbPythiaTunePerugia0cele();
break;
case 3:
pythiaHF = MbPythiaTunePerugia0bele();
break;
case 4:
pythiaHF = MbPythiaTunePerugia0Jpsi2e();
break;
case 5:
pythiaHF = MbPythiaTunePerugia0BtoJpsi2e();
break;
default:
pythiaHF = MbPythiaTunePerugia0chadr();
break;
}
cocktail->AddGenerator(pythiaHF,"pythiaHF",1);
}
// 1 Hijing event
AliGenHijing *hijing = Hijing2000();
cocktail->AddGenerator(hijing,"hijing",1);
return cocktail;
}
示例2: AliGenCocktail
AliGenerator* Hijing2500Cocktail() {
comment = comment.Append(" PbPb: Hjing2500 at 5.5 + muon signals");
AliGenCocktail *cocktail = new AliGenCocktail();
cocktail->SetProjectile("A", 208, 82);
cocktail->SetTarget ("A", 208, 82);
cocktail->SetEnergyCMS(energy);
// 1 Hijing event: provides underlying event and collision geometry
AliGenHijing *hijing = Hijing2500();
cocktail->AddGenerator(hijing,"hijing",1);
// generator for the custom signal
AliGenerator* signalGen = 0x0;
switch (signal) {
case 0:
signalGen = GenBox();
break;
case 1:
signalGen = GenMuonLMR();
break;
case 2:
signalGen = GenCorrHF();
break;
default:
signalGen = GenBox();
break;
}
cocktail->AddGenerator(signalGen, "signal", 1);
cocktail->SetTrackingFlag(1);
return cocktail;
}
示例3: Config
//.........这里部分代码省略.........
//======================//
TVirtualMCDecayer* decayer = new AliDecayerPythia();
decayer->SetForceDecay(kAll);
decayer->Init();
gMC->SetExternalDecayer(decayer);
if ((embedrun == kMerged) || (embedrun == kSignal) || (embedrun == kBackground)) {
//=========================//
// Generator Configuration //
//=========================//
AliGenerator* gener = 0x0;
if (proc == kPythia6) {
gener = MbPythia();
} else if (proc == kPhojet) {
gener = MbPhojet();
} else if (proc == kJPsiPbPb) {
gener = JPsiPbPb();
} else if (proc == kJPsiPbPb2760) {
gener = JPsiPbPb2760();
} else if (proc == kJPsiHptPbPb2760) {
gener = JPsiHptPbPb2760();
} else if (proc == kBSignalPbPb2760) {
gener = BSignalPbPb2760();
}
}
else {
AliGenCocktail *gener = new AliGenCocktail();
gener->SetPhiRange(0, 360);
// Set pseudorapidity range from -8 to 8.
Float_t thmin = EtaToTheta(1); // theta min. <---> eta max
Float_t thmax = EtaToTheta(-1); // theta max. <---> eta min
gener->SetThetaRange(thmin,thmax);
gener->SetProjectile("A",208,82);
gener->SetTarget("A",208,82);
AliGenTherminator *genther = new AliGenTherminator();
genther->SetFileName("event.out");
genther->SetEventNumberInFile(1);
genther->SetTemperature(0.145);
genther->SetMiuI(-0.0009);
genther->SetMiuS(0.000);
genther->SetMiuB(0.0008);
genther->SetAlfaRange(8.0);
genther->SetRapRange(4.0);
genther->SetRhoMax(7.74);
genther->SetTau(9.74);
genther->SetModel("Lhyquid3D");
genther->SetLhyquidSet("LHC500C2030");
gener->AddGenerator(genther, "THERMINATOR LHYQUID3D", 1);
}
/*
// PRIMARY VERTEX
//
gener->SetOrigin(0., 0., 0.); // vertex position
//
//
// Size of the interaction diamond
// Longitudinal
Float_t sigmaz;
if (embedrun == kBackground) {
sigmaz = 7.55 / TMath::Sqrt(2.); // [cm]