Analysis Software
Documentation for sPHENIX simulation software
|
KFParticle container object. More...
#include <coresoftware/blob/master/offline/packages/KFParticle_sPHENIX/KFParticle_Container.h>
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_Container & | operator= (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 | |
PHObject * | CloneMe () const override |
Virtual copy constructor. | |
bool | empty () const |
size_t | size () const |
size_t | count (unsigned int key) const |
void | clear () |
const KFParticle * | get (unsigned int key) const |
KFParticle * | get (unsigned int key) |
ConstIter | begin () const |
ConstIter | find (unsigned int key) const |
ConstIter | end () const |
Iter | begin () |
Iter | find (unsigned int key) |
Iter | end () |
KFParticle * | insert (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 PHObject * | clone () const final |
PHObject * | Clone (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 |
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
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
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().
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.
|
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().
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.
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().
|
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().
|
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.
|
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().
|
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().
|
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.
|
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.
|
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().
|
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.
|
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.
|
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().
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.
|
overridevirtual |
identify Function from PHObject
os | Output 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().
|
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().
|
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().
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().
|
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().
|
private |
Definition at line 66 of file KFParticle_Container.h.
View newest version in sPHENIX GitHub at line 66 of file KFParticle_Container.h
Referenced by addParticleSpecifyKey(), begin(), count(), empty(), end(), erase(), find(), get(), identify(), insert(), KFParticle_Container(), operator=(), Reset(), returnParticlesByPDGid(), and size().