ATLAS Offline Software
Classes | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
EMBremCollectionBuilder Class Reference

Algorithm which creates new brem-refitted tracks. More...

#include <EMBremCollectionBuilder.h>

Inheritance diagram for EMBremCollectionBuilder:
Collaboration diagram for EMBremCollectionBuilder:

Classes

struct  TrackWithIndex
 Helper struct to store the Trk::Track corresponding to a TrackParticle and the index of the Track Particle in the original container. More...
 

Public Member Functions

 EMBremCollectionBuilder (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual StatusCode initialize () override final
 
virtual StatusCode finalize () override final
 
virtual StatusCode execute (const EventContext &ctx) const override final
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
virtual bool filterPassed (const EventContext &ctx) const
 
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 
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 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
 

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

StatusCode refitTracks (const EventContext &ctx, const std::vector< const xAOD::TrackParticle * > &input, std::vector< TrackWithIndex > &refitted, std::vector< TrackWithIndex > &failedfit) const
 
StatusCode createCollections (const EventContext &ctx, std::vector< TrackWithIndex > &refitted, std::vector< TrackWithIndex > &failedfit, std::vector< TrackWithIndex > &trtAlone, TrackCollection *finalTracks, xAOD::TrackParticleContainer *finalTrkPartContainer, const xAOD::TrackParticleContainer *inputTrkPartContainer) const
 
StatusCode createNew (const EventContext &ctx, TrackWithIndex &Info, TrackCollection *finalTracks, xAOD::TrackParticleContainer *finalTrkPartContainer, const xAOD::TrackParticleContainer *inputTrkPartContainer, bool isRefitted) const
 
void copyOverInfo (xAOD::TrackParticle &created, const xAOD::TrackParticle &original, bool isRefitted) const
 
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

Gaudi::Property< bool > m_doTruth { this, "DoTruth", false, "do truth" }
 Option to do truth. More...
 
Gaudi::Property< bool > m_doSCT { this, "useSCT", true, "do SCT" }
 Option to copy SCT holes estimation. More...
 
Gaudi::Property< bool > m_doPix { this, "usePixel", true, "do Pix" }
 Option to copy pixel holes estimation. More...
 
Gaudi::Property< bool > m_doTRT { this, "useTRT", true, "do TRT" }
 Option to copy TRT holes estimation. More...
 
Gaudi::Property< bool > m_doSlimTrkTracks
 Option to slim the Trk::Tracks. More...
 
Gaudi::Property< bool > m_doHGTD { this, "useHGTD", false, "do HGTD" }
 Option to copy HGTD time to new gsf tracks. More...
 
Gaudi::Property< int > m_MinNoSiHits
 @Cut on minimum silicon hits More...
 
ToolHandle< IegammaTrkRefitterToolm_trkRefitTool
 The track refitter. More...
 
ToolHandle< Trk::ITrackParticleCreatorToolm_particleCreatorTool
 Tool to create track particle. More...
 
ToolHandle< Trk::ITrackSlimmingToolm_slimTool
 Tool to slim tracks
More...
 
SG::ReadHandleKey< xAOD::TrackParticleContainerm_trackParticleContainerKey
 
SG::ReadHandleKey< xAOD::TrackParticleContainerm_selectedTrackParticleContainerKey
 Names of input output collections. More...
 
SG::WriteHandleKey< xAOD::TrackParticleContainerm_OutputTrkPartContainerKey
 
SG::WriteHandleKey< TrackCollectionm_OutputTrackContainerKey
 
std::atomic_uint m_FailedFitTracks { 0 }
 
std::atomic_uint m_RefittedTracks { 0 }
 
std::atomic_uint m_FailedSiliconRequirFit { 0 }
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
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

Algorithm which creates new brem-refitted tracks.

Author
Christos Anastopoulos
Anthony Morley

Input containers:

Output continers:

Only tracks with a minimum number of Si-hits (minNoSiHits) are refitted. The refitted Trk::Tracks, and "copies" of the selected but not refitted Trk:;Tracks (i.e TRT alone), are saved in the output containers.

The GSF refitting can be done only when the full xAOD::Track is available (e.g. not in standard AOD). The refitting is delegated to a tool implementing the IegammaTrkRefitterTool interface, configured with the TrackRefitTool property (by default ElectronRefitterTool).

The final track particles are created from the Trk::Tracks (refitted or copied) with a tool implementing the Trk::ITrackParticleCreatorTool interface configured with the property TrackParticleCreatorTool (by default TrackParticleCreatorTool). During the above summary creation we prefer to avoid the so called hole-search so we copy over this information for Pixel, SCT, TRT according to the property usePixel, useSCT, useTRT.

Truth information is copied from the original xAOD::TrackParticle. The Trk::Tracks (refitted or copied) are saved after slimming with a tool implementing the Trk::ITrackSlimmingTool interface, configurable with the TrackSlimmingTool property (by default TrkTrackSlimmingTool).

Definition at line 70 of file EMBremCollectionBuilder.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ EMBremCollectionBuilder()

EMBremCollectionBuilder::EMBremCollectionBuilder ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 41 of file EMBremCollectionBuilder.cxx.

43  : AthReentrantAlgorithm(name, pSvcLocator)
44 {}

Member Function Documentation

◆ cardinality()

unsigned int AthReentrantAlgorithm::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Override this to return 0 for reentrant algorithms.

Definition at line 55 of file AthReentrantAlgorithm.cxx.

56 {
57  return 0;
58 }

◆ copyOverInfo()

void EMBremCollectionBuilder::copyOverInfo ( xAOD::TrackParticle created,
const xAOD::TrackParticle original,
bool  isRefitted 
) const
private

Definition at line 292 of file EMBremCollectionBuilder.cxx.

295 {
296  // Add Truth decorations. Copy from the original.
297  if (m_doTruth) {
298  static const SG::AuxElement::Accessor<
300  tPL("truthParticleLink");
301  if (tPL.isAvailable(original)) {
302  tPL(created) = tPL(original);
303  }
304  static const SG::AuxElement::Accessor<float> tMP("truthMatchProbability");
305  if (tMP.isAvailable(original)) {
306  tMP(created) = tMP(original);
307  }
308  static const SG::AuxElement::Accessor<int> tT("truthType");
309  if (tT.isAvailable(original)) {
310  tT(created) = tT(original);
311  }
312  static const SG::AuxElement::Accessor<int> tO("truthOrigin");
313  if (tO.isAvailable(original)) {
314  tO(created) = tO(original);
315  }
316  }
317 
318  copySummaryValue(original, created, xAOD::numberOfPixelSplitHits);
319  copySummaryValue(original, created, xAOD::numberOfInnermostPixelLayerSplitHits);
320  copySummaryValue(original, created, xAOD::numberOfNextToInnermostPixelLayerSplitHits);
321  copySummaryValue(original, created, xAOD::numberOfPixelSharedHits);
322  copySummaryValue(original, created, xAOD::numberOfInnermostPixelLayerSharedHits);
323  copySummaryValue(original, created, xAOD::numberOfNextToInnermostPixelLayerSharedHits);
324  copySummaryValue(original, created, xAOD::numberOfSCTSharedHits);
325  copySummaryValue(original, created, xAOD::numberOfTRTSharedHits);
326 
327  if (m_doHGTD) {
328  created.setHasValidTime(original.hasValidTime());
329  created.setTime(original.time());
330  }
331 
332  if (isRefitted) {
333  if (m_doPix) {
334  // copy over dead sensors
335  copySummaryValue(original, created, xAOD::numberOfPixelDeadSensors);
336 
337  // Figure the new number of holes
338  uint8_t nPixHolesRefitted =
343  + summaryValueInt(original, xAOD::numberOfPixelHoles, -1);
344 
345  created.setSummaryValue(nPixHolesRefitted, xAOD::numberOfPixelHoles);
346  }
347  if (m_doSCT) {
348  // Copy over dead and double holes
349  copySummaryValue(original, created, xAOD::numberOfSCTDeadSensors);
350  copySummaryValue(original, created, xAOD::numberOfSCTDoubleHoles);
351 
352  uint8_t nSCTHolesRefitted =
353  - summaryValueInt(created, xAOD::numberOfSCTHits, -1)
355  + summaryValueInt(original, xAOD::numberOfSCTHits, -1)
356  + summaryValueInt(original, xAOD::numberOfSCTHoles, -1)
358 
359  created.setSummaryValue(nSCTHolesRefitted, xAOD::numberOfSCTHoles);
360  }
361  if (m_doTRT) {
362  uint8_t nTRTHolesRefitted =
363  - summaryValueInt(created, xAOD::numberOfTRTHits, -1)
365  + summaryValueInt(original, xAOD::numberOfTRTHits, -1)
366  + summaryValueInt(original, xAOD::numberOfTRTHoles, -1)
368 
369  created.setSummaryValue(nTRTHolesRefitted, xAOD::numberOfTRTHoles);
370  }
371  }
372 }

◆ createCollections()

StatusCode EMBremCollectionBuilder::createCollections ( const EventContext &  ctx,
std::vector< TrackWithIndex > &  refitted,
std::vector< TrackWithIndex > &  failedfit,
std::vector< TrackWithIndex > &  trtAlone,
TrackCollection finalTracks,
xAOD::TrackParticleContainer finalTrkPartContainer,
const xAOD::TrackParticleContainer inputTrkPartContainer 
) const
private

Definition at line 192 of file EMBremCollectionBuilder.cxx.

200 {
201  // Now we can create the final ouput
202  // 1. Add the refitted
203  for (auto& trk : refitted) {
204  ATH_CHECK(createNew(ctx,
205  trk,
206  finalTracks,
207  finalTrkPartContainer,
208  inputTrkPartContainer,
209  true));
210  }
211  // 2. Add the failed fit
212  for (auto& trk : failedfit) {
213  ATH_CHECK(createNew(ctx,
214  trk,
215  finalTracks,
216  finalTrkPartContainer,
217  inputTrkPartContainer,
218  false));
219  }
220  // 3. Add the TRT alone
221  for (auto& trk : trtAlone) {
222  ATH_CHECK(createNew(ctx,
223  trk,
224  finalTracks,
225  finalTrkPartContainer,
226  inputTrkPartContainer,
227  false));
228  }
229  return StatusCode::SUCCESS;
230 }

◆ createNew()

StatusCode EMBremCollectionBuilder::createNew ( const EventContext &  ctx,
TrackWithIndex Info,
TrackCollection finalTracks,
xAOD::TrackParticleContainer finalTrkPartContainer,
const xAOD::TrackParticleContainer inputTrkPartContainer,
bool  isRefitted 
) const
private

Definition at line 233 of file EMBremCollectionBuilder.cxx.

240 {
241 
242  // Create new TrackParticle owned by finalTrkPartContainer
243  xAOD::TrackParticle* aParticle = m_particleCreatorTool->createParticle(
244  ctx, *(trk_info.track), finalTrkPartContainer, nullptr, xAOD::electron);
245 
246  if (!aParticle) {
248  "Could not create TrackParticle!!! for Track: " << *(trk_info.track));
249  return StatusCode::SUCCESS;
250  }
251  size_t origIndex = trk_info.origIndex;
252  const xAOD::TrackParticle* original = inputTrkPartContainer->at(origIndex);
253 
254  // Add an element link back to original Track Particle collection
255  static const SG::AuxElement::Accessor<
257  tP("originalTrackParticle");
259  *inputTrkPartContainer, origIndex, ctx);
260  tP(*aParticle) = linkToOriginal;
261  // Add qoverP from the last measurement
262  float QoverPLast(0);
263  auto rtsos = trk_info.track->trackStateOnSurfaces()->rbegin();
264  for (; rtsos != trk_info.track->trackStateOnSurfaces()->rend(); ++rtsos) {
265  if ((*rtsos)->type(Trk::TrackStateOnSurface::Measurement) &&
266  (*rtsos)->trackParameters() != nullptr &&
267  (*rtsos)->measurementOnTrack() != nullptr &&
268  !(*rtsos)->measurementOnTrack()->type(
270  QoverPLast = (*rtsos)->trackParameters()->parameters()[Trk::qOverP];
271  break;
272  }
273  }
274  static const SG::AuxElement::Accessor<float> QoverPLM("QoverPLM");
275  QoverPLM(*aParticle) = QoverPLast;
276 
277  copyOverInfo(*aParticle, *original, isRefitted);
278  // Slim the Trk::Track, store to the new
279  // Trk::Track collection and make the Track
280  // Particle point to it
281  if (m_doSlimTrkTracks) {
282  m_slimTool->slimTrack(*(trk_info.track));
283  }
284  finalTracks->push_back(std::move(trk_info.track));
286  *finalTracks, finalTracks->size() - 1, ctx);
287  aParticle->setTrackLink(trackLink);
288  return StatusCode::SUCCESS;
289 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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; }

