LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
artg4tk::ArtG4tkVtx Class Reference

#include "ArtG4tkVtx.hh"

Public Member Functions

 ArtG4tkVtx ()
 
 ArtG4tkVtx (const CLHEP::HepLorentzVector &pos, const std::string &pvname, const std::string &mname)
 
 ArtG4tkVtx (const ArtG4tkVtx &rhs)
 
 ~ArtG4tkVtx ()
 
void Clear ()
 
void SetPosition (const CLHEP::HepLorentzVector &pos)
 
void SetPhysVolumeName (const std::string &pvname)
 
void SetMaterialName (const std::string &mname)
 
void SetIncoming (const ArtG4tkParticle &pin)
 
void SetIncoming (const int pdg, const CLHEP::Hep3Vector &mom)
 
void SetIncoming (const int pdg, const CLHEP::HepLorentzVector &mom)
 
void AddOutcoming (const ArtG4tkParticle &pout)
 
const CLHEP::HepLorentzVector & GetPosition () const
 
const std::string & GetPhysVolumeName () const
 
const std::string & GetMaterialName () const
 
const ArtG4tkParticleGetIncoming () const
 
int GetNumOutcoming () const
 
const std::vector< ArtG4tkParticle > & GetAllOutcoming () const
 
const ArtG4tkParticleGetOutcoming (int i) const
 
bool operator< (const ArtG4tkVtx &) const
 

Private Attributes

CLHEP::HepLorentzVector fPosition
 
std::string fPhysVolumeName
 
std::string fMaterialName
 
ArtG4tkParticle fIncoming
 
std::vector< ArtG4tkParticlefOutcoming
 

Detailed Description

Definition at line 11 of file ArtG4tkVtx.hh.

Constructor & Destructor Documentation

artg4tk::ArtG4tkVtx::ArtG4tkVtx ( )
inline

Definition at line 17 of file ArtG4tkVtx.hh.

std::vector< ArtG4tkParticle > fOutcoming
Definition: ArtG4tkVtx.hh:145
ArtG4tkParticle fIncoming
Definition: ArtG4tkVtx.hh:144
std::string fMaterialName
Definition: ArtG4tkVtx.hh:143
std::string fPhysVolumeName
Definition: ArtG4tkVtx.hh:142
artg4tk::ArtG4tkVtx::ArtG4tkVtx ( const CLHEP::HepLorentzVector &  pos,
const std::string &  pvname,
const std::string &  mname 
)
inline

Definition at line 18 of file ArtG4tkVtx.hh.

21  : fPosition(pos), fPhysVolumeName(pvname), fMaterialName(mname), fIncoming(), fOutcoming()
22  {}
std::vector< ArtG4tkParticle > fOutcoming
Definition: ArtG4tkVtx.hh:145
ArtG4tkParticle fIncoming
Definition: ArtG4tkVtx.hh:144
CLHEP::HepLorentzVector fPosition
Definition: ArtG4tkVtx.hh:141
std::string fMaterialName
Definition: ArtG4tkVtx.hh:143
std::string fPhysVolumeName
Definition: ArtG4tkVtx.hh:142
artg4tk::ArtG4tkVtx::ArtG4tkVtx ( const ArtG4tkVtx rhs)
inline

Definition at line 23 of file ArtG4tkVtx.hh.

24  : fPosition(rhs.fPosition)
25  , fPhysVolumeName(rhs.fPhysVolumeName)
26  , fMaterialName(rhs.fMaterialName)
27  , fIncoming(rhs.fIncoming)
28  , fOutcoming(rhs.fOutcoming)
29  {}
std::vector< ArtG4tkParticle > fOutcoming
Definition: ArtG4tkVtx.hh:145
ArtG4tkParticle fIncoming
Definition: ArtG4tkVtx.hh:144
CLHEP::HepLorentzVector fPosition
Definition: ArtG4tkVtx.hh:141
std::string fMaterialName
Definition: ArtG4tkVtx.hh:143
std::string fPhysVolumeName
Definition: ArtG4tkVtx.hh:142
artg4tk::ArtG4tkVtx::~ArtG4tkVtx ( )
inline

