8#include <tracking/ckf/svd/filters/states/SVDStateTruthVarSet.h>
10#include <tracking/mcMatcher/TrackMatchLookUp.h>
11#include <tracking/dataobjects/RecoTrack.h>
14using namespace TrackFindingCDC;
18 const std::vector<TrackFindingCDC::WithWeight<const CKFToSVDState*>>& previousStates = pair->first;
21 std::vector<TrackFindingCDC::WithWeight<const CKFToSVDState*>> allStates = previousStates;
22 allStates.emplace_back(state, 0);
24 const RecoTrack* seedTrack = previousStates.front()->getSeed();
25 B2ASSERT(
"Path without seed?", seedTrack);
31 var<
named(
"truth_position_x")>() = 0;
32 var<
named(
"truth_position_y")>() = 0;
33 var<
named(
"truth_position_z")>() = 0;
34 var<
named(
"truth_momentum_x")>() = 0;
35 var<
named(
"truth_momentum_y")>() = 0;
36 var<
named(
"truth_momentum_z")>() = 0;
44 const std::string& seedTrackStoreArrayName = seedTrack->
getArrayName();
Specialized CKF State for extrapolating into the SVD.
bool allStatesCorrect(const std::vector< TrackFindingCDC::WithWeight< const CKFToPXDState * > > &states) const
Are all hits related to the same MC track the seed is related to?
This is the Reconstruction Event-Data Model Track.
ROOT::Math::XYZVector getPositionSeed() const
Return the position seed stored in the reco track. ATTENTION: This is not the fitted position.
ROOT::Math::XYZVector getMomentumSeed() const
Return the momentum seed stored in the reco track. ATTENTION: This is not the fitted momentum.
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.
MCUtil m_mcUtil
MC information used in the SVD CKF.
StoreObjPtr< EventMetaData > m_eventMetaData
Pointer to the object containing event number etc.
virtual bool extract(const BaseSVDStateFilter::Object *result) override
Generate and assign the variables from the object.
AObject Object
Type of the object to be analysed.
static constexpr int named(const char *name)
Getter for the index from the name.
Float_t & var()
Reference getter for the value of the ith variable. Static version.
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.