◆ execute()

StatusCode EMBremCollectionBuilder::execute ( const EventContext &  ctx) const
finaloverridevirtual

Definition at line 81 of file EMBremCollectionBuilder.cxx.

82 {
83  // Read the inputs
84  // The input track particles
87  ATH_CHECK(trackTES.isValid());
88 
89  // The input selected track particles (subset of "all" input
90  // read above).
91  SG::ReadHandle<xAOD::TrackParticleContainer> selectedTrackParticles(
93  ATH_CHECK(selectedTrackParticles.isValid());
94 
95  // Create the final containers to be written out
96  // 1. Track particles
99  ATH_CHECK(finalTrkPartContainer.record(
100  std::make_unique<xAOD::TrackParticleContainer>(),
101  std::make_unique<xAOD::TrackParticleAuxContainer>()));
102  xAOD::TrackParticleContainer* cPtrTrkPart = finalTrkPartContainer.ptr();
103 
104  // 2. Trk::Tracks
106  ATH_CHECK(finalTracks.record(std::make_unique<TrackCollection>()));
107  TrackCollection* cPtrTracks = finalTracks.ptr();
108 
109  // Loop over the selected track-particles
110  // Split TRT-alone from silicon ones.
111  // For the TRT we can get all the info
112  // already since we are not going to refit.
113  std::vector<const xAOD::TrackParticle*> siliconTrkTracks;
114  siliconTrkTracks.reserve(16);
115  std::vector<TrackWithIndex> trtAloneTrkTracks;
116  trtAloneTrkTracks.reserve(8);
117 
118  for (const xAOD::TrackParticle* trackParticle : *selectedTrackParticles) {
119  ATH_CHECK(trackParticle->trackLink().isValid());
120  const Trk::Track* trktrack = trackParticle->track();
121  int nSiliconHits_trk = summaryValueInt(*trackParticle, xAOD::numberOfSCTHits, 0);
122  nSiliconHits_trk += summaryValueInt(*trackParticle, xAOD::numberOfPixelHits, 0);
123  if (nSiliconHits_trk >= m_MinNoSiHits) {
124  siliconTrkTracks.push_back(trackParticle);
125  } else {
126  // copy Trk::Track
127  trtAloneTrkTracks.emplace_back(std::make_unique<Trk::Track>(*trktrack),
128  trackParticle->index());
129  }
130  }
131 
132  // Store the results of the GSF refit
133  std::vector<TrackWithIndex> refitted; // refit success
134  refitted.reserve(siliconTrkTracks.size());
135  std::vector<TrackWithIndex> failedfit; // refit failure
136 
137  // Do the GSF refit. Note that the output is two collections
138  // (for fit success or failure) of TrackWithIndex.
139  // TrackWithIndex means a Trk::::Track
140  // and the index to the original TrackParticle Collection .
141  // Note that altough the input is a xAOD::TrackParticle
142  // what we really refit is the corresponding Trk::Track.
143  ATH_CHECK(refitTracks(ctx, siliconTrkTracks, refitted, failedfit));
144 
145  const size_t refittedCount = refitted.size();
146  const size_t failedCount = failedfit.size();
147  const size_t trtCount = trtAloneTrkTracks.size();
148  const size_t totalCount = refittedCount + failedCount + trtCount;
149 
150  // reserve as we know how many we will create
151  cPtrTracks->reserve(totalCount);
152  cPtrTrkPart->reserve(totalCount);
153  // Fill the final collections
155  refitted,
156  failedfit,
157  trtAloneTrkTracks,
158  cPtrTracks,
159  cPtrTrkPart,
160  trackTES.ptr()));
161 
162  // Update counters
163  m_RefittedTracks.fetch_add(refittedCount, std::memory_order_relaxed);
164  m_FailedFitTracks.fetch_add(failedCount, std::memory_order_relaxed);
165  m_FailedSiliconRequirFit.fetch_add(trtCount, std::memory_order_relaxed);
166  return StatusCode::SUCCESS;
167 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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

