Belle II Software  release-08-01-10
RestOfEvent::Mask Struct Reference

Structure of Rest of Event mask. More...

#include <RestOfEvent.h>

Collaboration diagram for RestOfEvent::Mask:

Public Member Functions

 Mask (const std::string &name=c_defaultMaskName, const std::string &origin="unknown")
 Default constructor. More...
 
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.
 

Detailed Description

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 68 of file RestOfEvent.h.

Constructor & Destructor Documentation

◆ Mask()

Mask ( const std::string &  name = c_defaultMaskName,
const std::string &  origin = "unknown" 
)
inline

Default constructor.

All private members are set to 0 (all vectors are empty).

Parameters
namename of mask
originorigin of mask, for debug

Definition at line 76 of file RestOfEvent.h.


The documentation for this struct was generated from the following file: