 |
Belle II Software
release-05-02-19
|
11 #include <tracking/modules/recoTracksCopier/RecoTracksCopierModule.h>
20 setDescription(
"Copies RecoTracks without their fit information.");
24 "Name of the input StoreArray");
26 "Name of the output StoreArray");
55 for (
Track& track : recoTrack.getRelationsWith<
Track>()) {
56 track.addRelationTo(newRecoTrack);
StoreArray< RecoTrack > m_inputRecoTracks
Store Array of the input tracks.
std::string m_inputStoreArrayName
Name of the input StoreArray.
static void registerRequiredRelations(StoreArray< RecoTrack > &recoTracks, std::string const &pxdHitsStoreArrayName="", std::string const &svdHitsStoreArrayName="", std::string const &cdcHitsStoreArrayName="", std::string const &bklmHitsStoreArrayName="", std::string const &eklmHitsStoreArrayName="", std::string const &recoHitInformationStoreArrayName="")
Convenience method which registers all relations required to fully use a RecoTrack.
size_t addHitsFromRecoTrack(const RecoTrack *recoTrack, unsigned int sortingParameterOffset=0, bool reversed=false, boost::optional< double > optionalMinimalWeight=boost::none)
Add all hits from another RecoTrack to this RecoTrack.
void setDescription(const std::string &description)
Sets the description of the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
RecoTracksCopierModule()
Constructor of the module. Setting up parameters and description.
void addRelationTo(const RelationsInterface< BASE > *object, float weight=1.0, const std::string &namedRelation="") const
Add a relation from this object to another object (with caching).
RecoTrack * copyToStoreArray(StoreArray< RecoTrack > &storeArray) const
Append a new RecoTrack to the given store array and copy its general properties, but not the hits the...
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
This is the Reconstruction Event-Data Model Track.
StoreArray< Track > m_tracks
Store Array of the input tracks (for relations)
Abstract base class for different kinds of events.
@ c_ErrorIfAlreadyRegistered
If the object/array was already registered, produce an error (aborting initialisation).
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
Class that bundles various TrackFitResults.
std::string m_outputStoreArrayName
Name of the output StoreArray.
bool m_param_onlyFittedTracks
Parameter: Copy only fitted tracks.
void event() override
Event processing, copies store array.
StoreArray< RecoTrack > m_outputRecoTracks
Store Array of the output tracks.
void initialize() override
Declare required StoreArray.