Geant4  10.02.p03
G4ping Class Reference

#include <G4ping.hh>

Collaboration diagram for G4ping:

Public Member Functions

 G4ping (G4String aName)
 
void push_back (G4String aS)
 
void push_back (G4double aD)
 
void push_back (G4LorentzVector aV)
 
void dump ()
 

Private Attributes

std::vector< G4StringtheS
 
std::vector< G4doubletheD
 
std::vector< G4LorentzVectortheV
 
G4String theName
 

Detailed Description

Definition at line 33 of file G4ping.hh.

Constructor & Destructor Documentation

◆ G4ping()

G4ping::G4ping ( G4String  aName)
inline

Definition at line 36 of file G4ping.hh.

36 : theName(aName) {};
G4String theName
Definition: G4ping.hh:70

Member Function Documentation

◆ dump()

void G4ping::dump ( )
inline

Definition at line 42 of file G4ping.hh.

43  {
44  if(getenv(theName))
45  {
46  size_t i(0);
47  for(i=0; i<theS.size(); i++)
48  {
49  G4cout << theS[i]<<", ";
50  }
51  for(i=0; i<theD.size(); i++)
52  {
53  G4cout << theD[i]<<", ";
54  }
55  for(i=0; i<theV.size(); i++)
56  {
57  G4cout << theV[i]<<", ";
58  }
59  G4cout << G4endl;
60  }
61  theS.clear();
62  theD.clear();
63  theV.clear();
64  }
std::vector< G4String > theS
Definition: G4ping.hh:66
std::vector< G4double > theD
Definition: G4ping.hh:67
G4GLOB_DLL std::ostream G4cout
G4String theName
Definition: G4ping.hh:70
#define G4endl
Definition: G4ios.hh:61
std::vector< G4LorentzVector > theV
Definition: G4ping.hh:68
Here is the caller graph for this function:

◆ push_back() [1/3]

void G4ping::push_back ( G4String  aS)
inline

Definition at line 38 of file G4ping.hh.

38 {theS.push_back(aS);}
std::vector< G4String > theS
Definition: G4ping.hh:66
Here is the caller graph for this function:

◆ push_back() [2/3]

void G4ping::push_back ( G4double  aD)
inline

Definition at line 39 of file G4ping.hh.

39 {theD.push_back(aD);}
std::vector< G4double > theD
Definition: G4ping.hh:67

◆ push_back() [3/3]

void G4ping::push_back ( G4LorentzVector  aV)
inline

Definition at line 40 of file G4ping.hh.

40 {theV.push_back(aV);}
std::vector< G4LorentzVector > theV
Definition: G4ping.hh:68

Member Data Documentation

◆ theD

std::vector<G4double> G4ping::theD
private

Definition at line 67 of file G4ping.hh.

◆ theName

G4String G4ping::theName
private

Definition at line 70 of file G4ping.hh.

◆ theS

std::vector<G4String> G4ping::theS
private

Definition at line 66 of file G4ping.hh.

◆ theV

std::vector<G4LorentzVector> G4ping::theV
private

Definition at line 68 of file G4ping.hh.


The documentation for this class was generated from the following file: