Belle II Software  release-05-02-19
ParticleSelectorModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Marko Staric, Anze Zupanc *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <analysis/VariableManager/Utility.h>
14 #include <analysis/DecayDescriptor/DecayDescriptor.h>
15 
16 #include <framework/core/Module.h>
17 
18 #include <string>
19 #include <memory>
20 
21 namespace Belle2 {
34  class ParticleSelectorModule : public Module {
35 
36  public:
37 
42 
47  virtual void initialize() override;
48 
52  virtual void event() override;
53 
54  private:
55 
56  std::string m_decayString;
59  std::string m_listName;
61  std::string m_cutParameter;
62  std::unique_ptr<Variable::Cut> m_cut;
63  };
64 
66 } // Belle2 namespace
67 
Belle2::ParticleSelectorModule::m_cut
std::unique_ptr< Variable::Cut > m_cut
cut object which performs the cuts
Definition: ParticleSelectorModule.h:70
Belle2::ParticleSelectorModule::m_decaydescriptor
DecayDescriptor m_decaydescriptor
Decay descriptor of the particle being selected.
Definition: ParticleSelectorModule.h:65
Belle2::ParticleSelectorModule::event
virtual void event() override
Event processor.
Definition: ParticleSelectorModule.cc:82
Belle2::ParticleSelectorModule::m_listName
std::string m_listName
output particle list name
Definition: ParticleSelectorModule.h:67
Belle2::ParticleSelectorModule::initialize
virtual void initialize() override
Initialize the Module.
Definition: ParticleSelectorModule.cc:56
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::DecayDescriptor
The DecayDescriptor stores information about a decay tree or parts of a decay tree.
Definition: DecayDescriptor.h:43
Belle2::ParticleSelectorModule::ParticleSelectorModule
ParticleSelectorModule()
Constructor.
Definition: ParticleSelectorModule.cc:42
Belle2::ParticleSelectorModule::m_cutParameter
std::string m_cutParameter
selection criteria
Definition: ParticleSelectorModule.h:69
Belle2::ParticleSelectorModule::m_decayString
std::string m_decayString
Input DecayString specifying the particle being selected.
Definition: ParticleSelectorModule.h:64