Belle II Software development
RecoTrackParticleLoaderModule.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#pragma once
9
10#include <framework/core/Module.h>
11#include <framework/datastore/StoreArray.h>
12
13#include <analysis/dataobjects/Particle.h>
14#include <analysis/dataobjects/ParticleList.h>
15#include <analysis/dataobjects/ParticleExtraInfoMap.h>
16#include <tracking/dataobjects/RecoTrack.h>
17
18#include <string>
19
20namespace Belle2 {
36
37 public:
40
42 void initialize() override;
43
45 void event() override;
46
47 private:
49 std::string m_recoTrackColName = "RecoTracks";
50
52 std::string m_particleListName = "ParticlesFromRecoTracks";
53
55 int m_pdgCode = 211;
56
60 };
62}
Base class for Modules.
Definition: Module.h:72
Takes fitted RecoTracks and creates Particles from them directly, skipping the step of creating Track...
std::string m_particleListName
Name of the particleList holding the output Particles.
void initialize() override
Require and register the datastore arrays.
void event() override
Build Particle array.
StoreArray< Particle > m_Particles
Particles StoreArray.
std::string m_recoTrackColName
Name of the collection holding the input RecoTracks.
StoreObjPtr< ParticleList > m_ParticleList
ParticleList StoreObjPtr.
int m_pdgCode
PDG code of the hypothesis of the output Particles.
StoreArray< RecoTrack > m_RecoTracks
RecoTracks StoreArray.
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.