8 #include <tracking/ckf/pxd/filters/states/PXDStateTruthVarSet.h>
10 #include <tracking/mcMatcher/TrackMatchLookUp.h>
11 #include <tracking/dataobjects/RecoTrack.h>
15 using namespace TrackFindingCDC;
19 const std::vector<TrackFindingCDC::WithWeight<const CKFToPXDState*>>& previousStates = pair->first;
22 std::vector<TrackFindingCDC::WithWeight<const CKFToPXDState*>> allStates = previousStates;
23 allStates.emplace_back(state, 0);
25 const RecoTrack* seedTrack = previousStates.front()->getSeed();
26 B2ASSERT(
"Path without seed?", seedTrack);
28 var<named(
"truth_event_id")>() = m_eventMetaData->getEvent();
29 var<named(
"truth_seed_number")>() = seedTrack->
getArrayIndex();
32 var<named(
"truth_position_x")>() = 0;
33 var<named(
"truth_position_y")>() = 0;
34 var<named(
"truth_position_z")>() = 0;
35 var<named(
"truth_momentum_x")>() = 0;
36 var<named(
"truth_momentum_y")>() = 0;
37 var<named(
"truth_momentum_z")>() = 0;
38 var<named(
"truth")>() = 0;
40 if (not m_mcUtil.allStatesCorrect(allStates)) {
45 const std::string& seedTrackStoreArrayName = seedTrack->
getArrayName();
50 var<named(
"truth")>() = 1;
Specialized CKF State for extrapolating into the PXD.
This is the Reconstruction Event-Data Model Track.
TVector3 getMomentumSeed() const
Return the momentum seed stored in the reco track. ATTENTION: This is not the fitted momentum.
TVector3 getPositionSeed() const
Return the position seed stored in the reco track. ATTENTION: This is not the fitted position.
std::string getArrayName() const
Get name of array this object is stored in, or "" if not found.
int getArrayIndex() const
Returns this object's array index (in StoreArray), or -1 if not found.
AObject Object
Type of the object to be analysed.
Class to provide convenient methods to look up matching information between pattern recognition and M...
const RecoTrack * getRelatedMCRecoTrack(const RecoTrack &prRecoTrack) const
Looks for a related Monte Carlo track for the given pattern recognition track and return it if found.
Abstract base class for different kinds of events.