#include <ITRT_ToT_dEdx.h>
|
| virtual | ~ITRT_ToT_dEdx () |
| | Virtual destructor.
|
| 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
|
| 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
|
| 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
|
| virtual double | getTest (const double dEdx_obs, const double pTrk, Trk::ParticleHypothesis hypothesis, Trk::ParticleHypothesis antihypothesis, int nUsedHits) const |
|
| static const InterfaceID & | interfaceID () |
| | AlgTool interface methods.
|
Definition at line 21 of file ITRT_ToT_dEdx.h.
◆ ~ITRT_ToT_dEdx()
| virtual ITRT_ToT_dEdx::~ITRT_ToT_dEdx |
( |
| ) |
|
|
inlinevirtual |
◆ 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
-
| Event | context ctx |
| track | pointer to track |
| useHitsHT | decide 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 |
Reimplemented in TRT_ToT_dEdx.
Definition at line 91 of file ITRT_ToT_dEdx.h.
94{
95 return dEdx(Gaudi::Hive::currentContext(), track, useHitsHT, localOccupancy);
96}
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
◆ getTest() [1/2]
Reimplemented in TRT_ToT_dEdx.
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}
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
◆ getTest() [2/2]
function to calculate likelihood ratio test
- Parameters
-
| Event | context ctx |
| observed | dEdx |
| track | parameter |
| particle | hypothesis |
| antihypothesis | |
| number | of used hits |
- Returns
- test value between 0 and 1
Implemented in TRT_ToT_dEdx.
◆ interfaceID()
| const InterfaceID & ITRT_ToT_dEdx::interfaceID |
( |
| ) |
|
|
inlinestatic |
AlgTool interface methods.
Definition at line 30 of file ITRT_ToT_dEdx.h.
static const InterfaceID IID_ITRT_ToT_dEdx("ITRT_ToT_dEdx", 1, 0)
◆ 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
-
| Event | context ctx |
| track | pointer |
| useHitsHT | decide 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 |
Reimplemented in TRT_ToT_dEdx.
Definition at line 99 of file ITRT_ToT_dEdx.h.
100{
101 return usedHits(Gaudi::Hive::currentContext(), track, useHitsHT);
102}
virtual double usedHits(const EventContext &ctx, const Trk::Track *track, bool useHitsHT=true) const =0
function to calculate number of used hits
The documentation for this class was generated from the following file: