ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
InDet::InDetSlidingWindowTrackTimeTool Class Reference

#include <InDetSlidingWindowTrackTimeTool.h>

Inheritance diagram for InDet::InDetSlidingWindowTrackTimeTool:
Collaboration diagram for InDet::InDetSlidingWindowTrackTimeTool:

Public Member Functions

 InDetSlidingWindowTrackTimeTool (const std::string &, const std::string &, const IInterface *)
 
virtual ~InDetSlidingWindowTrackTimeTool ()
 default destructor More...
 
virtual StatusCode initialize ()
 standard Athena-Algorithm method More...
 
virtual StatusCode finalize ()
 standard Athena-Algorithm method More...
 
double findPhase (const Trk::Track *track) const
 finds event phase of a track from the leading edge More...
 
double findPhase (const Trk::Segment *segment) const
 finds event phase of a segment from the leading edge More...
 
double findPhaseFromTE (const Trk::Track *track) const
 finds event phase of a track from the trailing edge 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 > &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
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 

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

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

ToolHandle< ITRT_CalDbToolm_caldbtool
 TRT Calibration DB tool. More...
 
SG::ReadCondHandleKey< TRTCond::AverageT0m_T0ReadKey {this,"T0ReadKey","AverageT0","Average T0 in-key"}
 
double m_globalOffset
 
bool m_useNewEP
 
int m_nIterations
 
double m_windowSize
 
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

Author
Brett Jackson brett.nosp@m..dav.nosp@m.id.ja.nosp@m.ckso.nosp@m.n@cer.nosp@m.n.ch

This tool is essentially copy and pasted from the TRTCosmicsEventPhase algorithm.

Definition at line 38 of file InDetSlidingWindowTrackTimeTool.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

◆ InDetSlidingWindowTrackTimeTool()

InDet::InDetSlidingWindowTrackTimeTool::InDetSlidingWindowTrackTimeTool ( const std::string &  t,
const std::string &  n,
const IInterface *  p 
)

Definition at line 25 of file InDetSlidingWindowTrackTimeTool.cxx.

28  : AthAlgTool(t, n, p)
29  , m_caldbtool("TRT_CalDbTool", this) {
30  declareInterface<IInDetCosmicsEventPhaseTool>(this);
31  declareProperty("TRTCalDbTool", m_caldbtool);
32  declareProperty("GlobalOffset", m_globalOffset = 10.);
33  declareProperty("UseNewEP", m_useNewEP = true);
34  declareProperty("NumberIterations", m_nIterations = 5);
35  declareProperty("WindowSize", m_windowSize = 7.);
36 }

◆ ~InDetSlidingWindowTrackTimeTool()

InDet::InDetSlidingWindowTrackTimeTool::~InDetSlidingWindowTrackTimeTool ( )
virtual

default destructor

Definition at line 40 of file InDetSlidingWindowTrackTimeTool.cxx.

41 {}

Member Function Documentation

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  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 > &  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 > &  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 > &  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 > &  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

◆ finalize()

StatusCode InDet::InDetSlidingWindowTrackTimeTool::finalize ( )
virtual

standard Athena-Algorithm method

Definition at line 56 of file InDetSlidingWindowTrackTimeTool.cxx.

56  {
57  //
58  return StatusCode::SUCCESS;
59 }

◆ findPhase() [1/2]

double InDet::InDetSlidingWindowTrackTimeTool::findPhase ( const Trk::Segment segment) const
virtual

finds event phase of a segment from the leading edge

Implements InDet::IInDetCosmicsEventPhaseTool.

Definition at line 133 of file InDetSlidingWindowTrackTimeTool.cxx.