◆ extraOutputDeps()

const DataObjIDColl & AthReentrantAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 79 of file AthReentrantAlgorithm.cxx.

80 {
81  // If we didn't find any symlinks to add, just return the collection
82  // from the base class. Otherwise, return the extended collection.
83  if (!m_extendedExtraObjects.empty()) {
85  }
86  return Algorithm::extraOutputDeps();
87 }

◆ filterPassed()

virtual bool AthReentrantAlgorithm::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 135 of file AthReentrantAlgorithm.h.

135  {
136  return execState( ctx ).filterPassed();
137  }

◆ finalize()

virtual StatusCode EMBremCollectionBuilder::finalize ( )
finaloverridevirtual

◆ initialize()

StatusCode EMBremCollectionBuilder::initialize ( )
finaloverridevirtual

Definition at line 47 of file EMBremCollectionBuilder.cxx.

48 {
49 
54 
55  /* retrieve the track refitter tool*/
56  ATH_CHECK(m_trkRefitTool.retrieve());
57  /* Get the particle creation tool */
58  ATH_CHECK(m_particleCreatorTool.retrieve());
59  /* Get the track slimming tool if needed */
60  if (m_doSlimTrkTracks) {
61  ATH_CHECK(m_slimTool.retrieve());
62  } else {
63  m_slimTool.disable();
64  }
65 
66  return StatusCode::SUCCESS;
67 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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.

◆ isClonable()

bool AthReentrantAlgorithm::isClonable ( ) const
overridevirtualinherited

◆ msg() [1/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< Gaudi::Algorithm >::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< Gaudi::Algorithm >::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< Gaudi::Algorithm > >::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.

◆ refitTracks()

StatusCode EMBremCollectionBuilder::refitTracks ( const EventContext &  ctx,
const std::vector< const xAOD::TrackParticle * > &  input,
std::vector< TrackWithIndex > &  refitted,
std::vector< TrackWithIndex > &  failedfit 
) const
private

Definition at line 170 of file EMBremCollectionBuilder.cxx.

175 {
176  for (const xAOD::TrackParticle* in : input) {
177  const Trk::Track* track = in->track();
179  StatusCode status = m_trkRefitTool->refitTrack(ctx, track, cache);
180  if (status == StatusCode::SUCCESS) {
181  // this is new track
182  refitted.emplace_back(std::move(cache.refittedTrack), in->index());
183  } else {
184  // This is copy ctor
185  failedfit.emplace_back(std::make_unique<Trk::Track>(*track), in->index());
186  }
187  }
188  return StatusCode::SUCCESS;
189 }

◆ 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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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  }

◆ setFilterPassed()

virtual void AthReentrantAlgorithm::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 139 of file AthReentrantAlgorithm.h.

139  {
140  execState( ctx ).setFilterPassed( state );
141  }

◆ sysExecute()

StatusCode AthReentrantAlgorithm::sysExecute ( const EventContext &  ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 67 of file AthReentrantAlgorithm.cxx.

68 {
69  return Gaudi::Algorithm::sysExecute (ctx);
70 }

◆ sysInitialize()

StatusCode AthReentrantAlgorithm::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in InputMakerBase, and HypoBase.

Definition at line 96 of file AthReentrantAlgorithm.cxx.

96  {
98 
99  if (sc.isFailure()) {
100  return sc;
101  }
102 
103  ServiceHandle<ICondSvc> cs("CondSvc",name());
104  for (auto h : outputHandles()) {
105  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
106  // do this inside the loop so we don't create the CondSvc until needed
107  if ( cs.retrieve().isFailure() ) {
108  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
109  return StatusCode::SUCCESS;
110  }
111  if (cs->regHandle(this,*h).isFailure()) {
112  sc = StatusCode::FAILURE;
113  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
114  << " with CondSvc");
115  }
116  }
117  }
118  return sc;
119 }

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::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_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_doHGTD

