本文整理汇总了C++中Analysis::FillSNSDetection方法的典型用法代码示例。如果您正苦于以下问题:C++ Analysis::FillSNSDetection方法的具体用法?C++ Analysis::FillSNSDetection怎么用?C++ Analysis::FillSNSDetection使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Analysis
的用法示例。
在下文中一共展示了Analysis::FillSNSDetection方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UserSteppingAction
//.........这里部分代码省略.........
<< " pre_xyz_m " << std::setprecision(3) << preX/m << " " << std::setprecision(3)
<< preY/m << " " << std::setprecision(3) << preZ/m
<< " postStatus " << step->GetPostStepPoint()->GetStepStatus()
<< G4endl;
}
G4bool shieldSteps = false;
if( shieldSteps && (postVol== "DetPolyShield"|| postVol=="DetLeadShield" ||
postVol=="SNSDetectorCsI" ) && postVol != preVol )
{
G4cout << " ShieldN "
<< std::setprecision(3) << preKE/MeV
<< " preKE(mev):postKE " << std::setprecision(3) << trackKE/MeV
<< " " << partName << " eDep "
<< std::setprecision(3) << eDep/MeV << " mev|pre:post " << preVol
<< " " << postVol << " volID "<< volumeID << " " << weight
<< " wt|evt:track:step " << evtid << " "<< trackid << " " << stepNum
<< " " << preProc << " preproc|postproc " << postProc
<< " " << track->GetCreatorProcess()->GetProcessName()
<< " create_proc|in " << track->GetLogicalVolumeAtVertex()->GetName()
<< " withKE "<< track->GetVertexKineticEnergy()/MeV
<< " xyz_m " << std::setprecision(3) << postX/m << " " << std::setprecision(3)
<< postY/m << " " << std::setprecision(3) << postZ/m
<< " postStatus " << step->GetPostStepPoint()->GetStepStatus()
<< G4endl;
}
}//nuetron nFlux vol
//Detections
eDep = step->GetTotalEnergyDeposit();
if(postVol=="SNSDetectorCsI")
{
man->FillSNSDetection(eDep/MeV, preKE/MeV , trackKE/MeV, pdgCode, weight, postX/m,
postY/m, postZ/m, evtid, trackid, parentID, stepNum, time/microsecond);
//proc, vol
if(verbDetCsIInfo)
{
G4cout << " Det "
<< std::setprecision(3) << preKE/MeV
<< " preKE(mev):postKE " << std::setprecision(3) << trackKE/MeV
<< " " << partName << " eDep "
<< std::setprecision(3) << eDep/MeV << " mev|pre:post " << preVol
<< " " << postVol << " volID "<< volumeID << " " << weight
<< " wt|evt:track:step " << evtid << " "<< trackid << " " << stepNum
<< " " << preProc << " preproc|postproc " << postProc
<< " " << track->GetCreatorProcess()->GetProcessName()
<< " create_proc:in " << track->GetLogicalVolumeAtVertex()->GetName()
<< " withKE "<< track->GetVertexKineticEnergy()/MeV
<< " post_xyz_m " << std::setprecision(3) << postX/m
<< " " << std::setprecision(3)
<< postY/m << " " << std::setprecision(3) << postZ/m
<< " postStatus " << step->GetPostStepPoint()->GetStepStatus()
<< G4endl;
}
}//if CsI
}//if vol det
//###############################################
//NFLUX at BasementLayer
G4bool nFluxBaseLayer = true;
if(nFluxBaseLayer && partName == "neutron" &&
preVol == "BasementIn" && postVol == "BasementLayer")