133  {
134 
135  double sum_tr = 0.;
136  double sum_goodhits = 0.;
137  int nhits = segment->numberOfMeasurementBases();
138 
139  std::vector<double> data{0., 0.1, -0.00087,0.};
140  TRTCond::RtRelation const* rtr = nullptr;
141 
142  for (int i = 0; i < nhits; ++i) {
143  Trk::RIO_OnTrack const* rio = dynamic_cast<Trk::RIO_OnTrack const*>(segment->measurement(i));
144  InDet::TRT_DriftCircleOnTrack const* trtcirc = dynamic_cast<InDet::TRT_DriftCircleOnTrack const*>(rio);
145  if (!trtcirc) continue;
146  InDet::TRT_DriftCircle const* rawhit = trtcirc->prepRawData();
147  if (!rawhit) continue;
148  if (!rawhit->lastBinHigh() && !rawhit->isNoise()) {
149  Identifier const& ident = trtcirc->identify();
150  rtr = m_caldbtool->getRtRelation(ident);
151  if (not rtr) {
152  ATH_MSG_WARNING("Rt relation pointer is null!");
153  return 0.;
154  }
155  double full_drifttime = rtr->drifttime(2.0);
156  sum_tr += rawhit->trailingEdge() * 3.125 - full_drifttime;
157  ATH_MSG_VERBOSE("Hit " << sum_goodhits
158  << " : " << rawhit->trailingEdge() * 3.125
159  << " fulldrifttime=" << full_drifttime);
160  sum_goodhits += 1;
161  } else {
162  ATH_MSG_VERBOSE("Hit has lastbin high");
163  }
164  }
165  if (sum_goodhits > 1) return sum_tr / sum_goodhits + m_globalOffset;
166  return 0;
167 }

◆ findPhase() [2/2]

double InDet::InDetSlidingWindowTrackTimeTool::findPhase ( const Trk::Track track) const
virtual

finds event phase of a track from the leading edge

Implements InDet::IInDetCosmicsEventPhaseTool.

Definition at line 62 of file InDetSlidingWindowTrackTimeTool.cxx.

62  {
63  ATH_MSG_DEBUG("Finding phase...");
64 
65  double aT0=0.;
66  if (!m_useNewEP) {
67  ATH_MSG_INFO(" Set averageT0 = 0 (m_useNewEP=false) ");
68  } else {
70  const TRTCond::AverageT0* avgT0{*rhl};
71  aT0=avgT0->get();
72  }
73 
74 
75  TRTCond::RtRelation const* rtr = nullptr;
76 
77  double timeresidualsum = 0;
78  size_t ntrthits = 0;
79  double windowCenter = 0;
80  for (int itr = 0; itr != m_nIterations; ++itr) {
81  timeresidualsum = 0;
82  ntrthits = 0;
83  for (Trk::TrackStateOnSurface const* state : *track->trackStateOnSurfaces()) {
84  Trk::MeasurementBase const* mesb = state->measurementOnTrack();
85  if (!mesb
87  ) continue;
88  InDet::TRT_DriftCircleOnTrack const* trtcirc = dynamic_cast<InDet::TRT_DriftCircleOnTrack const*>(mesb);
89  if (!trtcirc) continue;
90  InDet::TRT_DriftCircle const* rawhit = trtcirc->prepRawData();
91  if (!rawhit) continue;
92  if (!rawhit->driftTimeValid()
93  || rawhit->firstBinHigh()
94  ) continue;
95  Identifier const& ident = trtcirc->identify();
96  double rawdrifttime = rawhit->rawDriftTime();
97  double t0 = m_caldbtool->getT0(ident);
98 
99  ATH_MSG_DEBUG("T0 : " << t0);
100  rtr = m_caldbtool->getRtRelation(ident);
101 
102  Trk::TrackParameters const* tparp = state->trackParameters();
103  if (!tparp) continue;
104  double trkdistance = tparp->parameters()[Trk::driftRadius];
105  double trkdrifttime = rtr->drifttime(std::abs(trkdistance));
106  double timeresidual = rawdrifttime - t0 + aT0 - trkdrifttime;
107  ATH_MSG_DEBUG("trkdistance=" << trkdistance
108  << " trkdrifttime=" << trkdrifttime
109  << " timeresidual=" << timeresidual
110  << " rawdrifttime=" << rawdrifttime);
111  if (timeresidual < 2000
112  && std::abs(trkdistance) < 2.8) {
113  if (itr == 0
114  || std::abs(timeresidual - windowCenter) < m_windowSize) {
115  timeresidualsum += timeresidual;
116  ++ntrthits;
117  }
118  }
119  }
120  if (ntrthits > 1) {
121  windowCenter = timeresidualsum / ntrthits;
122  } else break;
123  }
124 
125  ATH_MSG_DEBUG("timeresidualsum = " << timeresidualsum);
126  ATH_MSG_DEBUG("ntrtrhits = " << ntrthits);
127 
128  if (ntrthits > 1)
129  return windowCenter + m_globalOffset;
130  return 0.;
131 }

