ATLAS Offline Software
Loading...
Searching...
No Matches
AmbiguityProcessorUtility.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef AmbiguityProcessorUtility_h
5#define AmbiguityProcessorUtility_h
6
7#include "GaudiKernel/ToolHandle.h"
11#include <vector>
12#include <set>
13#include <array>
14#include <string>
15#include <memory> //unique_ptr
16
17namespace Trk{
18 class Track;
19 class PrepRawData;
20}
21
22
23namespace AmbiguityProcessor{
25 using AssociationTool = ToolHandle<Trk::IPRDtoTrackMapTool>;
27 using DuplicationCheckSet = std::set<std::vector<const Trk::PrepRawData*>> ;
28 //
29 //categorise the track as zero-score, duplicate or 'accepted'
31 const Trk::TrackScore &score,
32 const bool dropDuplicates,
35 //
36 // give appropriate text for each category
37 const static std::array<std::string, nCategories> debugMessage{
38 "Score is zero, reject.", "Track is duplicate, reject.",
39 "Track is accepted."};
40 // calculate a simple chi^2/ndof
41 float calculateFitQuality(const Trk::Track & track);
42 //create a track from a new FitQuality object looping over track-state-on-surfaces to calculate
43 std::unique_ptr<Trk::Track> createNewFitQualityTrack(const Trk::Track & track);
44 //generate unique id for track (used in track observer tool)
45 int getUid();
46}//namespace
47
48#endif
Trk::PRDtoTrackMap AssociationMap
std::set< std::vector< const Trk::PrepRawData * > > DuplicationCheckSet
static const std::array< std::string, nCategories > debugMessage
TrackFilterCategory categoriseTrack(const Trk::Track &track, const Trk::TrackScore &score, const bool dropDuplicates, const AssociationTool &associate, AssociationMap &map, DuplicationCheckSet &set)
float calculateFitQuality(const Trk::Track &track)
ToolHandle< Trk::IPRDtoTrackMapTool > AssociationTool
std::unique_ptr< Trk::Track > createNewFitQualityTrack(const Trk::Track &track)
Ensure that the ATLAS eigen extensions are properly loaded.
float TrackScore
Definition TrackScore.h:10