ATLAS Offline Software
Public Member Functions | Static Public Member Functions | List of all members
ITRT_ToT_dEdx Class Referenceabstract

#include <ITRT_ToT_dEdx.h>

Inheritance diagram for ITRT_ToT_dEdx:
Collaboration diagram for ITRT_ToT_dEdx:

Public Member Functions

virtual ~ITRT_ToT_dEdx ()
 Virtual destructor. More...
 
virtual double dEdx (const EventContext &ctx, const Trk::Track *track, bool useHitsHT, std::optional< float > localOccupancy=std::nullopt) const =0
 function to calculate sum ToT normalised to number of used hits More...
 
virtual double dEdx (const Trk::Track *track, bool useHitsHT, std::optional< float > localOccupancy=std::nullopt) const
 
virtual double usedHits (const EventContext &ctx, const Trk::Track *track, bool useHitsHT=true) const =0
 function to calculate number of used hits More...
 
virtual double usedHits (const Trk::Track *track, bool useHitsHT=true) const
 
virtual double getTest (const EventContext &ctx, const double dEdx_obs, const double pTrk, Trk::ParticleHypothesis hypothesis, Trk::ParticleHypothesis antihypothesis, int nUsedHits) const =0
 function to calculate likelihood ratio test More...
 
virtual double getTest (const double dEdx_obs, const double pTrk, Trk::ParticleHypothesis hypothesis, Trk::ParticleHypothesis antihypothesis, int nUsedHits) const
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 AlgTool interface methods. More...
 

Detailed Description

Definition at line 21 of file ITRT_ToT_dEdx.h.

Constructor & Destructor Documentation

◆ ~ITRT_ToT_dEdx()

virtual ITRT_ToT_dEdx::~ITRT_ToT_dEdx ( )
inlinevirtual

Virtual destructor.

Definition at line 27 of file ITRT_ToT_dEdx.h.

27 {};

Member Function Documentation

◆ dEdx() [1/2]

virtual double ITRT_ToT_dEdx::dEdx ( const EventContext &  ctx,
const Trk::Track track,
bool  useHitsHT,
std::optional< float >  localOccupancy = std::nullopt 
) const
pure virtual

function to calculate sum ToT normalised to number of used hits

Parameters
Eventcontext ctx
trackpointer to track
useHitsHTdecide if HT hits should be used in the estimate
Returns
dEdx value

Implemented in TRT_ToT_dEdx.

◆ dEdx() [2/2]

double ITRT_ToT_dEdx::dEdx ( const Trk::Track track,
bool  useHitsHT,
std::optional< float >  localOccupancy = std::nullopt 
) const
inlinevirtual

Definition at line 91 of file ITRT_ToT_dEdx.h.

94 {
95  return dEdx(Gaudi::Hive::currentContext(), track, useHitsHT, localOccupancy);
96 }

◆ getTest() [1/2]

double ITRT_ToT_dEdx::getTest ( const double  dEdx_obs,
const double  pTrk,
Trk::ParticleHypothesis  hypothesis,
Trk::ParticleHypothesis  antihypothesis,
int  nUsedHits 
) const
inlinevirtual

Definition at line 105 of file ITRT_ToT_dEdx.h.

110 {
111  return getTest(Gaudi::Hive::currentContext(),
112  dEdx_obs,
113  pTrk,
114  hypothesis,
115  antihypothesis,
116  nUsedHits);
117 }

◆ getTest() [2/2]

virtual double ITRT_ToT_dEdx::getTest ( const EventContext &  ctx,
const double  dEdx_obs,
const double  pTrk,
Trk::ParticleHypothesis  hypothesis,
Trk::ParticleHypothesis  antihypothesis,
int  nUsedHits 
) const
pure virtual

function to calculate likelihood ratio test

Parameters
Eventcontext ctx
observeddEdx
trackparameter
particlehypothesis
antihypothesis
numberof used hits
Returns
test value between 0 and 1

Implemented in TRT_ToT_dEdx.

◆ interfaceID()

static const InterfaceID& ITRT_ToT_dEdx::interfaceID ( )
inlinestatic

AlgTool interface methods.

Definition at line 30 of file ITRT_ToT_dEdx.h.

30 { return IID_ITRT_ToT_dEdx; };

◆ usedHits() [1/2]

virtual double ITRT_ToT_dEdx::usedHits ( const EventContext &  ctx,
const Trk::Track track,
bool  useHitsHT = true 
) const
pure virtual

function to calculate number of used hits

Parameters
Eventcontext ctx
trackpointer
useHitsHTdecide if HT hits should be used in the estimate
Returns
nHits

Implemented in TRT_ToT_dEdx.

◆ usedHits() [2/2]

double ITRT_ToT_dEdx::usedHits ( const Trk::Track track,
bool  useHitsHT = true 
) const
inlinevirtual

Definition at line 99 of file ITRT_ToT_dEdx.h.

100 {
101  return usedHits(Gaudi::Hive::currentContext(), track, useHitsHT);
102 }

The documentation for this class was generated from the following file:
ITRT_ToT_dEdx::usedHits
virtual double usedHits(const EventContext &ctx, const Trk::Track *track, bool useHitsHT=true) const =0
function to calculate number of used hits
ITRT_ToT_dEdx::dEdx
virtual double dEdx(const EventContext &ctx, const Trk::Track *track, bool useHitsHT, std::optional< float > localOccupancy=std::nullopt) const =0
function to calculate sum ToT normalised to number of used hits
ITRT_ToT_dEdx::getTest
virtual double getTest(const EventContext &ctx, const double dEdx_obs, const double pTrk, Trk::ParticleHypothesis hypothesis, Trk::ParticleHypothesis antihypothesis, int nUsedHits) const =0
function to calculate likelihood ratio test
xAOD::track
@ track
Definition: TrackingPrimitives.h:512