Definition at line 30 of file ArtG4tkVtx.hh.

30 {}

Member Function Documentation

void artg4tk::ArtG4tkVtx::AddOutcoming ( const ArtG4tkParticle pout)
inline

Definition at line 83 of file ArtG4tkVtx.hh.

References fOutcoming.

84  {
85  fOutcoming.push_back(pout);
86  return;
87  }
std::vector< ArtG4tkParticle > fOutcoming
Definition: ArtG4tkVtx.hh:145
void artg4tk::ArtG4tkVtx::Clear ( )
inline

Definition at line 33 of file ArtG4tkVtx.hh.

References fIncoming, fMaterialName, fOutcoming, fPhysVolumeName, and fPosition.

34  {
35  fPosition = CLHEP::HepLorentzVector(0., 0., 0., 0);
36  fPhysVolumeName = "";
37  fMaterialName = "";
38  fIncoming = ArtG4tkParticle();
39  fOutcoming.clear();
40  return;
41  }
std::vector< ArtG4tkParticle > fOutcoming
Definition: ArtG4tkVtx.hh:145
ArtG4tkParticle fIncoming
Definition: ArtG4tkVtx.hh:144
CLHEP::HepLorentzVector fPosition
Definition: ArtG4tkVtx.hh:141
std::string fMaterialName
Definition: ArtG4tkVtx.hh:143
std::string fPhysVolumeName
Definition: ArtG4tkVtx.hh:142
const std::vector<ArtG4tkParticle>& artg4tk::ArtG4tkVtx::GetAllOutcoming ( ) const
inline

Definition at line 115 of file ArtG4tkVtx.hh.

References fOutcoming.

116  {
117  return fOutcoming;
118  }
std::vector< ArtG4tkParticle > fOutcoming
Definition: ArtG4tkVtx.hh:145
const ArtG4tkParticle& artg4tk::ArtG4tkVtx::GetIncoming ( ) const
inline

Definition at line 105 of file ArtG4tkVtx.hh.

References fIncoming.

106  {
107  return fIncoming;
108  }
ArtG4tkParticle fIncoming
Definition: ArtG4tkVtx.hh:144
const std::string& artg4tk::ArtG4tkVtx::GetMaterialName ( ) const
inline

Definition at line 100 of file ArtG4tkVtx.hh.

References fMaterialName.

101  {
102  return fMaterialName;
103  }
std::string fMaterialName
Definition: ArtG4tkVtx.hh:143
int artg4tk::ArtG4tkVtx::GetNumOutcoming ( ) const
inline

Definition at line 110 of file ArtG4tkVtx.hh.

References fOutcoming.

111  {
112  return fOutcoming.size();
113  }
std::vector< ArtG4tkParticle > fOutcoming
Definition: ArtG4tkVtx.hh:145
const ArtG4tkParticle& artg4tk::ArtG4tkVtx::GetOutcoming ( int  i) const
inline

Definition at line 120 of file ArtG4tkVtx.hh.

References fOutcoming.

121  {
122  return fOutcoming[i];
123  }
std::vector< ArtG4tkParticle > fOutcoming
Definition: ArtG4tkVtx.hh:145
const std::string& artg4tk::ArtG4tkVtx::GetPhysVolumeName ( ) const
inline

Definition at line 95 of file ArtG4tkVtx.hh.

References fPhysVolumeName.

96  {
97  return fPhysVolumeName;
98  }
std::string fPhysVolumeName
Definition: ArtG4tkVtx.hh:142
const CLHEP::HepLorentzVector& artg4tk::ArtG4tkVtx::GetPosition ( ) const
inline

Definition at line 90 of file ArtG4tkVtx.hh.

References fPosition.

91  {
92  return fPosition;
93  }
CLHEP::HepLorentzVector fPosition
Definition: ArtG4tkVtx.hh:141
bool artg4tk::ArtG4tkVtx::operator< ( const ArtG4tkVtx ) const
inline

