Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ping Class Reference

#include <G4ping.hh>

Public Member Functions

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

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) {};

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 }
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout

◆ push_back() [1/3]

void G4ping::push_back ( G4double  aD)
inline

Definition at line 39 of file G4ping.hh.

39{theD.push_back(aD);}

◆ push_back() [2/3]

void G4ping::push_back ( G4LorentzVector  aV)
inline

Definition at line 40 of file G4ping.hh.

40{theV.push_back(aV);}

◆ push_back() [3/3]

void G4ping::push_back ( G4String  aS)
inline

Definition at line 38 of file G4ping.hh.

38{theS.push_back(aS);}

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