 |
Belle II Software
release-05-02-19
|
12 #include <framework/core/Module.h>
14 #include <analysis/VariableManager/Utility.h>
15 #include <analysis/dataobjects/RestOfEvent.h>
16 #include <analysis/dataobjects/Particle.h>
18 #include <analysis/dataobjects/ParticleList.h>
19 #include <framework/datastore/StoreObjPtr.h>
37 class RestOfEventUpdaterModule :
public Module {
50 virtual void event()
override;
56 typedef std::map<unsigned int, unsigned int>
intAndIntMap;
63 std::shared_ptr<Variable::Cut>
m_cut;
std::vector< std::string > m_maskNamesForUpdating
Container for all mask names which will be updated.
std::string m_selection
Cut string which will be used for updating masks.
StoreObjPtr< ParticleList > m_inputList
ParticleList which contains information that will be used for updating.
virtual void event() override
Overriden event method.
void updateMasksWithParticles(const StoreObjPtr< RestOfEvent > &roe, std::vector< const Particle * > &particlesToUpdate, Particle::EParticleSourceObject listType)
Update ROE masks by excluding or keeping particles.
RestOfEventUpdaterModule()
Constructor: Sets the description, the properties and the parameters of the module.
virtual void initialize() override
Overriden initialize method.
Abstract base class for different kinds of events.
Type-safe access to single objects in the data store.
std::shared_ptr< Variable::Cut > m_cut
Cut object which performs the cuts.
EParticleSourceObject
particle source enumerators
std::map< unsigned int, bool > intAndBoolMap
Type definition helper for a map of integer and boolean.
std::map< unsigned int, unsigned int > intAndIntMap
Type definition helper for a map of integer and integer.
bool m_discard
Update the ROE mask by passing or discarding particles in the provided particle list.
void updateMasksWithV0(const StoreObjPtr< RestOfEvent > &roe, std::vector< const Particle * > &particlesToUpdate)
Update ROE masks with provided composite particle collection.
std::string m_inputListName
Name of the ParticleList which contains information that will be used for updating.