41 return StatusCode::SUCCESS;
51 double pT = 0.0, eta = 0.0, phi = 0.0;
53 ATH_MSG_INFO(
"Hit x = " << hit->getX() <<
" y = " << hit->getY() <<
" z = " << hit->getZ() <<
" detector = " << hit->getDetector());
54 pT =
pT + sqrt(hit->getX() * hit->getX() + hit->getY() * hit->getY());
55 eta = eta + hit->getX() / hit->getZ();
56 phi = phi + hit->getX() / hit->getY();
60 auto trackObj = std::make_unique<ExampleTrack>();
61 trackObj->setPT(
pT / hitCont->size());
62 trackObj->setEta(eta);
63 trackObj->setPhi(phi);
64 trackObj->setDetector(
"Track made in: " + (*hitCont->begin())->getDetector());
65 trackObj->getElementLink1()->toContainedElement(*hitCont, *hitCont->begin());
66 ATH_MSG_INFO(
"ElementLink1 = " << trackObj->getElement1()->getX());
67 trackObj->getElementLink2()->toIndexedElement(*hitCont, hitCont->size() - 1);
68 ATH_MSG_INFO(
"ElementLink2 = " << trackObj->getElement2()->getX());
73 trackObj->getElementLinkVector()->push_back(eLink1);
75 trackObj->getElementLinkVector()->push_back(eLink2);
77 trackObj->getElementLinkVector()->push_back(eLink3);
78 ATH_MSG_INFO(
"Link ElementLinkVector = " << trackObj->getElementLinkVector()->size());
80 ATH_MSG_INFO(
"Element = " << (**iter) <<
" : " << (**iter)->getX());
84 trackObj->getNavigable()->putElement(hitCont.cptr(), *hitCont->begin());
85 trackObj->getNavigable()->putElement(hitCont.cptr(), (*hitCont)[5]);
86 ATH_MSG_INFO(
"Link Navigable = " << trackObj->getNavigable()->size());
88 ATH_MSG_INFO(
"Element = " << (*iter) <<
" : " << (*iter)->getX());
92 trackObj->getWeightedNavigable()->putElement(hitCont.cptr(), *hitCont->begin(), 3.33);
93 trackObj->getWeightedNavigable()->putElement(hitCont.cptr(), (*hitCont)[5], 1.11);
94 trackObj->getWeightedNavigable()->putElement(hitCont.cptr(), (*hitCont)[3], 5.55);
95 ATH_MSG_INFO(
"Link Weighted Navigable = " << trackObj->getWeightedNavigable()->size());
97 ATH_MSG_INFO(
"Element = " << (*iter) <<
" : " << (*iter)->getX());
101 ATH_MSG_INFO(
"Track pt = " << trackObj->getPT() <<
" eta = " << trackObj->getEta() <<
" phi = " << trackObj->getPhi() <<
" detector = " << trackObj->getDetector());
104 auto trackCont = std::make_unique<ExampleTrackContainer>();
105 trackCont->push_back(std::move(trackObj));
112 return StatusCode::SUCCESS;
117 return StatusCode::SUCCESS;