Import Geant4 11.3.0 source tree
This commit is contained in:
@@ -52,6 +52,7 @@ G4DNAPTBIonisationStructure::G4DNAPTBIonisationStructure()
|
||||
energyConstant[index].push_back(17.07 * eV);
|
||||
energyConstant[index].push_back(21.00 * eV);
|
||||
energyConstant[index].push_back(41.72 * eV);
|
||||
energyConstant[index].push_back(409.9*eV);
|
||||
}
|
||||
|
||||
// MPietrzak
|
||||
|
||||
@@ -122,7 +122,7 @@ void G4MoleculeGun::AddMolecule(const G4String& name,
|
||||
shoot->fMoleculeName = name;
|
||||
shoot->fPosition = position;
|
||||
shoot->fTime = time;
|
||||
fShoots.push_back(shoot);
|
||||
fShoots.push_back(std::move(shoot));
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -137,7 +137,7 @@ void G4MoleculeGun::AddNMolecules(std::size_t n,
|
||||
shoot->fMoleculeName = moleculeName;
|
||||
shoot->fPosition = position;
|
||||
shoot->fTime = time;
|
||||
fShoots.push_back(shoot);
|
||||
fShoots.push_back(std::move(shoot));
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -155,7 +155,7 @@ G4MoleculeGun::AddMoleculesRandomPositionInBox(std::size_t n,
|
||||
shoot->fPosition = boxCenter;
|
||||
shoot->fBoxSize = new G4ThreeVector(boxSize);
|
||||
shoot->fTime = time;
|
||||
fShoots.push_back(shoot);
|
||||
fShoots.push_back(std::move(shoot));
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -225,5 +225,5 @@ void G4MoleculeGun::AddMoleculeInCMRepresentation(std::size_t n,
|
||||
shoot->fNumber = (G4int)n;
|
||||
shoot->fMoleculeName = moleculeName;
|
||||
shoot->fTime = time;
|
||||
fShoots.push_back(shoot);
|
||||
fShoots.push_back(std::move(shoot));
|
||||
}
|
||||
|
||||
@@ -94,9 +94,8 @@ void G4MoleculeGunMessenger::SetNewValue(G4UIcommand* command,
|
||||
|
||||
G4MoleculeShootMessenger::G4MoleculeShootMessenger(const G4String& name,
|
||||
G4MoleculeGunMessenger*,
|
||||
G4shared_ptr<G4MoleculeShoot>
|
||||
shoot) :
|
||||
fpShoot(shoot)
|
||||
G4shared_ptr<G4MoleculeShoot> shoot)
|
||||
: fpShoot(std::move(shoot))
|
||||
{
|
||||
G4String dir("/chem/gun/");
|
||||
dir += name;
|
||||
@@ -122,7 +121,7 @@ G4MoleculeShootMessenger::G4MoleculeShootMessenger(const G4String& name,
|
||||
tmp += "/rndmPosition";
|
||||
fpGunRdnmPosition = new G4UIcmdWith3VectorAndUnit(tmp, this);
|
||||
|
||||
tmp = dir;
|
||||
tmp = std::move(dir);
|
||||
tmp += "/type";
|
||||
fpGunType = new G4UIcmdWithAString(tmp, this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user