![]() |
ATLAS Offline Software
|
Provides DriftCircle data from RDO info ie transforms a raw drifttime to a calibrated drift radius. More...
#include <TRT_DriftFunctionTool.h>
Public Member Functions | |
| TRT_DriftFunctionTool (const std::string &type, const std::string &name, const IInterface *parent) | |
| Constructor. | |
| virtual | ~TRT_DriftFunctionTool () |
| Destructor. | |
| virtual StatusCode | initialize () override |
| Retrieves needed services. | |
| virtual StatusCode | finalize () override |
| Finalize. | |
| virtual bool | isValidTime (double drifttime) const override |
| Returns True for drifttimes between -10 and 75ns. | |
| virtual double | rawTime (int tdcvalue) const override |
| Returns center of leading edge bin in ns for bin number = tdcvalue. | |
| virtual double | driftRadius (double rawtime, Identifier id, double &t0, bool &isOK, unsigned int word=0) const override |
| Returns drift radius in mm and t0 in ns The radius is truncated so it belongs to [0,2]mm. | |
| virtual double | driftRadius (double drifttime) const override |
| Returns drift radius for MC. | |
| virtual double | approxDriftTime (double driftradius) const override |
| Returns approximate drift time (t0 subtracted) | |
| virtual double | errorOfDriftRadius (double drifttime, Identifier id, float mu=-10, unsigned int word=0) const override |
| Time-dependent error of drift radius in mm. | |
| virtual double | driftTimeToTCorrection (double tot, Identifier id, bool isArgonStraw=false) const override |
| Returns time over threshold correction to the drift time (ns) | |
| virtual double | driftTimeHTCorrection (Identifier id, bool isArgonStraw=false) const override |
| Returns high threshold correction to the drift time (ns) | |
| void | setupRtRelation () |
| Initialise Rt relation. | |
Private Types | |
| enum | ETimeBins { MaxTimeBin = 50 } |
Private Attributes | |
| ToolHandle< ITRT_CalDbTool > | m_TRTCalDbTool {this, "TRTCalDbTool", "TRT_CalDbTool"} |
| Tool to fetch data from database. | |
| ToolHandle< ITRT_CalDbTool > | m_TRTCalDbTool2 {this, "TRTCalDbTool2", ""} |
| const InDetDD::TRT_DetectorManager * | m_manager {} |
| DetectorManager and helper. | |
| const TRT_ID * | m_trtid {} |
| double | m_radius [MaxTimeBin] {} |
| most probable radius in each bin | |
| double | m_errors [MaxTimeBin] {} |
| width of radius dist in each bin | |
| BooleanProperty | m_isMC {this, "IsMC", true} |
| BooleanProperty | m_isDataOverlay {this, "IsDataOverlay", false} |
| BooleanProperty | m_dummy |
| bool | m_istestbeam = false |
| DoubleProperty | m_err_fudge |
| BooleanProperty | m_enable_t0_barrel_shift {this, "T0BarrelShift", true} |
| enable T0 barrel shift | |
| BooleanProperty | m_force_universal_errors {this, "ForceUniversalErrors", false} |
| use one universal error | |
| DoubleProperty | m_uni_error {this, "UniversalError", 0.136} |
| namely this one | |
| std::string | m_key = "" |
| GeoModel version key. | |
| StringProperty | m_trt_mgr_location {this, "TrtDescrManageLocation", "TRT", "Name of TRT detector manager"} |
| double | m_t0_barrel [3] {} |
| t0 for the 3 barrel rings | |
| double | m_t0_endcap [18] {} |
| t0 for the 14(18) endcap wheels | |
| double | m_t0_shift |
| digiversion dependent t0 shift | |
| DoubleProperty | m_ht_correction_barrel_Xe |
| DoubleProperty | m_ht_correction_endcap_Xe |
| DoubleProperty | m_ht_correction_barrel_Ar |
| DoubleProperty | m_ht_correction_endcap_Ar |
| DoubleArrayProperty | m_tot_corrections_barrel_Xe |
| DoubleArrayProperty | m_tot_corrections_endcap_Xe |
| DoubleArrayProperty | m_tot_corrections_barrel_Ar |
| DoubleArrayProperty | m_tot_corrections_endcap_Ar |
Static Private Attributes | |
| static constexpr double | s_drifttimeperbin = 3.125 * CLHEP::ns |
| static const size_t | s_size_default = 19 |
| static constexpr double | s_radius_default [s_size_default] |
| static constexpr double | s_errors_default [s_size_default] |
| static const size_t | s_size_Comm = 13 |
| static constexpr double | s_radius_Comm [s_size_Comm] |
| static constexpr double | s_errors_Comm [s_size_Comm] |
Provides DriftCircle data from RDO info ie transforms a raw drifttime to a calibrated drift radius.
Definition at line 37 of file TRT_DriftFunctionTool.h.
|
private |
| TRT_DriftFunctionTool::TRT_DriftFunctionTool | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
Constructor.
Definition at line 27 of file TRT_DriftFunctionTool.cxx.
|
virtualdefault |
Destructor.
|
overridevirtual |
Returns approximate drift time (t0 subtracted)
Definition at line 130 of file TRT_DriftFunctionTool.cxx.
|
overridevirtual |
Returns drift radius for MC.
the inpout time in ns has t0 subtracted
Definition at line 148 of file TRT_DriftFunctionTool.cxx.
|
overridevirtual |
Returns drift radius in mm and t0 in ns The radius is truncated so it belongs to [0,2]mm.
isOK is false if there is no t0 or the drifttime is non-valid
Definition at line 171 of file TRT_DriftFunctionTool.cxx.
|
overridevirtual |
Returns high threshold correction to the drift time (ns)
Definition at line 264 of file TRT_DriftFunctionTool.cxx.
|
overridevirtual |
Returns time over threshold correction to the drift time (ns)
Definition at line 249 of file TRT_DriftFunctionTool.cxx.
|
overridevirtual |
Time-dependent error of drift radius in mm.
Definition at line 208 of file TRT_DriftFunctionTool.cxx.
|
overridevirtual |
Finalize.
Definition at line 121 of file TRT_DriftFunctionTool.cxx.
|
overridevirtual |
Retrieves needed services.
Definition at line 53 of file TRT_DriftFunctionTool.cxx.
|
inlineoverridevirtual |
Returns True for drifttimes between -10 and 75ns.
Definition at line 174 of file TRT_DriftFunctionTool.h.
|
inlineoverridevirtual |
Returns center of leading edge bin in ns for bin number = tdcvalue.
note, that the binwidth can vary with run type.
Definition at line 177 of file TRT_DriftFunctionTool.h.
| void TRT_DriftFunctionTool::setupRtRelation | ( | ) |
Initialise Rt relation.
Definition at line 276 of file TRT_DriftFunctionTool.cxx.
|
private |
Definition at line 105 of file TRT_DriftFunctionTool.h.
|
private |
enable T0 barrel shift
Definition at line 113 of file TRT_DriftFunctionTool.h.
|
private |
Definition at line 110 of file TRT_DriftFunctionTool.h.
|
private |
|
private |
use one universal error
Definition at line 116 of file TRT_DriftFunctionTool.h.
|
private |
Definition at line 132 of file TRT_DriftFunctionTool.h.
|
private |
Definition at line 128 of file TRT_DriftFunctionTool.h.
|
private |
Definition at line 134 of file TRT_DriftFunctionTool.h.
|
private |
Definition at line 130 of file TRT_DriftFunctionTool.h.
|
private |
Definition at line 104 of file TRT_DriftFunctionTool.h.
|
private |
Definition at line 103 of file TRT_DriftFunctionTool.h.
|
private |
Definition at line 108 of file TRT_DriftFunctionTool.h.
|
private |
GeoModel version key.
Definition at line 120 of file TRT_DriftFunctionTool.h.
|
private |
|
private |
|
private |
|
private |
|
private |
digiversion dependent t0 shift
Definition at line 126 of file TRT_DriftFunctionTool.h.
|
private |
Definition at line 143 of file TRT_DriftFunctionTool.h.
|
private |
Definition at line 137 of file TRT_DriftFunctionTool.h.
|
private |
Definition at line 146 of file TRT_DriftFunctionTool.h.
|
private |
Definition at line 140 of file TRT_DriftFunctionTool.h.
|
private |
Definition at line 121 of file TRT_DriftFunctionTool.h.
|
private |
Tool to fetch data from database.
Definition at line 90 of file TRT_DriftFunctionTool.h.
|
private |
Definition at line 91 of file TRT_DriftFunctionTool.h.
|
private |
Definition at line 95 of file TRT_DriftFunctionTool.h.
|
private |
namely this one
Definition at line 118 of file TRT_DriftFunctionTool.h.
|
staticconstexprprivate |
Definition at line 97 of file TRT_DriftFunctionTool.h.
|
staticconstexprprivate |
Definition at line 167 of file TRT_DriftFunctionTool.h.
|
staticconstexprprivate |
Definition at line 156 of file TRT_DriftFunctionTool.h.
|
staticconstexprprivate |
Definition at line 163 of file TRT_DriftFunctionTool.h.
|
staticconstexprprivate |
Definition at line 151 of file TRT_DriftFunctionTool.h.
|
staticprivate |
Definition at line 162 of file TRT_DriftFunctionTool.h.
|
staticprivate |
Definition at line 150 of file TRT_DriftFunctionTool.h.