 |
Belle II Software
release-05-01-25
|
10 #include <tracking/trackFindingCDC/findlets/minimal/TrackExporter.h>
12 #include <tracking/trackFindingCDC/eventdata/tracks/CDCTrack.h>
14 #include <tracking/trackFindingCDC/eventdata/utils/RecoTrackUtil.h>
16 #include <tracking/trackFindingCDC/utilities/StringManipulation.h>
18 #include <tracking/dataobjects/RecoTrack.h>
20 #include <framework/datastore/StoreArray.h>
21 #include <framework/core/ModuleParamList.templateDetails.h>
23 #include <TMatrixDSym.h>
26 using namespace TrackFindingCDC;
30 return "Creates a RecoTrack from each CDCTrack.";
35 moduleParamList->
addParameter(prefixed(prefix,
"RecoTracksStoreArrayName"),
37 "Alias for exportTracksInto",
40 moduleParamList->
addParameter(prefixed(prefix,
"WriteRecoTracks"),
42 "Alias for exportTracks",
45 moduleParamList->
addParameter(prefixed(prefix,
"exportTracks"),
47 "Switch for the creation of reco tracks for each cdc track.",
50 moduleParamList->
addParameter(prefixed(prefix,
"exportTracksInto"),
52 "Name of the output StoreArray of RecoTracks.",
55 moduleParamList->
addParameter(prefixed(prefix,
"discardCovarianceMatrix"),
57 "Discard covariance matrix in favour of a hand written one.",
59 moduleParamList->
addParameter(prefixed(prefix,
"monopoleMomSeed"),
61 "If non-zero, estimate seeds as for monopoles and set the momentum magnitude as this value.",
78 TMatrixDSym defaultCovSeed(6);
79 defaultCovSeed(0, 0) = 1e-3;
80 defaultCovSeed(1, 1) = 1e-3;
81 defaultCovSeed(2, 2) = 4e-3;
82 defaultCovSeed(3, 3) = 0.01e-3;
83 defaultCovSeed(4, 4) = 0.01e-3;
84 defaultCovSeed(5, 5) = 0.04e-3;
89 for (
const CDCTrack& track : tracks) {
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.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Class representing a sequence of three dimensional reconstructed hits.
std::string m_param_exportTracksInto
Parameter: Name of the output StoreArray of the RecoTracks generated by this module.
void setSeedCovariance(const TMatrixDSym &seedCovariance)
Set the covariance of the seed. ATTENTION: This is not the fitted covariance.
bool m_param_discardCovarianceMatrix
Parameter: Discard covariance matrix in favour of a hand written one.
void setQualityIndicator(const float qualityIndicator)
Set the quality index attached to this RecoTrack. 0 means likely fake.
double m_param_monopoleMomSeed
Parameter: If non-zero, estimate seeds as for monopoles and set the momentum magnitude as this value.
void initialize() override
Receive and dispatch signal before the start of the event processing.
static RecoTrack * storeInto(const CDCTrack &track, StoreArray< RecoTrack > &recoTracks, const double momentumSeedMagnitude)
For magnetic monopoles; estimates charge sign from all stereo hits, momentum direction from hits in c...
bool m_param_exportTracks
Parameter: Switch if a RecoTrack be generated for each track.
This is the Reconstruction Event-Data Model Track.
void addParameter(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module list.
Abstract base class for different kinds of events.
void apply(std::vector< CDCTrack > &tracks) final
Write give tracks into track store array.
std::string getDescription() final
Short description of the findlet.
void initialize() final
Signal initialisation phase to register store array for export.
@ c_ErrorIfAlreadyRegistered
If the object/array was already registered, produce an error (aborting initialisation).
Accessor to arrays stored in the data store.
The Module parameter list class.