Geant4-11
Public Member Functions | Private Attributes
G4ping Class Reference

#include <G4ping.hh>

Public Member Functions

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

Private Attributes

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

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) {};
G4String theName
Definition: G4ping.hh:71

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:57
G4GLOB_DLL std::ostream G4cout
std::vector< G4double > theD
Definition: G4ping.hh:68
std::vector< G4String > theS
Definition: G4ping.hh:67
std::vector< G4LorentzVector > theV
Definition: G4ping.hh:69

References G4cout, G4endl, theD, theName, theS, and theV.

◆ push_back() [1/3]

void G4ping::push_back ( G4double  aD)
inline

Definition at line 40 of file G4ping.hh.

40{theD.push_back(aD);}

References theD.

◆ push_back() [2/3]

void G4ping::push_back ( G4LorentzVector  aV)
inline

Definition at line 41 of file G4ping.hh.

41{theV.push_back(aV);}

References theV.

◆ push_back() [3/3]

void G4ping::push_back ( G4String  aS)
inline

Definition at line 39 of file G4ping.hh.

39{theS.push_back(aS);}

References theS.

Field Documentation

◆ theD

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

Definition at line 68 of file G4ping.hh.

Referenced by dump(), and push_back().

◆ theName

G4String G4ping::theName
private

Definition at line 71 of file G4ping.hh.

Referenced by dump().

◆ theS

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

Definition at line 67 of file G4ping.hh.

Referenced by dump(), and push_back().

◆ theV

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

Definition at line 69 of file G4ping.hh.

Referenced by dump(), and push_back().


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