 |
Belle II Software
release-05-02-19
|
13 #include <framework/core/Module.h>
15 #include <framework/datastore/StoreObjPtr.h>
17 #include <analysis/dataobjects/ParticleList.h>
18 #include <analysis/VariableManager/Manager.h>
19 #include <analysis/VariableManager/Utility.h>
40 class BestCandidateSelectionModule :
public Module {
50 virtual void event()
override;
60 std::unique_ptr<Variable::Cut>
m_cut;
A variable returning a floating-point value for a given Particle.
bool m_selectLowest
Select the candidate with the lowest value (instead of highest).
virtual void event() override
Process an event.
StoreObjPtr< ParticleList > m_inputList
input particle list
virtual void initialize() override
Initialize the module (set up datastore)
std::string m_cutParameter
Selection for candidates to be ranked.
bool m_allowMultiRank
Give the same rank to candidates with the same value.
std::string m_outputVariableName
Name of generated Ranking-Variable, if specified by user.
BestCandidateSelectionModule()
Constructor.
int m_numBest
Number of best candidates to keep.
std::string m_variableName
Variable which defines the candidate ranking.
std::unique_ptr< Variable::Cut > m_cut
cut object which performs the cuts
Abstract base class for different kinds of events.
Type-safe access to single objects in the data store.
std::string m_inputListName
name of input particle list.
virtual ~BestCandidateSelectionModule() override
Destructor.
const Variable::Manager::Var * m_variable
Variable which defines the candidate ranking.