Belle II Software  release-08-01-10
RecoTrackUtil Struct Reference

Structure to summarize utility function to output a list of hits into a RecoTrack. More...

#include <RecoTrackUtil.h>

Static Public Member Functions

static RecoTrackstoreInto (const CDCTrack &track, StoreArray< RecoTrack > &recoTracks, const double momentumSeedMagnitude)
 For magnetic monopoles; estimates charge sign from all stereo hits, momentum direction from hits in closest superlayer, fixing magnitude with given value. Ignores building CDCTrajectory3D since it is based on a helix.
 
static RecoTrackstoreInto (const CDCTrack &track, StoreArray< RecoTrack > &recoTracks)
 Copies the track information to the RecoTrack.
 
static RecoTrackstoreInto (const CDCTrajectory3D &traj3D, StoreArray< RecoTrack > &recoTracks)
 Copies the trajectory information to the RecoTrack.
 
static RecoTrackstoreInto (const CDCTrajectory3D &traj3D, const double bZ, StoreArray< RecoTrack > &recoTracks)
 Copies the trajectory information to the RecoTrack.
 
template<class ARLHitHolderRange >
static void fill (const ARLHitHolderRange &rlWireHitHolders, RecoTrack &recoTrack)
 Translates a range of hits and inserts them in the reco track. More...
 

Detailed Description

Structure to summarize utility function to output a list of hits into a RecoTrack.

Definition at line 24 of file RecoTrackUtil.h.

Member Function Documentation

◆ fill()

void fill ( const ARLHitHolderRange &  rlWireHitHolders,
RecoTrack recoTrack 
)
static

Translates a range of hits and inserts them in the reco track.

fill() specialisation for a class that holds right-left wire-hit information

List of explicit specialisations - at the moment only CDCTrack.

Currently only instantiated for RecoTrack.

Parameters
rlWireHitHoldersA range of hits, which elements support ->getRLWireHit() to access a wire hit including a right left passage hypotheses.
[out]recoTrackRecoTrack to be filled.

Definition at line 132 of file RecoTrackUtil.cc.

133 {
134  int sortingParameter = -1;
135  for (const auto& rlWireHitHolder : rlWireHitHolders) {
136  ++sortingParameter;
137 
138  const CDCRLWireHit rlWireHit = rlWireHitHolder.getRLWireHit();
139  const CDCWireHit& wireHit = rlWireHit.getWireHit();
140  const CDCHit* cdcHit = wireHit.getHit();
141 
142  // Right left ambiguity resolution
143  ERightLeft rlInfo = rlWireHit.getRLInfo();
144  using RightLeftInformation = RecoHitInformation::RightLeftInformation;
145  if (rlInfo == ERightLeft::c_Left) {
146  recoTrack.addCDCHit(cdcHit,
147  sortingParameter,
148  RightLeftInformation::c_left,
149  RecoHitInformation::c_CDCTrackFinder);
150  } else if (rlInfo == ERightLeft::c_Right) {
151  recoTrack.addCDCHit(cdcHit,
152  sortingParameter,
153  RightLeftInformation::c_right,
154  RecoHitInformation::c_CDCTrackFinder);
155  } else if (rlInfo == ERightLeft::c_Invalid) {
156  recoTrack.addCDCHit(cdcHit,
157  sortingParameter,
158  RightLeftInformation::c_invalidRightLeftInformation,
159  RecoHitInformation::c_CDCTrackFinder);
160  } else {
161  recoTrack.addCDCHit(cdcHit,
162  sortingParameter,
163  RightLeftInformation::c_undefinedRightLeftInformation,
164  RecoHitInformation::c_CDCTrackFinder);
165  }
166  }
167 }
Class containing the result of the unpacker in raw data and the result of the digitizer in simulation...
Definition: CDCHit.h:40
RightLeftInformation
The RightLeft information of the hit which is only valid for CDC hits.
bool addCDCHit(const UsedCDCHit *cdcHit, const unsigned int sortingParameter, RightLeftInformation rightLeftInformation=RightLeftInformation::c_undefinedRightLeftInformation, OriginTrackFinder foundByTrackFinder=OriginTrackFinder::c_undefinedTrackFinder)
Adds a cdc hit with the given information to the reco track.
Definition: RecoTrack.h:243
Class representing an oriented hit wire including a hypotheses whether the causing track passes left ...
Definition: CDCRLWireHit.h:41
const CDCWireHit & getWireHit() const
Getter for the wire hit associated with the oriented hit.
Definition: CDCRLWireHit.h:192
ERightLeft getRLInfo() const
Getter for the right left passage information.
Definition: CDCRLWireHit.h:234
Class representing a hit wire in the central drift chamber.
Definition: CDCWireHit.h:55
const CDCHit * getHit() const
Getter for the CDCHit pointer into the StoreArray.
Definition: CDCWireHit.h:159
ERightLeft
Enumeration to represent the distinct possibilities of the right left passage.
Definition: ERightLeft.h:25

The documentation for this struct was generated from the following files: