Belle II Software development
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
17namespace Belle2 {
27
28 public:
29
34
39 virtual void initialize() override;
40
44 virtual void event() override;
45
49 void extractParticlesFromROE(const RestOfEvent* roe);
50
51
52 private:
53
54 std::vector<std::string> m_outputListNames;
55 std::vector<std::string> m_outputAntiListNames;
56 std::vector<int> m_pdgCodes;
57 std::vector<int> m_absPdgCodes;
61 std::vector<StoreObjPtr<ParticleList>> m_pLists;
62 std::vector<StoreObjPtr<ParticleList>> m_antiPLists;
64 std::string m_maskName;
68 };
69
71} // Belle2 namespace
72
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.