当前位置: 首页>>代码示例>>C++>>正文


C++ Propagator::PropagatorGeom方法代码示例

本文整理汇总了C++中Propagator::PropagatorGeom方法的典型用法代码示例。如果您正苦于以下问题:C++ Propagator::PropagatorGeom方法的具体用法?C++ Propagator::PropagatorGeom怎么用?C++ Propagator::PropagatorGeom使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Propagator的用法示例。


在下文中一共展示了Propagator::PropagatorGeom方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: runGPU0

void runGPU0(Int_t nthreads = 4, Bool_t graphics = false,
             //         const char *geomfile="gexam1.root")
             const char *geomfile = "http://root.cern.ch/files/cms.root")
{
  TFile::SetCacheFileDir("./files");

  gSystem->Load("libPhysics");
  gSystem->Load("libHist");
  gSystem->Load("libThread");
  gSystem->Load("libGeom");
  gSystem->Load("libVMC");
  gSystem->Load("libGeant_v");
  gSystem->Load("libXsec");
  // gSystem->Load("libGeantCuda");

  Int_t ntotal    = 20; // Number of events to be transported
  Int_t nbuffered = 10; // Number of buffered events

  Propagator *prop      = Propagator::Instance(ntotal, nbuffered);
  WorkloadManager *wmgr = WorkloadManager::Instance(nthreads);
  wmgr->SetNminThreshold(5 * nthreads);
  // CoprocessorBroker *gpuBroker = new CoprocessorBroker();
  // gpuBroker->CudaSetup(32,128,1);
  // wmgr->SetTaskBroker(gpuBroker);

  prop->fNaverage   = 500; // Average number of tracks per event
  prop->fNperBasket = 32;

  prop->fEmin = 1.E-5; // [10KeV] energy cut
  prop->fEmax = 0.03;  // [30MeV] used for now to select particle gun energy
  // prop->fEmax = 1.;
  // Create the tab. phys process.
  prop->fProcess = new TTabPhysProcess("tab_phys", "xsec_FTFP_BERT.root", "fstate_FTFP_BERT.root");

  prop->fApplication = new MyApplication();

  //   gROOT->ProcessLine(".x factory.C+");
  //   prop->fUseDebug = true;
  //   prop->fDebugTrk = 1;
  // prop->PropagatorGeom(geomfile, nthreads, graphics);

  // This sets gGeomManager and hence superseeds the filename.
  VP_SimpleECal();
  prop->PropagatorGeom("", nthreads /* + 3 */, graphics);

  delete gGeoManager;
}
开发者ID:amadio,项目名称:geant,代码行数:47,代码来源:runGPU0.C


注:本文中的Propagator::PropagatorGeom方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。