Public Member Functions | Private Attributes | List of all members
rb::SecondaryInteraction Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-09-23/RecoBase/Interaction.h"

Public Member Functions

 SecondaryInteraction ()
 
 ~SecondaryInteraction ()
 
 SecondaryInteraction (art::Ptr< rb::Vertex > vertex, std::vector< InteractionTrack > const &tracks, std::vector< InteractionShower > const &showers, std::vector< InteractionDiPhoton > const &diPhotons, std::map< int, uint32_t > const &particles, double const &parentPID, int const &parentPDG, art::Ptr< rb::Track > parentTrack=art::Ptr< rb::Track >())
 
art::Ptr< rb::Vertex > const & Vertex () const
 
std::vector< InteractionTrack > const & InteractionTracks () const
 
std::vector< InteractionShower > const & InteractionShowers () const
 
std::vector< InteractionDiPhoton > const & InteractionDiPhotons () const
 
uint32_t const NumberParticleX (int const &pdg) const
 
double const & ParentPID () const
 
int const & ParentPDG () const
 
art::Ptr< rb::TrackParentTrack () const
 

Private Attributes

art::Ptr< rb::VertexfVertex
 vertex of the secondary interaction More...
 
std::vector< InteractionTrackfTracks
 tracks related to this interaction More...
 
std::vector< InteractionShowerfShowers
 showers related to this interaction More...
 
std::vector< InteractionDiPhotonfDiPhotons
 diphotons related to this interaction More...
 
std::map< int, uint32_t > fParticles
 number of each particle species in the interaction More...
 
double fParentPID
 figure of merit for the guess as to the parent species More...
 
int fParentPDG
 best guess as to the parent particle More...
 
art::Ptr< rb::TrackfParentTrack
 track corresponding to parent particle More...
 

Detailed Description

Definition at line 33 of file Interaction.h.

Constructor & Destructor Documentation

rb::SecondaryInteraction::SecondaryInteraction ( )

Definition at line 12 of file Interaction.cxx.

13  {
14  }
rb::SecondaryInteraction::~SecondaryInteraction ( )

Definition at line 17 of file Interaction.cxx.

18  {
19  }
rb::SecondaryInteraction::SecondaryInteraction ( art::Ptr< rb::Vertex vertex,
std::vector< InteractionTrack > const &  tracks,
std::vector< InteractionShower > const &  showers,
std::vector< InteractionDiPhoton > const &  diPhotons,
std::map< int, uint32_t > const &  particles,
double const &  parentPID,
int const &  parentPDG,
art::Ptr< rb::Track parentTrack = art::Ptr<rb::Track>() 
)

Definition at line 22 of file Interaction.cxx.

30  : fVertex(vertex)
31  , fTracks(tracks)
32  , fShowers(showers)
33  , fDiPhotons(diPhotons)
34  , fParticles(particles)
35  , fParentPID(parentPID)
36  , fParentPDG(parentPDG)
37  , fParentTrack(parentTrack)
38  {
39 
40  }
std::map< int, uint32_t > fParticles
number of each particle species in the interaction
Definition: Interaction.h:45
art::Ptr< rb::Vertex > fVertex
vertex of the secondary interaction
Definition: Interaction.h:41
int fParentPDG
best guess as to the parent particle
Definition: Interaction.h:47
std::vector< InteractionShower > fShowers
showers related to this interaction
Definition: Interaction.h:43
std::vector< InteractionDiPhoton > fDiPhotons
diphotons related to this interaction
Definition: Interaction.h:44
double fParentPID
figure of merit for the guess as to the parent species
Definition: Interaction.h:46
art::Ptr< rb::Track > fParentTrack
track corresponding to parent particle
Definition: Interaction.h:48
std::vector< InteractionTrack > fTracks
tracks related to this interaction
Definition: Interaction.h:42

Member Function Documentation

std::vector< rb::InteractionDiPhoton > const & rb::SecondaryInteraction::InteractionDiPhotons ( ) const
inline

Definition at line 163 of file Interaction.h.

References fDiPhotons.

163 { return fDiPhotons; }
std::vector< InteractionDiPhoton > fDiPhotons
diphotons related to this interaction
Definition: Interaction.h:44
std::vector< rb::InteractionShower > const & rb::SecondaryInteraction::InteractionShowers ( ) const
inline

