ATLAS Offline Software
Loading...
Searching...
No Matches
HGTD_TimeResolutionTool Class Reference

#include <HGTD_TimeResolutionTool.h>

Inheritance diagram for HGTD_TimeResolutionTool:
Collaboration diagram for HGTD_TimeResolutionTool:

Public Member Functions

 HGTD_TimeResolutionTool (const std::string &type, const std::string &name, const IInterface *parent)
float timeResolution (const double depositedCharge, const double radius, const double integratedLumi) const
 Returns the time resolution of an HGTD pixel.
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

double replacementCorrectedLuminosity (const double integratedLumi, const double radius) const
 Corrects the integrated luminosity for possible module replacements.
double latestReplacementLuminosity (const double integratedLumi, const std::vector< double > &replacementLumis) const
 Helper function to determine the latest replacement luminosity.
double sensorFluence (const double sensorAccumulatedLumi, const double radius) const
 Returns the fluence received by the sensor in neq/cm^2.
double sigmaLandau (const double fluence) const
 Returns the time resolution contribution from Landau fluctuations.
double sigmaALTIROCJitter (const double depositedCharge, const double fluence) const
 Returns the time resolution contribution from the electronics jitter of ALTIROC.
double sigmaTDC () const
 Returns the time resolution contribution from TDC digitization smearing.
double sigmaClock () const
 Returns the time resolution contribution from the LHC clock.
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

Gaudi::Property< double > m_chargedNeutralRatio
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 20 of file HGTD_TimeResolutionTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ HGTD_TimeResolutionTool()

HGTD_TimeResolutionTool::HGTD_TimeResolutionTool ( const std::string & type,
const std::string & name,
const IInterface * parent )

Definition at line 18 of file HGTD_TimeResolutionTool.cxx.

21 : AthAlgTool(type, name, parent) {}
AthAlgTool()
Default constructor:

Member Function Documentation

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ latestReplacementLuminosity()

double HGTD_TimeResolutionTool::latestReplacementLuminosity ( const double integratedLumi,
const std::vector< double > & replacementLumis ) const
private

Helper function to determine the latest replacement luminosity.

Given a list of integrated luminosities at which replacements of HGTD modules occured, this function finds and returns the most recent replacement luminosity.

Parameters
integratedLumiThe total integrated luminosity since the start of Run 4.
replacementLumisA vector containing luminosities at which replacements occured (sorted low-to-high).

Definition at line 74 of file HGTD_TimeResolutionTool.cxx.

76 {
77
78 auto it = std::lower_bound(replacementLumis.begin(), replacementLumis.end(),
79 integratedLumi);
80
81 return it == replacementLumis.begin() ? 0.0 : *(--it);
82}

◆ msg()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ replacementCorrectedLuminosity()

double HGTD_TimeResolutionTool::replacementCorrectedLuminosity ( const double integratedLumi,
const double radius ) const
private

Corrects the integrated luminosity for possible module replacements.

This function takes the total integrated luminosity since the start of Run 4 and corrects it by accounting for any replacements of HGTD modules done at a given radius.

Parameters
integratedLumiThe total integrated luminosity since the start of Run 4. Has to be given in units of fb^-1.
radiusThe radial distance of the pixel from the beam pipe.
Returns
The integrated luminosity the sensor was exposed to.

Definition at line 42 of file HGTD_TimeResolutionTool.cxx.

43 {
44
45 constexpr double innerRingRadius{230.0 * Athena::Units::mm};
46 constexpr double middleRingRadius{470.0 * Athena::Units::mm};
47
48 const std::vector<double> innerRingReplacementLumis{
49 // Unit is fb^-1
50 1000.0,
51 2000.0,
52 3000.0,
53 };
54
55 const std::vector<double> middleRingReplacementLumis{
56 // Unit is fb^-1
57 2000.0,
58 };
59
60 double replacementLumi{0.0};
61
62 if (radius < innerRingRadius) {
63 replacementLumi =
64 latestReplacementLuminosity(integratedLumi, innerRingReplacementLumis);
65 } else if (radius < middleRingRadius) {
66 replacementLumi =
67 latestReplacementLuminosity(integratedLumi, middleRingReplacementLumis);
68 }
69 // Outer ring does not have replacements - replacement lumi is 0.0
70
71 return integratedLumi - replacementLumi;
72}
double latestReplacementLuminosity(const double integratedLumi, const std::vector< double > &replacementLumis) const
Helper function to determine the latest replacement luminosity.