Gaudi::Property<bool> EMBremCollectionBuilder::m_doHGTD { this, "useHGTD", false, "do HGTD" }
private

Option to copy HGTD time to new gsf tracks.

Definition at line 148 of file EMBremCollectionBuilder.h.

◆ m_doPix

Gaudi::Property<bool> EMBremCollectionBuilder::m_doPix { this, "usePixel", true, "do Pix" }
private

Option to copy pixel holes estimation.

Definition at line 136 of file EMBremCollectionBuilder.h.

◆ m_doSCT

Gaudi::Property<bool> EMBremCollectionBuilder::m_doSCT { this, "useSCT", true, "do SCT" }
private

Option to copy SCT holes estimation.

Definition at line 133 of file EMBremCollectionBuilder.h.

◆ m_doSlimTrkTracks

Gaudi::Property<bool> EMBremCollectionBuilder::m_doSlimTrkTracks
private
Initial value:
{ this,
"slimTrkTracks",
true,
"Slim the GSF Trk::Tracks" }

Option to slim the Trk::Tracks.

Definition at line 142 of file EMBremCollectionBuilder.h.

◆ m_doTRT

Gaudi::Property<bool> EMBremCollectionBuilder::m_doTRT { this, "useTRT", true, "do TRT" }
private

Option to copy TRT holes estimation.

