interface to TRT calibration constants
More...
#include <TRT_CalDbTool.h>
|
| | TRT_CalDbTool (const std::string &type, const std::string &name, const IInterface *parent) |
| | typedefs, enums etc
|
| virtual | ~TRT_CalDbTool ()=default |
| | destructor
|
| virtual StatusCode | initialize () override |
| | tool initialize
|
| virtual StatusCode | finalize () override |
| | tool finalize
|
| virtual float | getT0 (const Identifier &id, int level=TRTCond::ExpandedIdentifier::STRAW) const override |
| | get T0 for an identifier
|
| virtual const TRTCond::RtRelation * | getRtRelation (const Identifier &id, int level=TRTCond::ExpandedIdentifier::STRAW) const override |
| | get an rtrelation for an identifier
|
| virtual const TRTCond::RtRelation * | getErrors (const Identifier &id, int level=TRTCond::ExpandedIdentifier::STRAW) const override |
| | get errors for an identifier
|
| virtual const TRTCond::RtRelation * | getSlopes (const Identifier &id, int level=TRTCond::ExpandedIdentifier::STRAW) const override |
| | get errors for an identifier
|
| virtual double | driftRadius (const double &time, float &t0, const Identifier &ident, bool &found) const override |
| | get a drift radius for a given leading edge time
|
| virtual double | driftError (const double &time, const Identifier &ident, bool &found) const override |
| | get a drift radius error for a given drifttime
|
| virtual double | driftSlope (const double &time, const Identifier &ident, bool &found) const override |
| | get a drift radius error for a given drifttime
|
| virtual TRTCond::ExpandedIdentifier | trtcondid (const Identifier &id, int level=TRTCond::ExpandedIdentifier::STRAW) const override |
| | create an TRTCond::ExpandedIdentifier from a TRTID identifier
|
| virtual const RtRelationContainer * | getRtContainer () const override |
| | access to calibration constant containers
|
| virtual const RtRelationContainer * | getErrContainer () const override |
| virtual const RtRelationContainer * | getSlopeContainer () const override |
| virtual const StrawT0Container * | getT0Container () const override |
|
| const TRT_ID * | m_trtId |
| | id helper
|
| SG::ReadCondHandleKey< RtRelationContainer > | m_rtReadKey {this,"RtFolderName","/TRT/Calib/RT","r-t relation in-key"} |
| | ReadHandle keys.
|
| SG::ReadCondHandleKey< RtRelationContainer > | m_errReadKey {this,"ErrorFolderName","/TRT/Calib/errors2d","error on r in-key"} |
| SG::ReadCondHandleKey< RtRelationContainer > | m_slopeReadKey {this,"ErrorSlopeFolderName","/TRT/Calib/slopes","slope of error in-key"} |
| SG::ReadCondHandleKey< StrawT0Container > | m_t0ReadKey {this,"T0FolderName","/TRT/Calib/T0","t0 in-key"} |
interface to TRT calibration constants
Definition at line 33 of file TRT_CalDbTool.h.
◆ TRT_CalDbTool()
| TRT_CalDbTool::TRT_CalDbTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
typedefs, enums etc
constructor
Definition at line 21 of file TRT_CalDbTool.cxx.
22 : base_class(type, name, parent),
24{}
◆ ~TRT_CalDbTool()
| virtual TRT_CalDbTool::~TRT_CalDbTool |
( |
| ) |
|
|
virtualdefault |
◆ driftError()
| double TRT_CalDbTool::driftError |
( |
const double & | time, |
|
|
const Identifier & | ident, |
|
|
bool & | found ) const |
|
overridevirtual |
get a drift radius error for a given drifttime
Definition at line 118 of file TRT_CalDbTool.cxx.
119{
120
121
123 const TRTCond::RtRelation* rtr =
getErrors(ident) ;
125 if(rtr) {
127 } else {
129 return 0;
130 }
133}
#define ATH_MSG_VERBOSE(x)
virtual float radius(float driftime) const =0
radius for given drifttime
◆ driftRadius()
| double TRT_CalDbTool::driftRadius |
( |
const double & | time, |
|
|
float & | t0, |
|
|
const Identifier & | ident, |
|
|
bool & | found ) const |
|
overridevirtual |
get a drift radius for a given leading edge time
Definition at line 86 of file TRT_CalDbTool.cxx.
87{
88
89
94 if (rtr != nullptr)
96 else
97 ATH_MSG_FATAL(
" cannot find an rt-relation for TRT layer_or_wheel " <<
m_trtId->layer_or_wheel(ident) <<
" Please check IOV ranges ");
98
99 ATH_MSG_VERBOSE(
" time " << time <<
" t0 " <<
t0 <<
" t " << time-
t0 <<
" radius " << radius);
100
102 else if( radius>2.)
radius=2.;
103
104
106 ATH_MSG_VERBOSE(
" time " << time <<
" t0 " <<
t0 <<
" t " << time-
t0 <<
" > 55, check Rt derivative");
107
108 if (rtr != nullptr){
109 if (rtr->
drdt( time -
t0 ) < 0 ){
110 ATH_MSG_VERBOSE(
" time " << time <<
" t0 " <<
t0 <<
" t " << time-
t0 <<
" and rt derivative: " << rtr->
drdt( time -
t0 ));
112 }
113 }
114 }
116}
virtual float drdt(float driftime) const =0
driftvelocity for given drifttime
◆ driftSlope()
| double TRT_CalDbTool::driftSlope |
( |
const double & | time, |
|
|
const Identifier & | ident, |
|
|
bool & | found ) const |
|
overridevirtual |
get a drift radius error for a given drifttime
Definition at line 135 of file TRT_CalDbTool.cxx.
136{
137
138
140 const TRTCond::RtRelation* rtr =
getSlopes(ident) ;
141 double slope=0.;
142 if(rtr) {
143 slope = rtr->
radius( time );
144 } else {
146 return 0;
147 }
149 return slope;
150}
◆ finalize()
| StatusCode TRT_CalDbTool::finalize |
( |
| ) |
|
|
overridevirtual |
tool finalize
Definition at line 53 of file TRT_CalDbTool.cxx.
54{
56 return StatusCode::SUCCESS;
57}
◆ getErrContainer()
| const TRT_CalDbTool::RtRelationContainer * TRT_CalDbTool::getErrContainer |
( |
| ) |
const |
|
overridevirtual |
◆ getErrors()
◆ getRtContainer()
| const TRT_CalDbTool::RtRelationContainer * TRT_CalDbTool::getRtContainer |
( |
| ) |
const |
|
overridevirtual |
access to calibration constant containers
Definition at line 60 of file TRT_CalDbTool.cxx.
60 {
61
62 SG::ReadCondHandle<RtRelationContainer> rtc(
m_rtReadKey);
63 return *rtc;
64}
◆ getRtRelation()
◆ getSlopeContainer()
| const TRT_CalDbTool::RtRelationContainer * TRT_CalDbTool::getSlopeContainer |
( |
| ) |
const |
|
overridevirtual |
◆ getSlopes()
◆ getT0()
◆ getT0Container()
| const TRT_CalDbTool::StrawT0Container * TRT_CalDbTool::getT0Container |
( |
| ) |
const |
|
overridevirtual |
◆ initialize()
| StatusCode TRT_CalDbTool::initialize |
( |
| ) |
|
|
overridevirtual |
tool initialize
Definition at line 27 of file TRT_CalDbTool.cxx.
28{
30
31
32
36 return StatusCode::FAILURE;
37 }
38
39
40
45
47
48 return StatusCode::SUCCESS;
49}
#define ATH_CHECK
Evaluate an expression and check for errors.
::StatusCode StatusCode
StatusCode definition for legacy code.
◆ trtcondid()
◆ m_errReadKey
| SG::ReadCondHandleKey<RtRelationContainer> TRT_CalDbTool::m_errReadKey {this,"ErrorFolderName","/TRT/Calib/errors2d","error on r in-key"} |
|
private |
Definition at line 91 of file TRT_CalDbTool.h.
91{this,"ErrorFolderName","/TRT/Calib/errors2d","error on r in-key"};
◆ m_rtReadKey
ReadHandle keys.
Definition at line 90 of file TRT_CalDbTool.h.
90{this,"RtFolderName","/TRT/Calib/RT","r-t relation in-key"};
◆ m_slopeReadKey
Definition at line 92 of file TRT_CalDbTool.h.
92{this,"ErrorSlopeFolderName","/TRT/Calib/slopes","slope of error in-key"};
◆ m_t0ReadKey
Definition at line 93 of file TRT_CalDbTool.h.
93{this,"T0FolderName","/TRT/Calib/T0","t0 in-key"};
◆ m_trtId
The documentation for this class was generated from the following files: