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


C++ Analysis::FillSNSDetection方法代码示例

本文整理汇总了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")
开发者ID:kumargp,项目名称:cpp,代码行数:67,代码来源:SteppingAction_Jul23.cpp


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