10#include <tracking/trackingUtilities/numerics/ERightLeft.h>
12#include <tracking/trackingUtilities/utilities/MayBePtr.h>
26 namespace TrackingUtilities {
34 namespace TrackFindingCDC {
103 const std::vector<TrackingUtilities::CDCWireHit>& wireHits)
const;
107 const std::vector<TrackingUtilities::CDCWireHit>& wireHits)
const;
111 const std::vector<TrackingUtilities::CDCWireHit>& wireHits)
const;
115 const std::vector<TrackingUtilities::CDCWireHit>& wireHits)
const;
119 const std::vector<TrackingUtilities::CDCWireHit>& wireHits)
const;
123 const std::vector<TrackingUtilities::CDCWireHit>& wireHits)
const;
Class containing the result of the unpacker in raw data and the result of the digitizer in simulation...
Class to organize and present the Monte Carlo hit information.
TrackingUtilities::CDCRecoHit3D getClosestPrimaryRecoHit3D(const CDCHit *ptrHit, const std::vector< TrackingUtilities::CDCWireHit > &wireHits) const
Construct an CDCRecoHit3D from the closest primary CDCSimHit information related to the CDCHit.
void fillRLInfo()
Construct the look up relation for the right left passage information as used in track finding.
std::map< const CDCHit *, TrackingUtilities::MayBePtr< const CDCSimHit > > m_primarySimHits
Memory for the look up relation of close primary CDCSimHits.
static const CDCSimHitLookUp & getInstance()
Getter for the singletone instance.
double getClosestPrimaryDriftLength(const CDCHit *ptrHit) const
Look up the drift length from the primary ionisation to the wire from related simulated hit.
double getDriftLength(const CDCHit *ptrHit) const
Look up the drift length from the primary ionisation to the wire from related simulated hit.
void fillPrimarySimHits()
Constructs the relation from reassigned secondary to a close by primary hit from the same MCParticle.
TrackingUtilities::Vector3D getDirectionOfFlight(const CDCHit *ptrHit)
Calculate the local direction of flight. If the hit is secondary take the direction of flight from a ...
TrackingUtilities::Vector3D getRecoPos3D(const CDCHit *ptrHit) const
Look up the position of the primary ionisation from related simulated hit.
TrackingUtilities::MayBePtr< const CDCSimHit > getClosestPrimarySimHit(const CDCSimHit *ptrSimHit) const
Helper function to find the closest primary hit for the given CDCSimHit from the same MCParticle - nu...
CDCSimHitLookUp(CDCSimHitLookUp &)=delete
Singleton: Delete copy constructor and assignment operator.
TrackingUtilities::CDCRecoHit3D getRecoHit3D(const CDCHit *ptrHit, const std::vector< TrackingUtilities::CDCWireHit > &wireHits) const
Construct an CDCRecoHit3D from the (potential secondary) CDCSimHit information related to the CDCHit.
const CDCMCMap * m_ptrMCMap
Reference to the CDCMCMap to be used in this event.
TrackingUtilities::CDCRecoHit2D getClosestPrimaryRecoHit2D(const CDCHit *ptrHit, const std::vector< TrackingUtilities::CDCWireHit > &wireHits) const
Construct an TrackingUtilities::CDCRecoHit2D from the closest primary CDCSimHit information related t...
CDCSimHitLookUp & operator=(const CDCSimHitLookUp &)=delete
Operator =.
const TrackingUtilities::CDCWireHit * getWireHit(const CDCHit *ptrHit, const std::vector< TrackingUtilities::CDCWireHit > &wireHits) const
Retrieve the wire hit the given CDCHit form the given wire hits.
std::map< const CDCHit *, TrackingUtilities::ERightLeft > m_rightLeftInfos
Memory for the look up relation of the right left passage information as defined in tracking.
TrackingUtilities::CDCRecoHit2D getRecoHit2D(const CDCHit *ptrHit, const std::vector< TrackingUtilities::CDCWireHit > &wireHits) const
Construct an TrackingUtilities::CDCRecoHit2D from the (potential secondary) CDCSimHit information rel...
void fill(const CDCMCMap *ptrMCMap)
Gather the information about the right left passage using the CDCMCMap.
void clear()
Clear all information from the last event.
TrackingUtilities::CDCRLWireHit getRLWireHit(const CDCHit *ptrHit, const std::vector< TrackingUtilities::CDCWireHit > &wireHits) const
Retrieve the wire hit including right left passage information for the given CDCHit form the given wi...
TrackingUtilities::ERightLeft getRLInfo(const CDCHit *ptrHit) const
Look up the Monte Carlo right left passage information for the given hit.
TrackingUtilities::Vector3D getClosestPrimaryRecoPos3D(const CDCHit *ptrHit) const
Look up the position of the primary ionisation from the closest primary simulated hit.
CDCSimHitLookUp()=default
Default constructor - for cppcheck.
Class representing an oriented hit wire including a hypotheses whether the causing track passes left ...
Class representing a two dimensional reconstructed hit in the central drift chamber.
Class representing a three dimensional reconstructed hit.
Class representing a hit wire in the central drift chamber.
A three dimensional vector.
Abstract base class for different kinds of events.