ATLAS Offline Software
|
A simple wrapper for std::list<int> to model a list of particle identity candidates. More...
#include <ParticleCandidateList.h>
Public Member Functions | |
bool | msgLvl (const MSG::Level lvl) const |
Test the output level. More... | |
MsgStream & | msg () const |
The standard message stream. More... | |
MsgStream & | msg (const MSG::Level lvl) const |
The standard message stream. More... | |
void | setLevel (MSG::Level lvl) |
Change the current logging level. More... | |
Private Member Functions | |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
std::string | m_nm |
Message source name. More... | |
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
MsgStream instance (a std::cout like with print-out levels) More... | |
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
MessageSvc pointer. More... | |
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
Current logging level. More... | |
std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
Messaging initialized (initMessaging) More... | |
list typedefs: it behaves like a std::list<int> | |
typedef std::list< int >::iterator | iterator |
typedef std::list< int >::const_iterator | const_iterator |
typedef std::list< int >::size_type | size_type |
ParticleCandidateList () | |
Default constructor: More... | |
ParticleCandidateList (const ParticleCandidateList &rhs) | |
Copy constructor: More... | |
virtual | ~ParticleCandidateList () |
Destructor: More... | |
ParticleCandidateList & | operator= (const ParticleCandidateList &rhs) |
Assignment operator: More... | |
bool | hasInList (const int &pdgID, const bool tightMatch=false) const |
Tells if a given particle or pID is in the list if tightMatch = false : look only if std::abs() of particle data group id-s matches. More... | |
void | dropList () const |
const std::list< int > & | list () const |
Return the wrapped STL list. More... | |
forward some of the std::list<int> const methods | |
std::list< int > | m_list |
const_iterator | begin () const |
const_iterator | end () const |
bool | empty () const |
size_type | size () const |
size_type | max_size () const |
void | push_back (const int &id) |
forward the std::list<int>::push_back() method More... | |
void | clear () |
forward the std::list<int>::clear() method More... | |
void | addLeptons () |
Non-const methods: More... | |
void | addLightJets () |
void | addLightQuarks () |
void | addBQuark () |
void | addBbarQuark () |
void | addBQuarks () |
void | addBjet () |
void | addWBosons () |
void | addZBoson () |
void | add (const int &partID) |
void | add (const std::string &listOfParticlesName="LightQuarks") |
A simple wrapper for std::list<int> to model a list of particle identity candidates.
This candidate list is used by the PdgIdFilter and McVtxFilter to select for particles which might fulfill some criterion (well in our case this is its Particle Data Group identity.
Definition at line 29 of file ParticleCandidateList.h.
typedef std::list<int>::const_iterator ParticleCandidateList::const_iterator |
Definition at line 41 of file ParticleCandidateList.h.
typedef std::list<int>::iterator ParticleCandidateList::iterator |
Definition at line 40 of file ParticleCandidateList.h.
typedef std::list<int>::size_type ParticleCandidateList::size_type |
Definition at line 42 of file ParticleCandidateList.h.
ParticleCandidateList::ParticleCandidateList | ( | ) |
ParticleCandidateList::ParticleCandidateList | ( | const ParticleCandidateList & | rhs | ) |
Copy constructor:
Definition at line 23 of file ParticleCandidateList.cxx.
|
inlinevirtual |
|
inline |
Definition at line 185 of file ParticleCandidateList.h.
void ParticleCandidateList::add | ( | const std::string & | listOfParticlesName = "LightQuarks" | ) |
Definition at line 122 of file ParticleCandidateList.cxx.
|
inline |
Definition at line 195 of file ParticleCandidateList.h.
|
inline |
Definition at line 206 of file ParticleCandidateList.h.
|
inline |
Definition at line 190 of file ParticleCandidateList.h.
|
inline |
Definition at line 200 of file ParticleCandidateList.h.
void ParticleCandidateList::addLeptons | ( | ) |
void ParticleCandidateList::addLightJets | ( | ) |
To cope with Full Reconstruction scheme : a light-jet, is a jet which could not have been tagged One has also to add PDG::null to the matching list
Definition at line 93 of file ParticleCandidateList.cxx.
void ParticleCandidateList::addLightQuarks | ( | ) |
Definition at line 110 of file ParticleCandidateList.cxx.
|
inline |
Definition at line 212 of file ParticleCandidateList.h.
|
inline |
Definition at line 218 of file ParticleCandidateList.h.
|
inline |
Definition at line 145 of file ParticleCandidateList.h.
|
inline |
forward the std::list<int>::clear() method
Definition at line 180 of file ParticleCandidateList.h.
void ParticleCandidateList::dropList | ( | ) | const |
Definition at line 59 of file ParticleCandidateList.cxx.
|
inline |
Definition at line 155 of file ParticleCandidateList.h.
|
inline |
Definition at line 150 of file ParticleCandidateList.h.
Tells if a given particle or pID is in the list if tightMatch = false : look only if std::abs() of particle data group id-s matches.
Definition at line 29 of file ParticleCandidateList.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inline |
Return the wrapped STL list.
Definition at line 140 of file ParticleCandidateList.h.
|
inline |
Definition at line 165 of file ParticleCandidateList.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
lvl | The message level to test against |
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
|
inline |
Assignment operator:
Definition at line 129 of file ParticleCandidateList.h.
|
inline |
forward the std::list<int>::push_back() method
Definition at line 175 of file ParticleCandidateList.h.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
|
inline |
Definition at line 160 of file ParticleCandidateList.h.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
protected |
Definition at line 120 of file ParticleCandidateList.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.