Import Geant4 11.3.0 source tree
This commit is contained in:
@@ -33,27 +33,28 @@
|
||||
|
||||
class G4ping
|
||||
{
|
||||
public:
|
||||
G4ping(G4String aName) : theName(aName) {};
|
||||
public:
|
||||
|
||||
G4ping(const G4String& aName) : theName(aName) {}
|
||||
|
||||
void push_back(G4String aS) {theS.push_back(aS);}
|
||||
void push_back(const G4String& aS) {theS.push_back(aS);}
|
||||
void push_back(G4double aD) {theD.push_back(aD);}
|
||||
void push_back(G4LorentzVector aV) {theV.push_back(aV);}
|
||||
void push_back(const G4LorentzVector& aV) {theV.push_back(aV);}
|
||||
|
||||
void dump()
|
||||
{
|
||||
if(std::getenv(theName))
|
||||
{
|
||||
size_t i(0);
|
||||
for(i=0; i<theS.size(); i++)
|
||||
std::size_t i(0);
|
||||
for(i=0; i<theS.size(); ++i)
|
||||
{
|
||||
G4cout << theS[i]<<", ";
|
||||
}
|
||||
for(i=0; i<theD.size(); i++)
|
||||
for(i=0; i<theD.size(); ++i)
|
||||
{
|
||||
G4cout << theD[i]<<", ";
|
||||
}
|
||||
for(i=0; i<theV.size(); i++)
|
||||
for(i=0; i<theV.size(); ++i)
|
||||
{
|
||||
G4cout << theV[i]<<", ";
|
||||
}
|
||||
@@ -63,7 +64,9 @@
|
||||
theD.clear();
|
||||
theV.clear();
|
||||
}
|
||||
private:
|
||||
|
||||
private:
|
||||
|
||||
std::vector<G4String> theS;
|
||||
std::vector<G4double> theD;
|
||||
std::vector<G4LorentzVector> theV;
|
||||
|
||||
Reference in New Issue
Block a user