Definition at line 162 of file Interaction.h.

References fShowers.

162 { return fShowers; }
std::vector< InteractionShower > fShowers
showers related to this interaction
Definition: Interaction.h:43
std::vector< rb::InteractionTrack > const & rb::SecondaryInteraction::InteractionTracks ( ) const
inline

Definition at line 161 of file Interaction.h.

References fTracks.

161 { return fTracks; }
std::vector< InteractionTrack > fTracks
tracks related to this interaction
Definition: Interaction.h:42
uint32_t const rb::SecondaryInteraction::NumberParticleX ( int const &  pdg) const

Definition at line 52 of file Interaction.cxx.

References fParticles.

53  {
54  // See if the given particle is in the species map, and if so
55  // return the value of the map for that species
56  if(fParticles.count(pdg) > 0) return fParticles.find(pdg)->second;
57 
58  return 0;
59  }
std::map< int, uint32_t > fParticles
number of each particle species in the interaction
Definition: Interaction.h:45
int const & rb::SecondaryInteraction::ParentPDG ( ) const
inline

Definition at line 165 of file Interaction.h.

References fParentPDG.

165 { return fParentPDG; }
int fParentPDG
best guess as to the parent particle
Definition: Interaction.h:47
double const & rb::SecondaryInteraction::ParentPID ( ) const
inline

Definition at line 164 of file Interaction.h.

References fParentPID.

164 { return fParentPID; }
double fParentPID
figure of merit for the guess as to the parent species
Definition: Interaction.h:46
art::Ptr< rb::Track > rb::SecondaryInteraction::ParentTrack ( ) const

Definition at line 43 of file Interaction.cxx.

References fParentTrack, and art::Ptr< T >::isNull().

44  {
45  if( fParentTrack.isNull() )
46  throw cet::exception("SecondaryInteraction") << "parent track is an invalid ptr";
47 
48  return fParentTrack;
49  }
::xsd::cxx::tree::exception< char > exception
Definition: Database.h:225
bool isNull() const
Definition: Ptr.h:328
art::Ptr< rb::Track > fParentTrack
track corresponding to parent particle
Definition: Interaction.h:48
art::Ptr< rb::Vertex > const & rb::SecondaryInteraction::Vertex ( ) const
inline

Definition at line 160 of file Interaction.h.

References fVertex.

160 { return fVertex; }
art::Ptr< rb::Vertex > fVertex
vertex of the secondary interaction
Definition: Interaction.h:41

Member Data Documentation

std::vector<InteractionDiPhoton> rb::SecondaryInteraction::fDiPhotons
private

diphotons related to this interaction

Definition at line 44 of file Interaction.h.

Referenced by InteractionDiPhotons(), and rb::Interaction::InteractionDiPhotons().

int rb::SecondaryInteraction::fParentPDG
private

best guess as to the parent particle

Definition at line 47 of file Interaction.h.

Referenced by ParentPDG().

double rb::SecondaryInteraction::fParentPID
private

figure of merit for the guess as to the parent species

Definition at line 46 of file Interaction.h.

Referenced by ParentPID().

art::Ptr<rb::Track> rb::SecondaryInteraction::fParentTrack
private

track corresponding to parent particle

Definition at line 48 of file Interaction.h.

Referenced by ParentTrack().

std::map<int, uint32_t> rb::SecondaryInteraction::fParticles
private

number of each particle species in the interaction

Definition at line 45 of file Interaction.h.

Referenced by NumberParticleX().

std::vector<InteractionShower> rb::SecondaryInteraction::fShowers
private

showers related to this interaction

Definition at line 43 of file Interaction.h.

Referenced by InteractionShowers(), and rb::Interaction::InteractionShowers().

std::vector<InteractionTrack> rb::SecondaryInteraction::fTracks
private

tracks related to this interaction

Definition at line 42 of file Interaction.h.

Referenced by InteractionTracks(), and rb::Interaction::InteractionTracks().

art::Ptr<rb::Vertex> rb::SecondaryInteraction::fVertex
private

vertex of the secondary interaction

Definition at line 41 of file Interaction.h.

Referenced by Vertex().


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