Definition at line 139 of file EMBremCollectionBuilder.h.

◆ m_doTruth

Gaudi::Property<bool> EMBremCollectionBuilder::m_doTruth { this, "DoTruth", false, "do truth" }
private

Option to do truth.

Definition at line 130 of file EMBremCollectionBuilder.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthReentrantAlgorithm::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 153 of file AthReentrantAlgorithm.h.

◆ m_FailedFitTracks

std::atomic_uint EMBremCollectionBuilder::m_FailedFitTracks { 0 }
mutableprivate

Definition at line 206 of file EMBremCollectionBuilder.h.

◆ m_FailedSiliconRequirFit

std::atomic_uint EMBremCollectionBuilder::m_FailedSiliconRequirFit { 0 }
mutableprivate

Definition at line 208 of file EMBremCollectionBuilder.h.

◆ m_MinNoSiHits

Gaudi::Property<int> EMBremCollectionBuilder::m_MinNoSiHits
private
Initial value:
{ this,
"minNoSiHits",
4,
"Minimum number of silicon hits on track "
"before it is allowed to be refitted" }

@Cut on minimum silicon hits

Definition at line 151 of file EMBremCollectionBuilder.h.

◆ m_OutputTrackContainerKey

SG::WriteHandleKey<TrackCollection> EMBremCollectionBuilder::m_OutputTrackContainerKey
private
Initial value:
{
this,
"OutputTrackContainerName",
"GSFTracks",
"Output GSF Trk::Tracks"
}

