Belle II Software  release-08-01-10
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 
20 namespace Belle2 {
39 
40  public:
43 
45  void initialize() override;
46 
48  void event() override;
49 
50  private:
52  std::string m_recoTrackColName = "RecoTracks";
53 
55  std::string m_particleListName = "ParticlesFromRecoTracks";
56 
58  int m_pdgCode = 211;
59 
63  };
65 }
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.
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.