◆ sensorFluence()

double HGTD_TimeResolutionTool::sensorFluence ( const double sensorAccumulatedLumi,
const double radius ) const
private

Returns the fluence received by the sensor in neq/cm^2.

Parameters
sensorAccumulatedLumiThe integrated luminosity the sensor was exposed to. Has to be given in units of fb^-1.
radiusThe radial distance of the pixel from the beam pipe.

Definition at line 84 of file HGTD_TimeResolutionTool.cxx.

85 {
86
87 // Maximum luminosity expected by sensors in fb^-1
88 constexpr double maxSensorLuminosity{4000.0};
89
90 // 4th order polynomial parametrization of the neutron fluence as function of
91 // radius in cm.
92 ROOT::Math::Polynomial neutral(2.82428e+08, -5.22843e+10, 3.62182e+12,
93 -1.4085e+14, 4.08821e+15);
94
95 // Equivalent as line above, but for charged hadrons.
96 ROOT::Math::Polynomial charged(1.03139e+09, -2.06558e+11, 1.53897e+13,
97 -5.18627e+14, 7.17046e+15);
98
99 return (neutral(radius / Athena::Units::cm) +
100 m_chargedNeutralRatio * charged(radius / Athena::Units::cm)) *
101 sensorAccumulatedLumi / maxSensorLuminosity;
102}
Gaudi::Property< double > m_chargedNeutralRatio

◆ sigmaALTIROCJitter()

double HGTD_TimeResolutionTool::sigmaALTIROCJitter ( const double depositedCharge,
const double fluence ) const
private

Returns the time resolution contribution from the electronics jitter of ALTIROC.

This function computes the standard deviation of the time resolution contribution coming from the jitter due to electronics noise of the ALTIROC ASIC.

Parameters
depositedChargeThe charge deposited in the sensor (in unit of electrons).
fluenceThe radiation fluence in neq/cm^2 the sensor was exposed to.

Definition at line 126 of file HGTD_TimeResolutionTool.cxx.

127 {
128
129 constexpr double maxJitter{999.9 * Athena::Units::ns};
130
131 // Handle the case where insufficient charge is collected at high fluence and
132 // jitter goes to infinity.
133 if (fluence > 3.313e15 || depositedCharge == 0.0) {
134 return maxJitter;
135 }
136
137 // Convert deposited charge to fC
138 const double chargeInfC{depositedCharge / (1.0e-15 * Gaudi::Units::coulomb)};
139
140 // Parametrization of the collected charge as a function of fluence in 1e14
141 // neq/cm^2 for a reference 0.56 fC deposited charge.
142 ROOT::Math::Polynomial referenceCollectedChargeVsFluence(-0.01598, -0.0752,
143 20.04);
144
145 const double collectedCharge{
146 referenceCollectedChargeVsFluence(fluence / 1.0e14) * chargeInfC / 0.56};
147
148 return std::min((11.5201 + 36576.2 * std::pow(collectedCharge, -3.87335)) *
149 Athena::Units::picosecond,
150 maxJitter);
151}

◆ sigmaClock()

double HGTD_TimeResolutionTool::sigmaClock ( ) const
private

Returns the time resolution contribution from the LHC clock.

Definition at line 158 of file HGTD_TimeResolutionTool.cxx.

158 {
159
160 return 14.0 * Athena::Units::picosecond;
161}

◆ sigmaLandau()

double HGTD_TimeResolutionTool::sigmaLandau ( const double fluence) const
private

Returns the time resolution contribution from Landau fluctuations.

This function computes the standard deviation of the time resolution contribution coming from Landau fluctuations, which arise from the variablity in charge deposition and collection in the sensor active region.

Parameters
fluenceThe radiation fluence in neq/cm^2 the sensor was exposed to.

