Geant4 11.2.2
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 34 of file G4ping.hh.

Constructor & Destructor Documentation

◆ G4ping()

G4ping::G4ping ( G4String aName)
inline

Definition at line 37 of file G4ping.hh.

37: theName(aName) {};

Member Function Documentation

◆ dump()

void G4ping::dump ( )
inline

Definition at line 43 of file G4ping.hh.

44 {
45 if(std::getenv(theName))
46 {
47 size_t i(0);
48 for(i=0; i<theS.size(); i++)
49 {
50 G4cout << theS[i]<<", ";
51 }
52 for(i=0; i<theD.size(); i++)
53 {
54 G4cout << theD[i]<<", ";
55 }
56 for(i=0; i<theV.size(); i++)
57 {
58 G4cout << theV[i]<<", ";
59 }
60 G4cout << G4endl;
61 }
62 theS.clear();
63 theD.clear();
64 theV.clear();
65 }
#define G4endl
Definition G4ios.hh:67
G4GLOB_DLL std::ostream G4cout

◆ push_back() [1/3]

void G4ping::push_back ( G4double aD)
inline

Definition at line 40 of file G4ping.hh.

40{theD.push_back(aD);}

◆ push_back() [2/3]

void G4ping::push_back ( G4LorentzVector aV)
inline

Definition at line 41 of file G4ping.hh.

41{theV.push_back(aV);}

◆ push_back() [3/3]

void G4ping::push_back ( G4String aS)
inline

Definition at line 39 of file G4ping.hh.

39{theS.push_back(aS);}

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