Definition at line 198 of file EMBremCollectionBuilder.h.

◆ m_OutputTrkPartContainerKey

SG::WriteHandleKey<xAOD::TrackParticleContainer> EMBremCollectionBuilder::m_OutputTrkPartContainerKey
private
Initial value:
{
this,
"OutputTrkPartContainerName",
"GSFTrackParticles",
"Output GSF TrackParticles"
}

Definition at line 191 of file EMBremCollectionBuilder.h.

◆ m_particleCreatorTool

ToolHandle<Trk::ITrackParticleCreatorTool> EMBremCollectionBuilder::m_particleCreatorTool
private
Initial value:
{
this,
"TrackParticleCreatorTool",
"TrackParticleCreatorTool",
"TrackParticle creator tool"
}

Tool to create track particle.

Definition at line 164 of file EMBremCollectionBuilder.h.

◆ m_RefittedTracks

std::atomic_uint EMBremCollectionBuilder::m_RefittedTracks { 0 }
mutableprivate

Definition at line 207 of file EMBremCollectionBuilder.h.

◆ m_selectedTrackParticleContainerKey

SG::ReadHandleKey<xAOD::TrackParticleContainer> EMBremCollectionBuilder::m_selectedTrackParticleContainerKey
private
Initial value:
{ this,
"SelectedTrackParticleContainerName",
"egammaSelectedTrackParticles",
"Input of Selected TrackParticles" }

Names of input output collections.

Definition at line 186 of file EMBremCollectionBuilder.h.

◆ m_slimTool

ToolHandle<Trk::ITrackSlimmingTool> EMBremCollectionBuilder::m_slimTool
private
Initial value:
{ this,
"TrackSlimmingTool",
"TrkTrackSlimmingTool",
"Track slimming tool" }

Tool to slim tracks

Definition at line 172 of file EMBremCollectionBuilder.h.

◆ m_trackParticleContainerKey

SG::ReadHandleKey<xAOD::TrackParticleContainer> EMBremCollectionBuilder::m_trackParticleContainerKey
private
Initial value:
{
this,
"TrackParticleContainerName",
"InDetTrackParticles",
"Input InDet TrackParticles"
}

Definition at line 177 of file EMBremCollectionBuilder.h.

◆ m_trkRefitTool

ToolHandle<IegammaTrkRefitterTool> EMBremCollectionBuilder::m_trkRefitTool
private
Initial value:
{ this,
"TrackRefitTool",
"ElectronRefitterTool",
"Track refitter tool" }

The track refitter.

