8 #include <tracking/ckf/cdc/filters/paths/CDCfromEclPathTruthVarSet.h>
10 #include <tracking/ckf/cdc/entities/CDCCKFState.h>
12 #include <ecl/dataobjects/ECLShower.h>
13 #include <mdst/dataobjects/MCParticle.h>
15 #include <tracking/dataobjects/RecoTrack.h>
23 const auto& seed = path->front();
24 const auto* seedRecoTrack = seed.getSeed();
25 const auto* seedEclShower = seedRecoTrack->getRelated<
ECLShower>(
"ECLShowers");
30 std::vector<MCParticle*> daughterMCParticles;
31 if (seedMCParticle->getNDaughters() > 0) {
32 daughterMCParticles = seedMCParticle->getDaughters();
37 for (
auto const& state : *path) {
42 const auto wireHit = state.getWireHit();
43 const auto cdcHit = wireHit->getHit();
46 if (seedMCTrack != 0 && seedMCTrack == hitMCTrack) {
52 var<named(
"matched")>() = matched;
53 var<named(
"daughters")>() = daughters;
54 var<named(
"PDG")>() = seedMCParticle->getPDG();
57 var<named(
"seed_p_truth")>() = seedMom.Mag();
58 var<named(
"seed_theta_truth")>() = seedMom.Theta() * 180. / M_PI;
59 var<named(
"seed_pt_truth")>() = seedMom.Perp();
60 var<named(
"seed_pz_truth")>() = seedMom.Z();
61 var<named(
"seed_px_truth")>() = seedMom.X();
62 var<named(
"seed_py_truth")>() = seedMom.Y();
68 if (particleMCTrack) {
71 var<named(
"mcTrackHits")>() = mcTrackHits;
Class to store ECL Showers.
TVector3 getMomentum() const
The method to get return TVector3 Momentum.
A Class to store the Monte Carlo particle information.
This is the Reconstruction Event-Data Model Track.
unsigned int getNumberOfCDCHits() const
Return the number of cdc hits.
T * getRelated(const std::string &name="", const std::string &namedRelation="") const
Get the object to or from which this object has a relation.
AObject Object
Type of the object to be analysed.
Abstract base class for different kinds of events.