本文整理汇总了C++中AliGenCocktail::SetPhiRange方法的典型用法代码示例。如果您正苦于以下问题:C++ AliGenCocktail::SetPhiRange方法的具体用法?C++ AliGenCocktail::SetPhiRange怎么用?C++ AliGenCocktail::SetPhiRange使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AliGenCocktail
的用法示例。
在下文中一共展示了AliGenCocktail::SetPhiRange方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Config
//.........这里部分代码省略.........
gMC->SetCut("PPCUTM", cut);
gMC->SetCut("TOFMAX", tofmax);
//======================//
// Set External decayer //
//======================//
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
示例2: Config
//.........这里部分代码省略.........
gMC->SetProcess("PFIS",0);
gMC->SetProcess("DRAY",0);
gMC->SetProcess("ANNI",1);
gMC->SetProcess("BREM",1);
gMC->SetProcess("MUNU",1);
gMC->SetProcess("CKOV",1);
gMC->SetProcess("HADR",1);
gMC->SetProcess("LOSS",2);
gMC->SetProcess("MULS",1);
gMC->SetProcess("RAYL",1);
Float_t cut = 1.e-3; // 1MeV cut by default
Float_t tofmax = 1.e10;
gMC->SetCut("CUTGAM", cut);
gMC->SetCut("CUTELE", cut);
gMC->SetCut("CUTNEU", cut);
gMC->SetCut("CUTHAD", cut);
gMC->SetCut("CUTMUO", cut);
gMC->SetCut("BCUTE", cut);
gMC->SetCut("BCUTM", cut);
gMC->SetCut("DCUTE", cut);
gMC->SetCut("DCUTM", cut);
gMC->SetCut("PPCUTM", cut);
gMC->SetCut("TOFMAX", tofmax);
int nParticles = 100;
if (gSystem->Getenv("CONFIG_NPARTICLES"))
{
nParticles = atoi(gSystem->Getenv("CONFIG_NPARTICLES"));
}
AliGenCocktail *gener = new AliGenCocktail();
gener->SetPhiRange(0, 360);
// Set pseudorapidity range from -8 to 8.
Float_t thmin = EtaToTheta(8); // theta min. <---> eta max
Float_t thmax = EtaToTheta(-8); // theta max. <---> eta min
gener->SetThetaRange(thmin,thmax);
gener->SetOrigin(0, 0, 0); //vertex position
gener->SetSigma(0, 0, 0); //Sigma in (X,Y,Z) (cm) on IP position
AliGenUHKM *tuhkMgen = new AliGenUHKM(nParticles);
tuhkMgen->SetAllParametersLHC();
gener->AddGenerator(tuhkMgen,"TUHKM",1);
gener->Init();
//
// Activate this line if you want the vertex smearing to happen
// track by track
//
//gener->SetVertexSmear(perTrack);
// Field (L3 0.4 T)
TGeoGlobalMagField::Instance()->SetField(new AliMagF("Maps","Maps", -1., -1., AliMagF::k5kG));
Int_t iABSO = 1;
Int_t iDIPO = 1;
Int_t iFMD = 1;
Int_t iFRAME = 1;
Int_t iHALL = 1;
Int_t iITS = 1;
Int_t iMAG = 1;
Int_t iMUON = 1;
Int_t iPHOS = 1;
Int_t iPIPE = 1;
Int_t iPMD = 1;