ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
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. More...
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
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. More...
 

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. More...
 
double latestReplacementLuminosity (const double integratedLumi, const std::vector< double > &replacementLumis) const
 Helper function to determine the latest replacement luminosity. More...
 
double sensorFluence (const double sensorAccumulatedLumi, const double radius) const
 Returns the fluence received by the sensor in neq/cm^2. More...
 
double sigmaLandau (const double fluence) const
 Returns the time resolution contribution from Landau fluctuations. More...
 
double sigmaALTIROCJitter (const double depositedCharge, const double fluence) const
 Returns the time resolution contribution from the electronics jitter of ALTIROC. More...
 
double sigmaTDC () const
 Returns the time resolution contribution from TDC digitization smearing. More...
 
double sigmaClock () const
 Returns the time resolution contribution from the LHC clock. More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

Gaudi::Property< double > m_chargedNeutralRatio
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
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) {}

Member Function Documentation

◆ declareGaudiProperty() [1/4]

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

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

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

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  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

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

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

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

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

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

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  }

◆ 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.

95 { return m_detStore; }

◆ evtStore() [1/2]

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.

85 { return m_evtStore; }

◆ evtStore() [2/2]

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

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ 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(),
80 
81  return it == replacementLumis.begin() ? 0.0 : *(--it);
82 }

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ 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();
383  PBASE::renounce (h);
384  }

◆ 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  {
365  handlesArray.renounce();
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 }

◆ 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) +
101  sensorAccumulatedLumi / maxSensorLuminosity;
102 }

◆ 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)) *
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 DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ 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(
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 }

◆ 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) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

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.

◆ 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:
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
HGTD_TimeResolutionTool::sigmaALTIROCJitter
double sigmaALTIROCJitter(const double depositedCharge, const double fluence) const
Returns the time resolution contribution from the electronics jitter of ALTIROC.
Definition: HGTD_TimeResolutionTool.cxx:126
HGTD_TimeResolutionTool::m_chargedNeutralRatio
Gaudi::Property< double > m_chargedNeutralRatio
Definition: HGTD_TimeResolutionTool.h:42
python.SystemOfUnits.mm
float mm
Definition: SystemOfUnits.py:98
min
constexpr double min()
Definition: ap_fixedTest.cxx:26
skel.it
it
Definition: skel.GENtoEVGEN.py:407
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
python.SystemOfUnits.picosecond
float picosecond
Definition: SystemOfUnits.py:138
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
python.SystemOfUnits.coulomb
float coulomb
Definition: SystemOfUnits.py:157
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:29
cm
const double cm
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/FCAL_ChannelMap.cxx:25
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
HGTD_TimeResolutionTool::sensorFluence
double sensorFluence(const double sensorAccumulatedLumi, const double radius) const
Returns the fluence received by the sensor in neq/cm^2.
Definition: HGTD_TimeResolutionTool.cxx:84
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition: AthCommonDataStore.h:145
test_pyathena.parent
parent
Definition: test_pyathena.py:15
HGTD_TimeResolutionTool::sigmaLandau
double sigmaLandau(const double fluence) const
Returns the time resolution contribution from Landau fluctuations.
Definition: HGTD_TimeResolutionTool.cxx:104
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
CP::neutral
@ neutral
Definition: Reconstruction/PFlow/PFlowUtils/PFlowUtils/PFODefs.h:11
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
HGTD_TimeResolutionTool::sigmaClock
double sigmaClock() const
Returns the time resolution contribution from the LHC clock.
Definition: HGTD_TimeResolutionTool.cxx:158
ParticleGun_SamplingFraction.radius
radius
Definition: ParticleGun_SamplingFraction.py:96
a
TList * a
Definition: liststreamerinfos.cxx:10
h
python.DataFormatRates.integratedLumi
integratedLumi
Definition: DataFormatRates.py:60
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:629
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:801
HGTD_TimeResolutionTool::latestReplacementLuminosity
double latestReplacementLuminosity(const double integratedLumi, const std::vector< double > &replacementLumis) const
Helper function to determine the latest replacement luminosity.
Definition: HGTD_TimeResolutionTool.cxx:74
HGTD_TimeResolutionTool::sigmaTDC
double sigmaTDC() const
Returns the time resolution contribution from TDC digitization smearing.
Definition: HGTD_TimeResolutionTool.cxx:153
pow
constexpr int pow(int base, int exp) noexcept
Definition: ap_fixedTest.cxx:15
HGTD_TimeResolutionTool::replacementCorrectedLuminosity
double replacementCorrectedLuminosity(const double integratedLumi, const double radius) const
Corrects the integrated luminosity for possible module replacements.
Definition: HGTD_TimeResolutionTool.cxx:42
CP::charged
@ charged
Definition: Reconstruction/PFlow/PFlowUtils/PFlowUtils/PFODefs.h:11
fitman.k
k
Definition: fitman.py:528
python.SystemOfUnits.ns
float ns
Definition: SystemOfUnits.py:146