Definition at line 133 of file ArtG4tkVtx.hh.

134  {
135  return true;
136  }
void artg4tk::ArtG4tkVtx::SetIncoming ( const ArtG4tkParticle pin)
inline

Definition at line 63 of file ArtG4tkVtx.hh.

References fIncoming.

64  {
65  fIncoming = pin;
66  return;
67  }
ArtG4tkParticle fIncoming
Definition: ArtG4tkVtx.hh:144
void artg4tk::ArtG4tkVtx::SetIncoming ( const int  pdg,
const CLHEP::Hep3Vector &  mom 
)
inline

Definition at line 69 of file ArtG4tkVtx.hh.

References fIncoming, artg4tk::ArtG4tkParticle::SetMomentum(), and artg4tk::ArtG4tkParticle::SetPDG().

70  {
71  fIncoming.SetPDG(pdg);
73  return;
74  }
ArtG4tkParticle fIncoming
Definition: ArtG4tkVtx.hh:144
void SetMomentum(const CLHEP::HepLorentzVector &)
void artg4tk::ArtG4tkVtx::SetIncoming ( const int  pdg,
const CLHEP::HepLorentzVector &  mom 
)
inline

Definition at line 76 of file ArtG4tkVtx.hh.

References fIncoming, artg4tk::ArtG4tkParticle::SetMomentum(), and artg4tk::ArtG4tkParticle::SetPDG().

77  {
78  fIncoming.SetPDG(pdg);
80  return;
81  }
ArtG4tkParticle fIncoming
Definition: ArtG4tkVtx.hh:144
void SetMomentum(const CLHEP::HepLorentzVector &)
void artg4tk::ArtG4tkVtx::SetMaterialName ( const std::string &  mname)
inline

Definition at line 56 of file ArtG4tkVtx.hh.

References fMaterialName.

57  {
58  fMaterialName = mname;
59  return;
60  }
std::string fMaterialName
Definition: ArtG4tkVtx.hh:143
void artg4tk::ArtG4tkVtx::SetPhysVolumeName ( const std::string &  pvname)
inline

Definition at line 50 of file ArtG4tkVtx.hh.

References fPhysVolumeName.

51  {
52  fPhysVolumeName = pvname;
53  return;
54  }
std::string fPhysVolumeName
Definition: ArtG4tkVtx.hh:142
void artg4tk::ArtG4tkVtx::SetPosition ( const CLHEP::HepLorentzVector &  pos)
inline

Definition at line 44 of file ArtG4tkVtx.hh.

References fPosition.

45  {
46  fPosition = pos;
47  return;
48  }
CLHEP::HepLorentzVector fPosition
Definition: ArtG4tkVtx.hh:141

Member Data Documentation

ArtG4tkParticle artg4tk::ArtG4tkVtx::fIncoming
private

Definition at line 144 of file ArtG4tkVtx.hh.

Referenced by Clear(), GetIncoming(), and SetIncoming().

std::string artg4tk::ArtG4tkVtx::fMaterialName
private

Definition at line 143 of file ArtG4tkVtx.hh.

Referenced by Clear(), GetMaterialName(), and SetMaterialName().

std::vector<ArtG4tkParticle> artg4tk::ArtG4tkVtx::fOutcoming
private

Definition at line 145 of file ArtG4tkVtx.hh.

Referenced by AddOutcoming(), Clear(), GetAllOutcoming(), GetNumOutcoming(), and GetOutcoming().

std::string artg4tk::ArtG4tkVtx::fPhysVolumeName
private

Definition at line 142 of file ArtG4tkVtx.hh.

Referenced by Clear(), GetPhysVolumeName(), and SetPhysVolumeName().

CLHEP::HepLorentzVector artg4tk::ArtG4tkVtx::fPosition
private

Definition at line 141 of file ArtG4tkVtx.hh.

Referenced by Clear(), GetPosition(), and SetPosition().


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