◆ findPhaseFromTE()

double InDet::InDetSlidingWindowTrackTimeTool::findPhaseFromTE ( const Trk::Track track) const
virtual

finds event phase of a track from the trailing edge

Implements InDet::IInDetCosmicsEventPhaseTool.

Definition at line 169 of file InDetSlidingWindowTrackTimeTool.cxx.

169  {
170 
171  ATH_MSG_DEBUG("Finding phase...");
172 
173  double aT0=0.;
174  if (!m_useNewEP) {
175  ATH_MSG_INFO(" Set averageT0 = 0 (m_useNewEP=false) ");
176  } else {
178  const TRTCond::AverageT0* avgT0{*rhl};
179  aT0=avgT0->get();
180  }
181 
182  double timeresidualsum = 0;
183  size_t ntrthits = 0;
184  for (Trk::TrackStateOnSurface const* state : *track->trackStateOnSurfaces()) {
185  Trk::MeasurementBase const* mesb = state->measurementOnTrack();
186  if (!mesb
188  ) continue;
189  InDet::TRT_DriftCircleOnTrack const* trtcirc = dynamic_cast<InDet::TRT_DriftCircleOnTrack const*>(mesb);
190  if (!trtcirc) continue;
191  InDet::TRT_DriftCircle const* rawhit = trtcirc->prepRawData();
192  if (!rawhit) continue;
193  Identifier const& ident = trtcirc->identify();
194  double rawtrailingedge = rawhit->trailingEdge() * 3.125;
195  double t0 = m_caldbtool->getT0(ident);
196  ATH_MSG_DEBUG("T0 : " << t0);
197  double timeresidual = rawtrailingedge - t0 + aT0;
198  ATH_MSG_DEBUG("timeresidual=" << timeresidual);
199  if (timeresidual < 2000) {
200  timeresidualsum += timeresidual;
201  ++ntrthits;
202  }
203  }
204  if (ntrthits > 1) return timeresidualsum / ntrthits + m_globalOffset;
205  return 0.;
206 }

◆ initialize()

StatusCode InDet::InDetSlidingWindowTrackTimeTool::initialize ( )
virtual

standard Athena-Algorithm method

Definition at line 46 of file InDetSlidingWindowTrackTimeTool.cxx.

46  {
47  ATH_CHECK( m_caldbtool.retrieve());
48  // Read key
50 
51  return StatusCode::SUCCESS;
52 }

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

◆ interfaceID()

const InterfaceID & InDet::IInDetCosmicsEventPhaseTool::interfaceID ( )
inlinestaticinherited

Definition at line 37 of file IInDetCosmicsEventPhaseTool.h.

38  {
39  return IID_IInDetCosmicsEventPhaseTool;
40  }

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

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

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

ToolHandle<ITRT_CalDbTool> InDet::InDetSlidingWindowTrackTimeTool::m_caldbtool
private

TRT Calibration DB tool.

Definition at line 63 of file InDetSlidingWindowTrackTimeTool.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_globalOffset

double InDet::InDetSlidingWindowTrackTimeTool::m_globalOffset
private

Definition at line 65 of file InDetSlidingWindowTrackTimeTool.h.

◆ m_nIterations

int InDet::InDetSlidingWindowTrackTimeTool::m_nIterations
private

Definition at line 67 of file InDetSlidingWindowTrackTimeTool.h.

◆ m_T0ReadKey

SG::ReadCondHandleKey<TRTCond::AverageT0> InDet::InDetSlidingWindowTrackTimeTool::m_T0ReadKey {this,"T0ReadKey","AverageT0","Average T0 in-key"}
private

Definition at line 64 of file InDetSlidingWindowTrackTimeTool.h.

◆ m_useNewEP

bool InDet::InDetSlidingWindowTrackTimeTool::m_useNewEP
private

Definition at line 66 of file InDetSlidingWindowTrackTimeTool.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.

◆ m_windowSize

double InDet::InDetSlidingWindowTrackTimeTool::m_windowSize
private

Definition at line 68 of file InDetSlidingWindowTrackTimeTool.h.