Definition at line 158 of file EMBremCollectionBuilder.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
DataVector::reserve
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
EMBremCollectionBuilder::createCollections
StatusCode createCollections(const EventContext &ctx, std::vector< TrackWithIndex > &refitted, std::vector< TrackWithIndex > &failedfit, std::vector< TrackWithIndex > &trtAlone, TrackCollection *finalTracks, xAOD::TrackParticleContainer *finalTrkPartContainer, const xAOD::TrackParticleContainer *inputTrkPartContainer) const
Definition: EMBremCollectionBuilder.cxx:192
EMBremCollectionBuilder::m_trackParticleContainerKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackParticleContainerKey
Definition: EMBremCollectionBuilder.h:177
xAOD::numberOfPixelHoles
@ numberOfPixelHoles
number of pixel layers on track with absence of hits [unit8_t].
Definition: TrackingPrimitives.h:261
xAOD::numberOfInnermostPixelLayerSplitHits
@ numberOfInnermostPixelLayerSplitHits
number of Pixel 0th layer barrel hits split by cluster splitting
Definition: TrackingPrimitives.h:240
EMBremCollectionBuilder::m_doSlimTrkTracks
Gaudi::Property< bool > m_doSlimTrkTracks
Option to slim the Trk::Tracks.
Definition: EMBremCollectionBuilder.h:142
EMBremCollectionBuilder::m_selectedTrackParticleContainerKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_selectedTrackParticleContainerKey
Names of input output collections.
Definition: EMBremCollectionBuilder.h:186
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
xAOD::numberOfSCTSharedHits
@ numberOfSCTSharedHits
number of SCT hits shared by several tracks [unit8_t].
Definition: TrackingPrimitives.h:272
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:575
xAOD::electron
@ electron
Definition: TrackingPrimitives.h:194
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:66
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
xAOD::numberOfNextToInnermostPixelLayerSplitHits
@ numberOfNextToInnermostPixelLayerSplitHits
number of Pixel 1st layer barrel hits split by cluster splitting
Definition: TrackingPrimitives.h:251
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
AthCommonDataStore::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 > renounce(T &h)
Definition: AthCommonDataStore.h:380
xAOD::TrackParticle_v1::setTrackLink
void setTrackLink(const ElementLink< TrackCollection > &track)
Set the link to the original track.
Definition: TrackParticle_v1.cxx:795
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
EMBremCollectionBuilder::m_trkRefitTool
ToolHandle< IegammaTrkRefitterTool > m_trkRefitTool
The track refitter.
Definition: EMBremCollectionBuilder.h:158
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
EMBremCollectionBuilder::m_MinNoSiHits
Gaudi::Property< int > m_MinNoSiHits
@Cut on minimum silicon hits
Definition: EMBremCollectionBuilder.h:151
xAOD::numberOfPixelHits
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
Definition: TrackingPrimitives.h:259
xAOD::numberOfTRTHits
@ numberOfTRTHits
number of TRT hits [unit8_t].
Definition: TrackingPrimitives.h:275
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
IegammaTrkRefitterTool::Cache
Struct Holding the result to return and intermediate objects Things are owned by the EDM or the uniqu...
Definition: IegammaTrkRefitterTool.h:39
EMBremCollectionBuilder::createNew
StatusCode createNew(const EventContext &ctx, TrackWithIndex &Info, TrackCollection *finalTracks, xAOD::TrackParticleContainer *finalTrkPartContainer, const xAOD::TrackParticleContainer *inputTrkPartContainer, bool isRefitted) const
Definition: EMBremCollectionBuilder.cxx:233
EMBremCollectionBuilder::m_OutputTrkPartContainerKey
SG::WriteHandleKey< xAOD::TrackParticleContainer > m_OutputTrkPartContainerKey
Definition: EMBremCollectionBuilder.h:191
xAOD::numberOfTRTSharedHits
@ numberOfTRTSharedHits
number of TRT hits used by more than one track
Definition: TrackingPrimitives.h:285
EMBremCollectionBuilder::m_doHGTD
Gaudi::Property< bool > m_doHGTD
Option to copy HGTD time to new gsf tracks.
Definition: EMBremCollectionBuilder.h:148
EMBremCollectionBuilder::m_doSCT
Gaudi::Property< bool > m_doSCT
Option to copy SCT holes estimation.
Definition: EMBremCollectionBuilder.h:133
xAOD::numberOfPixelSharedHits
@ numberOfPixelSharedHits
number of Pixel all-layer hits shared by several tracks [unit8_t].
Definition: TrackingPrimitives.h:262
EMBremCollectionBuilder::m_slimTool
ToolHandle< Trk::ITrackSlimmingTool > m_slimTool
Tool to slim tracks
Definition: EMBremCollectionBuilder.h:172
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EMBremCollectionBuilder::m_FailedSiliconRequirFit
std::atomic_uint m_FailedSiliconRequirFit
Definition: EMBremCollectionBuilder.h:208
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
EMBremCollectionBuilder::m_OutputTrackContainerKey
SG::WriteHandleKey< TrackCollection > m_OutputTrackContainerKey
Definition: EMBremCollectionBuilder.h:198
xAOD::numberOfPixelOutliers
@ numberOfPixelOutliers
these are the pixel outliers, including the b-layer [unit8_t].
Definition: TrackingPrimitives.h:260
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
xAOD::numberOfPixelSplitHits
@ numberOfPixelSplitHits
number of Pixel all-layer hits split by cluster splitting [unit8_t].
Definition: TrackingPrimitives.h:263
xAOD::numberOfSCTHoles
@ numberOfSCTHoles
number of SCT holes [unit8_t].
Definition: TrackingPrimitives.h:270
DataVector< xAOD::TrackParticle_v1 >
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
xAOD::EgammaHelpers::summaryValueInt
int summaryValueInt(const xAOD::TrackParticle &tp, const xAOD::SummaryType &info, int deflt=-999)
return the summary value for a TrackParticle or default value (-999) (to be used mostly in python whe...
Definition: EgammaxAODHelpers.cxx:161
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
EMBremCollectionBuilder::m_doTRT
Gaudi::Property< bool > m_doTRT
Option to copy TRT holes estimation.
Definition: EMBremCollectionBuilder.h:139
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
EMBremCollectionBuilder::m_RefittedTracks
std::atomic_uint m_RefittedTracks
Definition: EMBremCollectionBuilder.h:207
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
xAOD::TrackParticle_v1::hasValidTime
uint8_t hasValidTime() const
Returns whether or not the track has a valid time.
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
DataVector::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
EMBremCollectionBuilder::m_doTruth
Gaudi::Property< bool > m_doTruth
Option to do truth.
Definition: EMBremCollectionBuilder.h:130
xAOD::TrackParticle_v1::time
float time() const
Returns the time.
xAOD::numberOfTRTOutliers
@ numberOfTRTOutliers
number of TRT outliers [unit8_t].
Definition: TrackingPrimitives.h:276
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
xAOD::TrackParticle_v1::setSummaryValue
void setSummaryValue(uint8_t &value, const SummaryType &information)
Set method for TrackSummary values.
Definition: TrackParticle_v1.cxx:752
xAOD::TrackParticle_v1::setHasValidTime
void setHasValidTime(uint8_t hasValidTime)
a
TList * a
Definition: liststreamerinfos.cxx:10
h
xAOD::numberOfSCTOutliers
@ numberOfSCTOutliers
number of SCT outliers [unit8_t].
Definition: TrackingPrimitives.h:269
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
xAOD::numberOfSCTDeadSensors
@ numberOfSCTDeadSensors
number of dead SCT sensors crossed [unit8_t].
Definition: TrackingPrimitives.h:273
Trk::qOverP
@ qOverP
perigee
Definition: ParamDefs.h:73
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
xAOD::numberOfInnermostPixelLayerSharedHits
@ numberOfInnermostPixelLayerSharedHits
number of Pixel 0th layer barrel hits shared by several tracks.
Definition: TrackingPrimitives.h:239
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
xAOD::numberOfSCTHits
@ numberOfSCTHits
number of hits in SCT [unit8_t].
Definition: TrackingPrimitives.h:268
Trk::MeasurementBaseType::PseudoMeasurementOnTrack
@ PseudoMeasurementOnTrack
Definition: MeasurementBase.h:51
EMBremCollectionBuilder::m_FailedFitTracks
std::atomic_uint m_FailedFitTracks
Definition: EMBremCollectionBuilder.h:206
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
xAOD::TrackParticle_v1::setTime
void setTime(float time)
merge.status
status
Definition: merge.py:17
xAOD::numberOfPixelDeadSensors
@ numberOfPixelDeadSensors
number of dead pixel sensors crossed [unit8_t].
Definition: TrackingPrimitives.h:266
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
DataVector::at
const T * at(size_type n) const
Access an element, as an rvalue.
EMBremCollectionBuilder::refitTracks
StatusCode refitTracks(const EventContext &ctx, const std::vector< const xAOD::TrackParticle * > &input, std::vector< TrackWithIndex > &refitted, std::vector< TrackWithIndex > &failedfit) const
Definition: EMBremCollectionBuilder.cxx:170
xAOD::numberOfSCTDoubleHoles
@ numberOfSCTDoubleHoles
number of Holes in both sides of a SCT module [unit8_t].
Definition: TrackingPrimitives.h:271
xAOD::numberOfNextToInnermostPixelLayerSharedHits
@ numberOfNextToInnermostPixelLayerSharedHits
number of Pixel 1st layer barrel hits shared by several tracks.
Definition: TrackingPrimitives.h:250
EMBremCollectionBuilder::copyOverInfo
void copyOverInfo(xAOD::TrackParticle &created, const xAOD::TrackParticle &original, bool isRefitted) const
Definition: EMBremCollectionBuilder.cxx:292
xAOD::numberOfTRTHoles
@ numberOfTRTHoles
number of TRT holes [unit8_t].
Definition: TrackingPrimitives.h:277
EMBremCollectionBuilder::m_particleCreatorTool
ToolHandle< Trk::ITrackParticleCreatorTool > m_particleCreatorTool
Tool to create track particle.
Definition: EMBremCollectionBuilder.h:164
DataVector::size
size_type size() const noexcept
Returns the number of elements in the collection.
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
Trk::TrackStateOnSurface::Measurement
@ Measurement
This is a measurement, and will at least contain a Trk::MeasurementBase.
Definition: TrackStateOnSurface.h:101
fitman.k
k
Definition: fitman.py:528
EMBremCollectionBuilder::m_doPix
Gaudi::Property< bool > m_doPix
Option to copy pixel holes estimation.
Definition: EMBremCollectionBuilder.h:136
ServiceHandle< ICondSvc >