|
ATLAS Offline Software
|
Go to the documentation of this file.
25 std::ifstream inFileNN(fullPathToModelFile);
30 return StatusCode::SUCCESS;
36 if (!ok)
throw std::logic_error(
"problem getting track summary value");
44 double HF_score = track_outputs[
"FromB"]+track_outputs[
"FromBC"]+track_outputs[
"FromC"];
51 double dphi = -(
jet->p4()).DeltaPhi(
track->p4());
52 double deta = -(
jet->eta() -
track->eta());
54 double ptfrac = (
track->pt())/(
jet->pt());
61 std::map<std::string, double> track_inputs{
84 std::map<std::string, std::map<std::string, double> >
inputs {
85 {
"track_inputs", track_inputs}
91 std::map<std::string, double> track_outputs{
102 return track_outputs;
108 static constexpr
float const&
MeVtoGeV = 1
e-3;
120 if(
score > nit->second){
@ numberOfPixelHoles
number of pixel layers on track with absence of hits [unit8_t].
@ numberOfInnermostPixelLayerSplitHits
number of Pixel 0th layer barrel hits split by cluster splitting
const std::map< double, double > m_WPcuts
@ numberOfSCTSharedHits
number of SCT hits shared by several tracks [unit8_t].
This file contains "getter" functions used for accessing tagger inputs from the EDM.
virtual std::map< std::string, double > ComputeScore(const xAOD::TrackParticle *track, const xAOD::Jet *jet) const override
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
Helper class to provide constant type-safe access to aux data.
TrackClassifier(const std::string &name)
virtual ~TrackClassifier()
virtual bool selectTrack(const xAOD::TrackParticle *track, const xAOD::Jet *jet) const override
std::string m_NNModelFilepath
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
@ numberOfPixelSharedHits
number of Pixel all-layer hits shared by several tracks [unit8_t].
SummaryType
Enumerates the different types of information stored in Summary.
::StatusCode StatusCode
StatusCode definition for legacy code.
int get(const xAOD::TrackParticle *part, xAOD::SummaryType info) const
std::unique_ptr< lwt::LightweightGraph > m_lwtnn_network
@ numberOfPixelSplitHits
number of Pixel all-layer hits split by cluster splitting [unit8_t].
@ numberOfSCTHoles
number of SCT holes [unit8_t].
virtual double compute_HF_Score(const xAOD::TrackParticle *track, const xAOD::Jet *jet) const override
@ numberOfNextToInnermostPixelLayerHits
these are the hits in the 1st pixel barrel layer
bool pass_cut(const double score, const xAOD::Jet *jet) const
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
GraphConfig parse_json_graph(std::istream &json)
std::vector< std::string > config
@ numberOfInnermostPixelLayerSharedHits
number of Pixel 0th layer barrel hits shared by several tracks.
@ numberOfSCTHits
number of hits in SCT [unit8_t].
Class describing a TrackParticle.
std::map< std::string, double > ValueMap
Base class for elements of a container that can have aux data.
@ numberOfInnermostPixelLayerHits
these are the hits in the 0th pixel barrel layer