#include <FPGAActsTrkConverter.h>
|
| FPGAActsTrkConverter (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~FPGAActsTrkConverter ()=default |
|
virtual StatusCode | initialize () override final |
|
virtual StatusCode | findProtoTracks (const EventContext &ctx, const xAOD::PixelClusterContainer &pixelContainer, const xAOD::StripClusterContainer &stripContainer, std::vector< ActsTrk::ProtoTrack > &foundProtoTracks, const std::vector< std::vector< FPGATrackSimHit >> &hitsInRoads, const std::vector< FPGATrackSimRoad > &roads) const override final |
|
virtual StatusCode | findProtoTracks (const EventContext &ctx, const xAOD::PixelClusterContainer &pixelContainer, const xAOD::StripClusterContainer &stripContainer, std::vector< ActsTrk::ProtoTrack > &foundProtoTracks, const std::vector< FPGATrackSimTrack > &tracks) const override final |
|
Definition at line 17 of file FPGAActsTrkConverter.h.
◆ FPGAActsTrkConverter()
FPGAActsTrkConverter::FPGAActsTrkConverter |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~FPGAActsTrkConverter()
virtual FPGAActsTrkConverter::~FPGAActsTrkConverter |
( |
| ) |
|
|
virtualdefault |
◆ findProtoTracks() [1/2]
Definition at line 93 of file FPGAActsTrkConverter.cxx.
99 ATH_MSG_INFO(
"Creating Acts proto-tracks from FPGA tracks...");
102 if (not
track.passedOR())
continue;
103 std::vector<ActsTrk::ATLASUncalibSourceLink>
points;
104 const std::vector <FPGATrackSimHit>&
hits =
track.getFPGATrackSimHits();
106 if (
hits.size() > 0) {
111 IdentifierHash
hash =
h.getIdentifierHash();
118 const auto& rdoList =
cl->rdoList();
119 const auto it =
std::find(rdoList.begin(), rdoList.end(),
id);
120 if (
it != rdoList.end()) {
125 else if (
h.isStrip()) {
127 int strip =
static_cast<int>(
h.getPhiCoord());
131 const auto& rdoList =
cl->rdoList();
132 const auto it =
std::find(rdoList.begin(), rdoList.end(),
id);
133 if (
it != rdoList.end()) {
141 return StatusCode::FAILURE;
155 std::unique_ptr<Acts::BoundTrackParameters> inputPerigee =
makeParams(
track);
156 foundProtoTracks.emplace_back(
points, std::move(inputPerigee));
161 return StatusCode::FAILURE;
165 return StatusCode::SUCCESS;
◆ findProtoTracks() [2/2]
Definition at line 28 of file FPGAActsTrkConverter.cxx.
35 ATH_MSG_INFO(
"Creating Acts proto-tracks from FPGA roads...");
37 if (hitsInRoads.size() > 0) {
39 for(
size_t roadIndex=0; roadIndex<=hitsInRoads.size()-1;roadIndex++) {
40 std::vector<ActsTrk::ATLASUncalibSourceLink>
points;
42 if (hitsInRoads.at(roadIndex).size()>0) {
45 IdentifierHash
hash =
h.getIdentifierHash();
52 const auto& rdoList =
cl->rdoList();
53 const auto it =
std::find(rdoList.begin(), rdoList.end(),
id);
54 if (
it != rdoList.end()) {
62 int strip =
static_cast<int>(
h.getPhiCoord());
66 const auto& rdoList =
cl->rdoList();
67 const auto it =
std::find(rdoList.begin(), rdoList.end(),
id);
68 if (
it != rdoList.end()) {
83 std::unique_ptr<Acts::BoundTrackParameters> inputPerigee =
makeParams(roads.at(roadIndex));
84 foundProtoTracks.emplace_back(
points, std::move(inputPerigee));
90 return StatusCode::SUCCESS;
◆ initialize()
StatusCode FPGAActsTrkConverter::initialize |
( |
| ) |
|
|
finaloverridevirtual |
◆ makeParams() [1/2]
std::unique_ptr< Acts::BoundTrackParameters > FPGAActsTrkConverter::makeParams |
( |
const FPGATrackSimRoad & |
road | ) |
const |
|
protected |
Definition at line 168 of file FPGAActsTrkConverter.cxx.
169 using namespace Acts::UnitLiterals;
171 std::shared_ptr<const Acts::Surface> actsSurface = Acts::Surface::makeShared<Acts::PerigeeSurface>(Acts::Vector3(0., 0., 0.));
174 constexpr
double GeVToMeV = 1000;
180 double qop=road.
getY()/GeVToMeV;
187 Acts::BoundSquareMatrix
cov = Acts::BoundSquareMatrix::Identity();
188 cov *= (GeVToMeV*GeVToMeV);
193 Acts::PdgParticle absPdg = Acts::makeAbsolutePdgParticle(Acts::ePionPlus);
195 absPdg,
mass, Acts::AnyCharge{1.0f}};
197 return std::make_unique<Acts::BoundTrackParameters>(actsSurface,
params,
198 cov, actsHypothesis);
◆ makeParams() [2/2]
std::unique_ptr< Acts::BoundTrackParameters > FPGAActsTrkConverter::makeParams |
( |
const FPGATrackSimTrack & |
track | ) |
const |
|
protected |
Definition at line 203 of file FPGAActsTrkConverter.cxx.
205 using namespace Acts::UnitLiterals;
206 std::shared_ptr<const Acts::Surface> actsSurface = Acts::Surface::makeShared<Acts::PerigeeSurface>(Acts::Vector3(0., 0., 0.));
209 constexpr
double GeVToMeV = 1000;
214 double qop=
track.getQOverPt();
221 Acts::BoundSquareMatrix
cov = Acts::BoundSquareMatrix::Identity();
222 cov *= (GeVToMeV*GeVToMeV);
227 Acts::PdgParticle absPdg = Acts::makeAbsolutePdgParticle(Acts::ePionPlus);
229 absPdg,
mass, Acts::AnyCharge{1.0f}};
231 return std::make_unique<Acts::BoundTrackParameters>(actsSurface,
params,
232 cov, actsHypothesis);
◆ m_pixelId
◆ m_SCTId
The documentation for this class was generated from the following files:
constexpr double mass[PARTICLEHYPOTHESES]
the array of masses
Identifier pixel_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int phi_index, int eta_index) const
For an individual pixel.
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.
Identifier strip_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side, int strip) const
For an individual strip.