The documentation for this class was generated from the following files:
InDet::InDetSlidingWindowTrackTimeTool::m_nIterations
int m_nIterations
Definition: InDetSlidingWindowTrackTimeTool.h:67
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
TRTCond::AverageT0::get
double get() const
Definition: AverageT0.h:19
InDet::TRT_DriftCircleOnTrack::prepRawData
virtual const TRT_DriftCircle * prepRawData() const override final
returns the PrepRawData - is a TRT_DriftCircle in this scope
Definition: TRT_DriftCircleOnTrack.h:202
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
ALFA_EventTPCnv_Dict::t0
std::vector< ALFA_RawData_p1 > t0
Definition: ALFA_EventTPCnvDict.h:42
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
Trk::RIO_OnTrack
Definition: RIO_OnTrack.h:70
InDet::InDetSlidingWindowTrackTimeTool::m_caldbtool
ToolHandle< ITRT_CalDbTool > m_caldbtool
TRT Calibration DB tool.
Definition: InDetSlidingWindowTrackTimeTool.h:63
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
InDet::TRT_DriftCircleOnTrack
Definition: TRT_DriftCircleOnTrack.h:53
InDet::TRT_DriftCircle
Definition: TRT_DriftCircle.h:32
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
TRTCond::RtRelation
Definition: RtRelation.h:27
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
InDet::TRT_DriftCircle::isNoise
bool isNoise() const
returns true if the hit is caused by noise with a high probability.
lumiFormat.i
int i
Definition: lumiFormat.py:85
beamspotman.n
n
Definition: beamspotman.py:731
TRTCond::RtRelation::drifttime
virtual float drifttime(float radius) const =0
drifttime for given radius
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
InDet::InDetSlidingWindowTrackTimeTool::m_globalOffset
double m_globalOffset
Definition: InDetSlidingWindowTrackTimeTool.h:65
Trk::driftRadius
@ driftRadius
trt, straws
Definition: ParamDefs.h:53
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
Trk::ParametersBase
Definition: ParametersBase.h:55
InDet::TRT_DriftCircle::trailingEdge
int trailingEdge() const
returns the trailing edge bin
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
Trk::MeasurementBase
Definition: MeasurementBase.h:58
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
Trk::TrackStateOnSurface
represents the track state (measurement, material, fit parameters and quality) at a surface.
Definition: TrackStateOnSurface.h:71
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
InDet::TRT_DriftCircle::lastBinHigh
bool lastBinHigh() const
returns true if the last bin is high
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
TRT::Hit::ident
@ ident
Definition: HitInfo.h:77
InDet::InDetSlidingWindowTrackTimeTool::m_windowSize
double m_windowSize
Definition: InDetSlidingWindowTrackTimeTool.h:68
a
TList * a
Definition: liststreamerinfos.cxx:10
h
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
Trk::RIO_OnTrack::identify
Identifier identify() const
return the identifier -extends MeasurementBase
Definition: RIO_OnTrack.h:152
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
InDet::TRT_DriftCircle::driftTimeValid
bool driftTimeValid() const
return true if the corrected drift time is OK
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
InDet::TRT_DriftCircle::rawDriftTime
double rawDriftTime() const
returns the raw driftTime
TRTCond::AverageT0
Definition: AverageT0.h:10
InDet::InDetSlidingWindowTrackTimeTool::m_T0ReadKey
SG::ReadCondHandleKey< TRTCond::AverageT0 > m_T0ReadKey
Definition: InDetSlidingWindowTrackTimeTool.h:64
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
InDet::TRT_DriftCircle::firstBinHigh
bool firstBinHigh() const
returns true if the first bin is high
Trk::TrackStateOnSurface::Measurement
@ Measurement
This is a measurement, and will at least contain a Trk::MeasurementBase.
Definition: TrackStateOnSurface.h:101
InDet::InDetSlidingWindowTrackTimeTool::m_useNewEP
bool m_useNewEP
Definition: InDetSlidingWindowTrackTimeTool.h:66
fitman.k
k
Definition: fitman.py:528
NSWL1::PadTriggerAdapter::segment
Muon::NSW_PadTriggerSegment segment(const NSWL1::PadTrigger &data)
Definition: PadTriggerAdapter.cxx:5
Identifier
Definition: IdentifierFieldParser.cxx:14