 |
Belle II Software
release-05-02-19
|
12 #include <framework/core/Module.h>
13 #include <framework/datastore/StoreArray.h>
14 #include <tracking/dataobjects/RecoTrack.h>
15 #include <tracking/trackFindingCDC/eventdata/hits/CDCWireHit.h>
16 #include <tracking/trackFindingCDC/rootification/StoreWrappedObjPtr.h>
17 #include <tracking/trackFindingCDC/numerics/ERightLeft.h>
24 namespace TrackFindingCDC {
35 class ReattachCDCWireHitsToRecoTracksModule :
public Module {
46 void event()
override;
115 std::unordered_map<RecoTrack*, std::vector<HitToAddInfo> >
m_mapToHitsToAdd;
double m_maximumDistance
Distance (cm) below which (exclusive) a CDC hit can be reattached to a track.
std::string m_inputRecoTracksStoreArrayName
Name of the input RecoTrack StoreArray.
Internal structure to store the results of the reconstruction.
StoreArray< RecoTrack > m_outputRecoTracks
Output tracks.
double m_maximumAbsD0
Only tracks with an absolute value of d0 below (exclusive) this parameter (cm) are considered.
void initialize() override
Declare required StoreArray.
int m_minimumADC
ADC above which (inclusive) a CDC hit can be reattached to a track.
ReattachCDCWireHitsToRecoTracksModule()
Constructor of the module. Setting up parameters and description.
This class is for convenience access and registration of objects, that are stored inside the StoreWra...
std::unordered_map< RecoTrack *, std::vector< HitToAddInfo > > m_mapToHitsToAdd
Map from a RecoTrack ptr to the vector of the hits that need to be added to this track.
double z
Reconstructed z position of the hit.
std::string m_CDCWireHitsStoreArrayName
Name of the input CDCWireHit StoreWrappedObjPtr.
This is the Reconstruction Event-Data Model Track.
ReconstructionResults reconstruct(const CDCWireHit &wireHit, const RecoTrack &recoTrack, const RecoHitInformation *recoHitInformation) const
Compute distance from a CDCWireHit to a RecoTrack using the mSoP found with a RecoHitInformation.
ERightLeft rlInfo
Right-left information of the hit.
StoreArray< RecoTrack > m_inputRecoTracks
Input tracks.
void event() override
Event processing, combine store array.
Abstract base class for different kinds of events.
std::unordered_map< RecoTrack *, std::vector< CDCHit * > > m_mapToHitsOnTrack
Map from a RecoTrack ptr to the vector of the hits that belong to this track.
ERightLeft
Enumeration to represent the distinct possibilities of the right left passage.
Internal structure to store the information about a hit to be added.
void addHits()
Add the selected CDC hits to the RecoTracks.
RecoHitInformation::RightLeftInformation rightLeftInformationTranslator(ERightLeft rlInfo) const
Translate a TrackFindingCDC::ERightLeft into a RecoHitInformation::RightLeftInformation.
bool isValid
Success status of the reconstruction.
CDCWireHit * hit
Pointer the hit to be added.
std::string m_outputRecoTracksStoreArrayName
Name of the output RecoTrack StoreArray.
Accessor to arrays stored in the data store.
Class representing a hit wire in the central drift chamber.
double m_maximumAbsZ0
Only tracks with an absolute value of z0 below (exclusive) this parameter (cm) are considered.
void findHits()
Find the hits that can be added to the RecoTracks.
int m_minimumTOT
TOT above which (inclusive) a CDC hit can be reattached to a track.
ERightLeft rlInfo
Right-left information of the hit.
double distanceToTrack
Distance from the hit to the track.
double arcLength
Arc length of the hit w.r.t. to a genfit::MeasuredStateOnPlane.
StoreWrappedObjPtr< std::vector< CDCWireHit > > m_CDCWireHits
Input CDCWireHits.