Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
KFParticle_Container Class Reference

KFParticle container object. More...

#include <coresoftware/blob/master/offline/packages/KFParticle_sPHENIX/KFParticle_Container.h>

+ Inheritance diagram for KFParticle_Container:
+ Collaboration diagram for KFParticle_Container:

Public Types

using Map = std::map< unsigned int, KFParticle * >
 
using ConstIter = Map::const_iterator
 
using Iter = Map::iterator
 

Public Member Functions

 KFParticle_Container ()
 
 KFParticle_Container (const KFParticle_Container &kfparticlemap)
 
KFParticle_Containeroperator= (const KFParticle_Container &kfparticlemap)
 
 ~KFParticle_Container () override
 
void identify (std::ostream &os=std::cout) const override
 
void Reset () override
 Clear Event.
 
int isValid () const override
 isValid returns non zero if object contains vailid data
 
PHObjectCloneMe () const override
 Virtual copy constructor.
 
bool empty () const
 
size_t size () const
 
size_t count (unsigned int key) const
 
void clear ()
 
const KFParticleget (unsigned int key) const
 
KFParticleget (unsigned int key)
 
ConstIter begin () const
 
ConstIter find (unsigned int key) const
 
ConstIter end () const
 
Iter begin ()
 
Iter find (unsigned int key)
 
Iter end ()
 
KFParticleinsert (const KFParticle *particle)
 
ConstIter addParticle (KFParticle *particle)
 
ConstIter addParticleSpecifyKey (unsigned int key, KFParticle *particle)
 
Map returnParticlesByPDGid (int PDGid)
 Use the PDG MC ID to return a subset of the KFParticle container, if those particle exist in the container.
 
size_t erase (unsigned int key)
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor
 
 ~PHObject () override
 dtor
 
virtual PHObjectclone () const final
 
PHObjectClone (const char *newname="") const final
 
void Copy (TObject &object) const final
 
virtual int Integrate () const
 
virtual int Integrate (PHObject *)
 
virtual void CopyFrom (const PHObject *obj)
 

Private Attributes

Map m_kfpmap
 

Detailed Description

KFParticle container object.

Container for KFParticle objects, based off SvtxTrackMap

Definition at line 22 of file KFParticle_Container.h.

View newest version in sPHENIX GitHub at line 22 of file KFParticle_Container.h

Member Typedef Documentation

using KFParticle_Container::ConstIter = Map::const_iterator

Definition at line 26 of file KFParticle_Container.h.

View newest version in sPHENIX GitHub at line 26 of file KFParticle_Container.h

using KFParticle_Container::Iter = Map::iterator

Definition at line 27 of file KFParticle_Container.h.

View newest version in sPHENIX GitHub at line 27 of file KFParticle_Container.h

using KFParticle_Container::Map = std::map<unsigned int, KFParticle*>

Definition at line 25 of file KFParticle_Container.h.

View newest version in sPHENIX GitHub at line 25 of file KFParticle_Container.h

Constructor & Destructor Documentation

KFParticle_Container::KFParticle_Container ( )

Definition at line 19 of file KFParticle_Container.cc.

View newest version in sPHENIX GitHub at line 19 of file KFParticle_Container.cc

Referenced by CloneMe().

+ Here is the caller graph for this function:

KFParticle_Container::KFParticle_Container ( const KFParticle_Container kfparticlemap)

Definition at line 24 of file KFParticle_Container.cc.

View newest version in sPHENIX GitHub at line 24 of file KFParticle_Container.cc

References KFParticleBase::Id(), m_kfpmap, and particle.

+ Here is the call graph for this function:

KFParticle_Container::~KFParticle_Container ( )
override

Definition at line 45 of file KFParticle_Container.cc.

View newest version in sPHENIX GitHub at line 45 of file KFParticle_Container.cc

References Reset().

+ Here is the call graph for this function:

Member Function Documentation

KFParticle_Container::ConstIter KFParticle_Container::addParticle ( KFParticle particle)

Definition at line 99 of file KFParticle_Container.cc.

View newest version in sPHENIX GitHub at line 99 of file KFParticle_Container.cc

References addParticleSpecifyKey(), KFParticleBase::Id(), and particle.

+ Here is the call graph for this function:

KFParticle_Container::ConstIter KFParticle_Container::addParticleSpecifyKey ( unsigned int  key,
KFParticle particle 
)

Definition at line 105 of file KFParticle_Container.cc.

View newest version in sPHENIX GitHub at line 105 of file KFParticle_Container.cc

References m_kfpmap.

Referenced by addParticle().

+ Here is the caller graph for this function:

ConstIter KFParticle_Container::begin ( void  ) const
inline

Definition at line 48 of file KFParticle_Container.h.

View newest version in sPHENIX GitHub at line 48 of file KFParticle_Container.h

References m_kfpmap.

Referenced by QAG4SimulationKFParticle::process_event().

+ Here is the caller graph for this function:

Iter KFParticle_Container::begin ( void  )
inline

Definition at line 52 of file KFParticle_Container.h.

View newest version in sPHENIX GitHub at line 52 of file KFParticle_Container.h

References m_kfpmap.

void KFParticle_Container::clear ( )
inline

Definition at line 43 of file KFParticle_Container.h.

View newest version in sPHENIX GitHub at line 43 of file KFParticle_Container.h

