Belle II Software  release-08-01-10
ParticleExtractorFromROEModule.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 
9 #pragma once
10 #include <framework/core/Module.h>
11 
12 #include <framework/datastore/StoreObjPtr.h>
13 
14 #include <analysis/dataobjects/RestOfEvent.h>
15 #include <analysis/dataobjects/ParticleList.h>
16 
17 namespace Belle2 {
30 
31  public:
32 
37 
42  virtual void initialize() override;
43 
47  virtual void event() override;
48 
52  void extractParticlesFromROE(const RestOfEvent* roe);
53 
54 
55  private:
56 
57  std::vector<std::string> m_outputListNames;
58  std::vector<std::string> m_outputAntiListNames;
59  std::vector<int> m_pdgCodes;
60  std::vector<int> m_absPdgCodes;
64  std::vector<StoreObjPtr<ParticleList>> m_pLists;
65  std::vector<StoreObjPtr<ParticleList>> m_antiPLists;
67  std::string m_maskName;
69  bool m_writeOut;
71  };
72 
74 } // Belle2 namespace
75 
Base class for Modules.
Definition: Module.h:72
Extract particles from ROE and fill them in ParticleList.
std::string m_signalSideParticleListName
output ParticleList names
std::vector< std::string > m_outputListNames
output ParticleList names
virtual void initialize() override
Initialize the Module.
virtual void event() override
Event processor.
void extractParticlesFromROE(const RestOfEvent *roe)
Extract particles that belong to the given ROE and fill them in the output ParticleLists.
std::string m_maskName
mask name to be applied
std::vector< StoreObjPtr< ParticleList > > m_pLists
output ParticleList names
std::vector< StoreObjPtr< ParticleList > > m_antiPLists
output anti-ParticleList names
std::vector< int > m_pdgCodes
pdg codes of output ParticleList
std::vector< std::string > m_outputAntiListNames
output anti-ParticleList names
bool m_writeOut
toggle output particle list btw.
std::vector< int > m_absPdgCodes
pdg codes of output ParticleList
This is a general purpose class for collecting reconstructed MDST data objects that are not used in r...
Definition: RestOfEvent.h:57
Abstract base class for different kinds of events.