|
ATLAS Offline Software
|
Go to the documentation of this file.
24 return StatusCode::SUCCESS;
31 m_tree =
new TTree(
"FPGATrackSimHoughRootOutput",
"FPGATrackSimHoughRootOutput");
57 m_truthtree =
new TTree(
"FPGATrackSimTruthTree",
"FPGATrackSimTruthTree");
69 m_offlinetree =
new TTree(
"FPGATrackSimOfflineTree",
"FPGATrackSimOfflineTree");
91 return StatusCode::SUCCESS;
103 for (
auto track : truthTracks) {
119 for (
auto track : offlineTracks) {
131 int nhole(0), nmeasurement(0), ninert(0), nbrem(0), nscatter(0), nperigee(0), noutlier(0), nother(0);
132 for (
const auto& hit :
track.getOfflineHits()) {
154 std::vector<FPGATrackSimMultiTruth> mtv;
160 for (
size_t iroad = 0; iroad < roads.size(); iroad++) {
162 std::shared_ptr<const FPGATrackSimRoad> road = roads[iroad];
163 if (road ==
nullptr)
continue;
170 for (
size_t icomb = 0; icomb < combs.size(); icomb++)
174 std::vector<int>
const & hit_indices = combs[icomb];
177 if (hit_indices[
layer] >= 0) {
178 std::shared_ptr<const FPGATrackSimHit> hit = road->
getHits(
layer)[hit_indices[
layer]];
183 mtv.push_back( truth );
187 const bool ok = truth.
best(tbarcode,tfrac);
190 m_barcode.push_back((
int)(tbarcode.second));
219 const bool ok = mt.
best(tbarcode,tfrac);
236 return StatusCode::SUCCESS;
unsigned getPhiModule() const
const std::vector< std::shared_ptr< const FPGATrackSimHit > > & getHits(size_t layer) const
bool accumulate(AccumulateMap &map, std::vector< module_t > const &modules, FPGATrackSimMatrixAccumulator const &acc)
Accumulates an accumulator (e.g.
unsigned getLayer() const
std::vector< size_t > getNHits_layer() const
bool best(FPGATrackSimMultiTruth::Barcode &code, FPGATrackSimMultiTruth::Weight &weight) const
const FPGATrackSimMultiTruth & getTruth() const
::StatusCode StatusCode
StatusCode definition for legacy code.
std::pair< unsigned long, unsigned long > Barcode
unsigned getIdentifierHash() const
std::vector< std::vector< int > > getComboIndices(std::vector< size_t > const &sizes)
Given a vector of sizes (of arrays), generates a vector of all combinations of indices to index one e...
unsigned getEtaWidth() const
unsigned getPhiWidth() const
void assign_equal_normalization()