References Reset().

+ Here is the call graph for this function:

PHObject* KFParticle_Container::CloneMe ( ) const
inlineoverridevirtual

Virtual copy constructor.

Reimplemented from PHObject.

Definition at line 38 of file KFParticle_Container.h.

View newest version in sPHENIX GitHub at line 38 of file KFParticle_Container.h

References KFParticle_Container().

+ Here is the call graph for this function:

size_t KFParticle_Container::count ( unsigned int  key) const
inline

Definition at line 42 of file KFParticle_Container.h.

View newest version in sPHENIX GitHub at line 42 of file KFParticle_Container.h

References m_kfpmap.

bool KFParticle_Container::empty ( ) const
inline

Definition at line 40 of file KFParticle_Container.h.

View newest version in sPHENIX GitHub at line 40 of file KFParticle_Container.h

References m_kfpmap.

ConstIter KFParticle_Container::end ( void  ) const
inline

Definition at line 50 of file KFParticle_Container.h.

View newest version in sPHENIX GitHub at line 50 of file KFParticle_Container.h

References m_kfpmap.

Referenced by QAG4SimulationKFParticle::process_event().

+ Here is the caller graph for this function:

Iter KFParticle_Container::end ( void  )
inline

Definition at line 54 of file KFParticle_Container.h.

View newest version in sPHENIX GitHub at line 54 of file KFParticle_Container.h

References m_kfpmap.

size_t KFParticle_Container::erase ( unsigned int  key)

Definition at line 135 of file KFParticle_Container.cc.

View newest version in sPHENIX GitHub at line 135 of file KFParticle_Container.cc

References m_kfpmap.

ConstIter KFParticle_Container::find ( unsigned int  key) const
inline

Definition at line 49 of file KFParticle_Container.h.

View newest version in sPHENIX GitHub at line 49 of file KFParticle_Container.h

References m_kfpmap.

Iter KFParticle_Container::find ( unsigned int  key)
inline

Definition at line 53 of file KFParticle_Container.h.

View newest version in sPHENIX GitHub at line 53 of file KFParticle_Container.h

References m_kfpmap.

const KFParticle * KFParticle_Container::get ( unsigned int  key) const

Definition at line 66 of file KFParticle_Container.cc.

View newest version in sPHENIX GitHub at line 66 of file KFParticle_Container.cc

References m_kfpmap.

Referenced by BuildResonanceJetTaggingTree::loopHFHadronic(), and ResonanceJetTagging::tagHFHadronic().

+ Here is the caller graph for this function:

KFParticle * KFParticle_Container::get ( unsigned int  key)

Definition at line 76 of file KFParticle_Container.cc.

View newest version in sPHENIX GitHub at line 76 of file KFParticle_Container.cc

References m_kfpmap.

void KFParticle_Container::identify ( std::ostream &  os = std::cout) const
overridevirtual

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from PHObject.

Definition at line 60 of file KFParticle_Container.cc.

View newest version in sPHENIX GitHub at line 60 of file KFParticle_Container.cc

References m_kfpmap.

KFParticle * KFParticle_Container::insert ( const KFParticle particle)

Definition at line 86 of file KFParticle_Container.cc.

View newest version in sPHENIX GitHub at line 86 of file KFParticle_Container.cc

References index, and m_kfpmap.

Referenced by KFParticle_DST::fillParticleNode_Particle().

+ Here is the caller graph for this function:

int KFParticle_Container::isValid ( ) const
inlineoverridevirtual

isValid returns non zero if object contains vailid data

Reimplemented from PHObject.

Definition at line 37 of file KFParticle_Container.h.

View newest version in sPHENIX GitHub at line 37 of file KFParticle_Container.h

KFParticle_Container & KFParticle_Container::operator= ( const KFParticle_Container kfparticlemap)

Definition at line 34 of file KFParticle_Container.cc.

View newest version in sPHENIX GitHub at line 34 of file KFParticle_Container.cc

References KFParticleBase::Id(), m_kfpmap, particle, and Reset().

+ Here is the call graph for this function:

void KFParticle_Container::Reset ( )
overridevirtual

Clear Event.

Reimplemented from PHObject.

Definition at line 50 of file KFParticle_Container.cc.

View newest version in sPHENIX GitHub at line 50 of file KFParticle_Container.cc

References m_kfpmap, and particle.

Referenced by clear(), operator=(), and ~KFParticle_Container().

+ Here is the caller graph for this function:

KFParticle_Container::Map KFParticle_Container::returnParticlesByPDGid ( int  PDGid)

Use the PDG MC ID to return a subset of the KFParticle container, if those particle exist in the container.

Definition at line 120 of file KFParticle_Container.cc.

View newest version in sPHENIX GitHub at line 120 of file KFParticle_Container.cc

References m_kfpmap.

Referenced by QAG4SimulationKFParticle::process_event().

+ Here is the caller graph for this function:

size_t KFParticle_Container::size ( void  ) const
inline

Definition at line 41 of file KFParticle_Container.h.

View newest version in sPHENIX GitHub at line 41 of file KFParticle_Container.h

References m_kfpmap.

Referenced by ResonanceJetTagging::tagHFHadronic().

+ Here is the caller graph for this function:

Member Data Documentation

Map KFParticle_Container::m_kfpmap
private

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