Import Geant4 11.3.0.beta source tree
This commit is contained in:
@@ -28,22 +28,20 @@
|
||||
/// \brief Implementation of the ExTGRCRegionData class
|
||||
|
||||
#include "ExTGRCRegionData.hh"
|
||||
#include "G4tgrUtils.hh"
|
||||
|
||||
#include "G4UIcommand.hh"
|
||||
#include "G4tgrUtils.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
ExTGRCRegionData::ExTGRCRegionData(const std::vector<G4String>& wl )
|
||||
ExTGRCRegionData::ExTGRCRegionData(const std::vector<G4String>& wl)
|
||||
{
|
||||
if( wl.size() < 2 )
|
||||
{
|
||||
G4Exception("ExTGRCRegionData::ExTGRCRegionData()",
|
||||
"InvalidArgument", FatalErrorInArgument,
|
||||
G4UIcommand::ConvertToString( G4int(wl.size()) ) );
|
||||
if (wl.size() < 2) {
|
||||
G4Exception("ExTGRCRegionData::ExTGRCRegionData()", "InvalidArgument", FatalErrorInArgument,
|
||||
G4UIcommand::ConvertToString(G4int(wl.size())));
|
||||
}
|
||||
fRegionName = wl[0];
|
||||
for( size_t ii = 1; ii < wl.size(); ii++ )
|
||||
{
|
||||
fLVNames.push_back( wl[ii] );
|
||||
for (size_t ii = 1; ii < wl.size(); ii++) {
|
||||
fLVNames.push_back(wl[ii]);
|
||||
}
|
||||
fbCutsSet = false;
|
||||
fGammaCut = 1.;
|
||||
@@ -52,40 +50,32 @@ ExTGRCRegionData::ExTGRCRegionData(const std::vector<G4String>& wl )
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
ExTGRCRegionData::~ExTGRCRegionData()
|
||||
{
|
||||
}
|
||||
ExTGRCRegionData::~ExTGRCRegionData() {}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
void ExTGRCRegionData::SetCutsData( const std::vector<G4String>& rc )
|
||||
void ExTGRCRegionData::SetCutsData(const std::vector<G4String>& rc)
|
||||
{
|
||||
if( (rc.size() != 3) && (rc.size() != 4) )
|
||||
{
|
||||
if ((rc.size() != 3) && (rc.size() != 4)) {
|
||||
G4cerr << "ERROR - ExTGRCRegionData::SetCutsData()" << G4endl
|
||||
<< " Must have 3 or 4 arguments : "
|
||||
<< "REGION_NAME, gamma_CUT, e-_CUT (e+_CUT)." << G4endl
|
||||
<< " It has only " << rc.size() << " !" << G4endl;
|
||||
G4Exception("ExTGRCRegionCutsMgr::AddRegionCuts()",
|
||||
"InvalidArgument", FatalErrorInArgument,
|
||||
G4UIcommand::ConvertToString( G4int(rc.size()) ) );
|
||||
<< "REGION_NAME, gamma_CUT, e-_CUT (e+_CUT)." << G4endl << " It has only "
|
||||
<< rc.size() << " !" << G4endl;
|
||||
G4Exception("ExTGRCRegionCutsMgr::AddRegionCuts()", "InvalidArgument", FatalErrorInArgument,
|
||||
G4UIcommand::ConvertToString(G4int(rc.size())));
|
||||
}
|
||||
|
||||
if( fbCutsSet )
|
||||
{
|
||||
G4Exception("ExTGRCRegionData::SetCutsData()",
|
||||
"InvalidArgument", JustWarning,
|
||||
G4String("Cuts are already set for region " + fRegionName).c_str() );
|
||||
if (fbCutsSet) {
|
||||
G4Exception("ExTGRCRegionData::SetCutsData()", "InvalidArgument", JustWarning,
|
||||
G4String("Cuts are already set for region " + fRegionName).c_str());
|
||||
}
|
||||
|
||||
fGammaCut = G4tgrUtils::GetDouble( rc[1] );
|
||||
fElectronCut = G4tgrUtils::GetDouble( rc[2] );
|
||||
if( rc.size() == 3 )
|
||||
{
|
||||
fGammaCut = G4tgrUtils::GetDouble(rc[1]);
|
||||
fElectronCut = G4tgrUtils::GetDouble(rc[2]);
|
||||
if (rc.size() == 3) {
|
||||
fPositronCut = fElectronCut;
|
||||
}
|
||||
else
|
||||
{
|
||||
fPositronCut = G4tgrUtils::GetDouble( rc[3] );
|
||||
else {
|
||||
fPositronCut = G4tgrUtils::GetDouble(rc[3]);
|
||||
}
|
||||
|
||||
fbCutsSet = true;
|
||||
|
||||
Reference in New Issue
Block a user