![]() |
Belle II Software development
|
Structure of Rest of Event mask. More...
#include <RestOfEvent.h>
Public Member Functions | |
Mask (const std::string &name=c_defaultMaskName, const std::string &origin="unknown") | |
Default constructor. | |
std::string | getName () const |
Get mask name. | |
bool | isValid () const |
Get mask validity. | |
void | addParticles (const std::vector< const Particle * > &particles) |
Add selected particles to the mask. | |
std::set< int > | getParticles () const |
Get selected particles associated to the mask. | |
std::set< int > | getV0s () const |
Get selected particles associated to the V0 of mask. | |
void | addV0 (const Particle *v0, std::vector< int > &toErase) |
Get selected particles associated to the V0 of mask. | |
bool | hasV0 (const Particle *v0) const |
Has selected particles associated to the mask. | |
void | clearParticles () |
Clear selected particles associated to the mask. | |
void | print () const |
Print mask and selected particles associated to the mask. | |
Private Attributes | |
std::string | m_name |
Mask name. | |
std::string | m_origin |
Mask origin for debug. | |
bool | m_isValid |
Check if mask has elements or correctly initialized. | |
std::set< int > | m_maskedParticleIndices |
StoreArray indices for masked ROE particles. | |
std::set< int > | m_maskedV0Indices |
StoreArray indices for masked V0 ROE particles. | |
Structure of Rest of Event mask.
It contains array indices of particles, which were selected and associated to this mask after some selection. Host ROE object always check that masks do not contain extra particles, which are not included in ROE initially for consistency. TODO: Will it be written to StoreArray? Maybe should be moved to private.
Definition at line 66 of file RestOfEvent.h.
|
inline |
Default constructor.
All private members are set to 0 (all vectors are empty).
name | name of mask |
origin | origin of mask, for debug |
Definition at line 74 of file RestOfEvent.h.
|
inline |
Add selected particles to the mask.
Definition at line 97 of file RestOfEvent.h.
|
inline |
Get selected particles associated to the V0 of mask.
Definition at line 126 of file RestOfEvent.h.
|
inline |
Clear selected particles associated to the mask.
Definition at line 145 of file RestOfEvent.h.
|
inline |
|
inline |
Get selected particles associated to the mask.
Definition at line 112 of file RestOfEvent.h.
|
inline |
Get selected particles associated to the V0 of mask.
Definition at line 119 of file RestOfEvent.h.
|
inline |
Has selected particles associated to the mask.
Definition at line 137 of file RestOfEvent.h.
|
inline |
|
inline |
Print mask and selected particles associated to the mask.
Definition at line 154 of file RestOfEvent.h.
|
private |
Check if mask has elements or correctly initialized.
Definition at line 169 of file RestOfEvent.h.
|
private |
StoreArray indices for masked ROE particles.
Definition at line 170 of file RestOfEvent.h.
|
private |
StoreArray indices for masked V0 ROE particles.
Definition at line 171 of file RestOfEvent.h.
|
private |
Mask name.
Definition at line 167 of file RestOfEvent.h.
|
private |
Mask origin for debug.
Definition at line 168 of file RestOfEvent.h.