Definition at line 104 of file HGTD_TimeResolutionTool.cxx.

104 {
105
106 // Parametrization of sensor bias voltage as a function of fluence in 1e14
107 // neq/cm^2. Returns voltage in V.
108 ROOT::Math::Polynomial biasVoltageVsFluence(20.59, 96.26);
109
110 // LGADs can be biased at max 550 V due to single-event burnout. Unit V
111 const double operatingBiasVoltage{
112 std::min(biasVoltageVsFluence(fluence / 1.0e14), 550.0)};
113
114 constexpr double sensorActiveThickness{50.0 * Athena::Units::um};
115 constexpr double gainLayerVoltage{25.0}; // Unit V
116
117 const double averageElectricField{
118 (operatingBiasVoltage - gainLayerVoltage) /
119 (sensorActiveThickness / Athena::Units::um)}; // Unit V/um
120
121 // Parametrization of the Landau fluctuation contribution to time resolution
122 // as a function of average electric field in V/um: c1 + c2 / <E>
123 return (24.441 + 20.2311 / averageElectricField) * Athena::Units::picosecond;
124}

◆ sigmaTDC()

double HGTD_TimeResolutionTool::sigmaTDC ( ) const
private

Returns the time resolution contribution from TDC digitization smearing.

This function computes the standard deviation of the time resolution contribution coming from the time smearing introduced by the TDC digitization, mainly due to the finite TDC bin size, but also including effects such as TDC bin size smearing etc.

Definition at line 153 of file HGTD_TimeResolutionTool.cxx.

153 {
154
155 return 20.0 / std::sqrt(12.0) * Athena::Units::picosecond;
156}

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ timeResolution()

float HGTD_TimeResolutionTool::timeResolution ( const double depositedCharge,
const double radius,
const double integratedLumi ) const

Returns the time resolution of an HGTD pixel.

This function computes the expected time resolution of a hit on a single HGTD pixel based on the deposited charge, the radial position within the detector, and integrated luminosity.

Parameters
depositedChargeThe charge deposited in the pixel.
radiusThe radial distance of the pixel from the beam pipe.
integratedLumiThe total integrated luminosity since the start of Run 4. Has to be given in units of fb^-1.

Definition at line 23 of file HGTD_TimeResolutionTool.cxx.

25 {
26
27 const double receivedFluence{sensorFluence(
28 replacementCorrectedLuminosity(integratedLumi, radius), radius)};
29
30 // Multiple processes contribute to the total time resolution. They are added
31 // here in quadrature one-by-one.
32 double timeResVariance{0.0};
33 timeResVariance += std::pow(sigmaLandau(receivedFluence), 2.0);
34 timeResVariance +=
35 std::pow(sigmaALTIROCJitter(depositedCharge, receivedFluence), 2.0);
36 timeResVariance += std::pow(sigmaTDC(), 2.0);
37 timeResVariance += std::pow(sigmaClock(), 2.0);
38
39 return std::sqrt(timeResVariance);
40}
double sigmaTDC() const
Returns the time resolution contribution from TDC digitization smearing.
double sigmaLandau(const double fluence) const
Returns the time resolution contribution from Landau fluctuations.
double sigmaClock() const
Returns the time resolution contribution from the LHC clock.
double sigmaALTIROCJitter(const double depositedCharge, const double fluence) const
Returns the time resolution contribution from the electronics jitter of ALTIROC.
double replacementCorrectedLuminosity(const double integratedLumi, const double radius) const
Corrects the integrated luminosity for possible module replacements.
double sensorFluence(const double sensorAccumulatedLumi, const double radius) const
Returns the fluence received by the sensor in neq/cm^2.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_chargedNeutralRatio

Gaudi::Property<double> HGTD_TimeResolutionTool::m_chargedNeutralRatio
private
Initial value:
{
this, "ChargedNeutralRatio", 3.0,
"Ratio of radiation damage from charged hadrons vs neutrons"}

Definition at line 42 of file HGTD_TimeResolutionTool.h.

42 {
43 this, "ChargedNeutralRatio", 3.0,
44 "Ratio of radiation damage from charged hadrons vs neutrons"};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: