#include <MCTruthParticleList.h>
Classes | |
| struct | archived_info_type |
Public Types | |
| typedef std::map< int, const simb::MCParticle * > | list_type |
| typedef list_type::key_type | key_type |
| typedef list_type::mapped_type | mapped_type |
| typedef list_type::value_type | value_type |
| typedef list_type::iterator | iterator |
| typedef list_type::const_iterator | const_iterator |
| typedef list_type::reverse_iterator | reverse_iterator |
| typedef list_type::const_reverse_iterator | const_reverse_iterator |
| typedef list_type::size_type | size_type |
| typedef list_type::difference_type | difference_type |
| typedef list_type::key_compare | key_compare |
| typedef list_type::allocator_type | allocator_type |
Public Member Functions | |
| MCTruthParticleList () | |
| virtual | ~MCTruthParticleList () |
| MCTruthParticleList (const MCTruthParticleList &rhs)=delete | |
| MCTruthParticleList & | operator= (const MCTruthParticleList &rhs)=delete |
| MCTruthParticleList (MCTruthParticleList &&rhs)=default | |
| MCTruthParticleList & | operator= (MCTruthParticleList &&rhs)=default |
| MCTruthParticleList | MakeCopy () const |
| Returns a copy of this object. More... | |
| void | Cut (const double &) |
| const key_type & | TrackId (const size_type) const |
| mapped_type const & | Particle (const size_type) const |
| mapped_type | Particle (const size_type) |
| bool | HasParticle (int trackID) const |
| Returns whether we have this particle, live (with full information) More... | |
| bool | KnownParticle (int trackID) const |
| Returns whether we have had this particle, archived or live. More... | |
| bool | IsPrimary (int trackID) const |
| int | NumberOfPrimaries () const |
| std::vector< const simb::MCParticle * > | GetPrimaries () const |
| const simb::MCParticle * | Primary (const int) const |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| reverse_iterator | rbegin () |
| const_reverse_iterator | rbegin () const |
| reverse_iterator | rend () |
| const_reverse_iterator | rend () const |
| size_type | size () const |
| bool | empty () const |
| void | swap (MCTruthParticleList &other) |
| iterator | find (const key_type &key) |
| const_iterator | find (const key_type &key) const |
| iterator | upper_bound (const key_type &key) |
| const_iterator | upper_bound (const key_type &key) const |
| iterator | lower_bound (const key_type &key) |
| const_iterator | lower_bound (const key_type &key) const |
| mapped_type const & | operator[] (const key_type &key) const |
| mapped_type | operator[] (const key_type &key) |
| mapped_type | at (const key_type &key) |
| mapped_type const & | at (const key_type &key) const |
| key_type | key (mapped_type const &part) const |
| Extracts the key from the specified value. More... | |
| void | insert (const simb::MCParticle *value) |
| void | Add (const simb::MCParticle *value) |
| void | Archive (const key_type &key) |
| Removes the particle from the list, keeping minimal info of it. More... | |
| void | Archive (const mapped_type &key) |
| int | GetMotherOf (const key_type &key) const |
| This function seeks for the exact key, not its absolute value. More... | |
| void | clear () |
| size_type | erase (const key_type &key) |
| iterator | erase (iterator key) |
| int | EveId (const int trackID) const |
| void | AdoptEveIdCalculator (MCTruthEveIdCalculator *) const |
Private Types | |
| typedef std::set< int > | primaries_type |
| typedef std::map< int, archived_info_type > | archive_type |
| typedef primaries_type::iterator | primaries_iterator |
| typedef primaries_type::const_iterator | primaries_const_iterator |
Private Attributes | |
| list_type | m_MCTruthParticleList |
| Sorted list of particles in the event. More... | |
| primaries_type | m_primaries |
| archive_type | m_archive |
| archive of the particles no longer among us More... | |
| std::unique_ptr < MCTruthEveIdCalculator > | m_eveIdCalculator |
Friends | |
| std::ostream & | operator<< (std::ostream &output, const MCTruthParticleList &) |
| std::ostream & | operator<< (std::ostream &output, const MCTruthParticleList::archived_info_type &) |
Definition at line 128 of file MCTruthParticleList.h.
| typedef list_type::allocator_type truth::MCTruthParticleList::allocator_type |
Definition at line 145 of file MCTruthParticleList.h.
|
private |
Definition at line 173 of file MCTruthParticleList.h.
| typedef list_type::const_iterator truth::MCTruthParticleList::const_iterator |
Definition at line 139 of file MCTruthParticleList.h.
| typedef list_type::const_reverse_iterator truth::MCTruthParticleList::const_reverse_iterator |
Definition at line 141 of file MCTruthParticleList.h.
| typedef list_type::difference_type truth::MCTruthParticleList::difference_type |
Definition at line 143 of file MCTruthParticleList.h.
| typedef list_type::iterator truth::MCTruthParticleList::iterator |
Definition at line 138 of file MCTruthParticleList.h.
| typedef list_type::key_compare truth::MCTruthParticleList::key_compare |
Definition at line 144 of file MCTruthParticleList.h.
| typedef list_type::key_type truth::MCTruthParticleList::key_type |
Definition at line 135 of file MCTruthParticleList.h.
| typedef std::map<int,const simb::MCParticle*> truth::MCTruthParticleList::list_type |
Definition at line 134 of file MCTruthParticleList.h.
| typedef list_type::mapped_type truth::MCTruthParticleList::mapped_type |
Definition at line 136 of file MCTruthParticleList.h.
|
private |
Definition at line 175 of file MCTruthParticleList.h.
|
private |
Definition at line 174 of file MCTruthParticleList.h.
|
private |
Definition at line 172 of file MCTruthParticleList.h.
| typedef list_type::reverse_iterator truth::MCTruthParticleList::reverse_iterator |
Definition at line 140 of file MCTruthParticleList.h.
| typedef list_type::size_type truth::MCTruthParticleList::size_type |
Definition at line 142 of file MCTruthParticleList.h.
| typedef list_type::value_type truth::MCTruthParticleList::value_type |
Definition at line 137 of file MCTruthParticleList.h.
| truth::MCTruthParticleList::MCTruthParticleList | ( | ) |
Definition at line 37 of file MCTruthParticleList.cxx.
|
virtual |
Definition at line 43 of file MCTruthParticleList.cxx.
|
delete |
|
default |
|
inline |
Definition at line 325 of file MCTruthParticleList.h.
| void truth::MCTruthParticleList::AdoptEveIdCalculator | ( | MCTruthEveIdCalculator * | calc | ) | const |
Definition at line 398 of file MCTruthParticleList.cxx.
| void truth::MCTruthParticleList::Archive | ( | const key_type & | key | ) |
Removes the particle from the list, keeping minimal info of it.
Definition at line 283 of file MCTruthParticleList.cxx.
| void truth::MCTruthParticleList::Archive | ( | const mapped_type & | key | ) |
Definition at line 298 of file MCTruthParticleList.cxx.
|
inline |
Definition at line 340 of file MCTruthParticleList.h.
|
inline |
Definition at line 342 of file MCTruthParticleList.h.
|
inline |
Definition at line 315 of file MCTruthParticleList.h.
|
inline |
Definition at line 316 of file MCTruthParticleList.h.
| void truth::MCTruthParticleList::clear | ( | ) |
Definition at line 311 of file MCTruthParticleList.cxx.
| void truth::MCTruthParticleList::Cut | ( | const double & | cut | ) |
Definition at line 66 of file MCTruthParticleList.cxx.
|
inline |
Definition at line 324 of file MCTruthParticleList.h.
|
inline |
Definition at line 317 of file MCTruthParticleList.h.
|
inline |
Definition at line 318 of file MCTruthParticleList.h.
| MCTruthParticleList::size_type truth::MCTruthParticleList::erase | ( | const key_type & | key | ) |
Definition at line 326 of file MCTruthParticleList.cxx.
| MCTruthParticleList::iterator truth::MCTruthParticleList::erase | ( | iterator | key | ) |
Definition at line 320 of file MCTruthParticleList.cxx.
| int truth::MCTruthParticleList::EveId | ( | const int | trackID | ) | const |
Definition at line 371 of file MCTruthParticleList.cxx.
|
inline |
Definition at line 328 of file MCTruthParticleList.h.
|
inline |
Definition at line 330 of file MCTruthParticleList.h.
| int truth::MCTruthParticleList::GetMotherOf | ( | const key_type & | key | ) | const |
This function seeks for the exact key, not its absolute value.
Definition at line 304 of file MCTruthParticleList.cxx.
| std::vector< const simb::MCParticle * > truth::MCTruthParticleList::GetPrimaries | ( | ) | const |
Definition at line 145 of file MCTruthParticleList.cxx.
|
inline |
Returns whether we have this particle, live (with full information)
Definition at line 221 of file MCTruthParticleList.h.
| void truth::MCTruthParticleList::insert | ( | const simb::MCParticle * | value | ) |
Definition at line 259 of file MCTruthParticleList.cxx.
| bool truth::MCTruthParticleList::IsPrimary | ( | int | trackID | ) | const |
Definition at line 116 of file MCTruthParticleList.cxx.
|
inline |
Extracts the key from the specified value.
Definition at line 348 of file MCTruthParticleList.h.
|
inline |
Returns whether we have had this particle, archived or live.
Definition at line 228 of file MCTruthParticleList.h.
|
inline |
Definition at line 336 of file MCTruthParticleList.h.
|
inline |
Definition at line 338 of file MCTruthParticleList.h.
| MCTruthParticleList truth::MCTruthParticleList::MakeCopy | ( | ) | const |
Returns a copy of this object.
Definition at line 51 of file MCTruthParticleList.cxx.
| int truth::MCTruthParticleList::NumberOfPrimaries | ( | ) | const |
Definition at line 122 of file MCTruthParticleList.cxx.
|
delete |
|
default |
|
inline |
Definition at line 346 of file MCTruthParticleList.h.
|
inline |
Definition at line 344 of file MCTruthParticleList.h.
| MCTruthParticleList::mapped_type const & truth::MCTruthParticleList::Particle | ( | const size_type | index | ) | const |
Definition at line 98 of file MCTruthParticleList.cxx.
| MCTruthParticleList::mapped_type truth::MCTruthParticleList::Particle | ( | const size_type | index | ) |
Definition at line 107 of file MCTruthParticleList.cxx.
| const simb::MCParticle * truth::MCTruthParticleList::Primary | ( | const int | index | ) | const |
Definition at line 128 of file MCTruthParticleList.cxx.
|
inline |
Definition at line 319 of file MCTruthParticleList.h.
|
inline |
Definition at line 320 of file MCTruthParticleList.h.
|
inline |
Definition at line 321 of file MCTruthParticleList.h.
|
inline |
Definition at line 322 of file MCTruthParticleList.h.
|
inline |
Definition at line 323 of file MCTruthParticleList.h.
|
inline |
Definition at line 326 of file MCTruthParticleList.h.
| const MCTruthParticleList::key_type & truth::MCTruthParticleList::TrackId | ( | const size_type | index | ) | const |
Definition at line 90 of file MCTruthParticleList.cxx.
|
inline |
Definition at line 332 of file MCTruthParticleList.h.
|
inline |
Definition at line 334 of file MCTruthParticleList.h.
|
friend |
Definition at line 336 of file MCTruthParticleList.cxx.
|
friend |
Definition at line 405 of file MCTruthParticleList.cxx.
|
private |
archive of the particles no longer among us
Definition at line 180 of file MCTruthParticleList.h.
|
mutableprivate |
Definition at line 186 of file MCTruthParticleList.h.
|
private |
Sorted list of particles in the event.
Definition at line 177 of file MCTruthParticleList.h.
|
private |
Sorted list of the track IDs of primary particles.
Definition at line 178 of file MCTruthParticleList.h.
1.8.5