ATLAS Offline Software
Public Types | Public Member Functions | Static Public Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
xAOD::ElectronAuxContainer_v1 Class Referenceabstract

Temporary container used until we have I/O for AuxStoreInternal. More...

#include <ElectronAuxContainer_v1.h>

Inheritance diagram for xAOD::ElectronAuxContainer_v1:
Collaboration diagram for xAOD::ElectronAuxContainer_v1:

Public Types

typedef SG::auxid_t auxid_t
 The aux ID type definition. More...
 
typedef SG::auxid_set_t auxid_set_t
 The aux ID set type definition. More...
 
template<class T , class ALLOC = std::allocator<T>>
using AuxVariable_t = std::vector< T, ALLOC >
 Declare how to wrap variables for this sort of base. More...
 
template<class T , class ALLOC = std::allocator<T>>
using LinkedVariable_t = AuxVariable_t< T, ALLOC >
 
enum  AuxStoreType { AST_ObjectStore = 0, AST_ContainerStore = 1 }
 Type of the auxiliary store. More...
 

Public Member Functions

virtual const void * getData (SG::auxid_t auxid) const=0
 Pick up the const version from the base class. More...
 
virtual const IAuxTypeVector * linkedVector (SG::auxid_t) const
 Return interface for a linked variable. More...
 
virtual bool insertMove (size_t pos, IAuxStore &other, const SG::auxid_set_t &ignore=SG::auxid_set_t())=0
 Move all elements from other to this store. More...
 
template<typename T , typename ALLOC >
auxid_t getAuxID (const std::string &name, std::vector< T, ALLOC > &, SG::AuxVarFlags flags=SG::AuxVarFlags::None, const SG::auxid_t linkedVariable=SG::null_auxid)
 Get the auxiliary ID for one of the persistent variables. More...
 
template<typename T >
auxid_t getAuxID (const std::string &name, SG::PackedContainer< T > &, SG::AuxVarFlags flags=SG::AuxVarFlags::None, const SG::auxid_t linkedVariable=SG::null_auxid)
 Get the auxiliary ID for one of the persistent variables. More...
 
template<typename T , typename ALLOC >
void regAuxVar (auxid_t auxid, const std::string &name, std::vector< T, ALLOC > &vec)
 Register one of the persistent variables internally. More...
 
template<typename T >
void regAuxVar (auxid_t auxid, const std::string &name, SG::PackedContainer< T > &vec)
 Register one of the persistent variables internally. More...
 
xAOD::ElectronAuxContainer constructors
 ElectronAuxContainer_v1 ()
 

Static Public Attributes

static constexpr bool supportsThinning = true
 Mark that this type supports thinning operations. More...
 

Private Types

typedef AthContainers_detail::mutex mutex_t
 Mutex for multithread synchronization. More...
 
typedef AthContainers_detail::lock_guard< mutex_tguard_t
 

Private Member Functions

template<typename ELT , typename CONT >
void regAuxVar1 (auxid_t auxid, const std::string &name, CONT &vec)
 Common code between regAuxVar cases. More...
 

Private Attributes

auxid_set_t m_auxids
 Internal list of all available variables. More...
 
std::vector< SG::IAuxTypeVector * > m_vecs
 Internal list of all managed variables. More...
 
SG::IAuxStorem_store
 Internal dynamic auxiliary store object. More...
 
SG::IAuxStoreIOm_storeIO
 The IO interface to the internal auxiliary store. More...
 
bool m_ownsStore
 Flag deciding if the object owns the dynamic store or not. More...
 
bool m_locked
 Has the container been locked? More...
 
mutex_t m_mutex
 
std::string m_name
 Name of the container in memory. Set externally. More...
 
CxxUtils::CachedPointer< std::pmr::memory_resource > m_memResource ATLAS_THREAD_SAFE
 Memory resource to use for this container. More...
 
vector of links to trackParticles
std::vector< std::vector< ElementLink< TrackParticleContainer > > > trackParticleLinks
 
Electron Charge
std::vector< floatcharge
 
Track Match details
std::vector< floatdeltaEta0
 difference between the cluster eta (presampler) and the eta of the track extrapolated to the presampler
More...
 
std::vector< floatdeltaEta1
 difference between the cluster eta (first sampling) and the eta of the track extrapolated to the first sampling: |eta_stripscluster -eta_ID|, where eta_stripscluster is computed in the first sampling of the electromagnetic calorimeter, where the granularity is very fine, and eta_ID is the pseudo-rapidity of the track extrapolated to the calorimeter
More...
 
std::vector< floatdeltaEta2
 difference between the cluster eta (second sampling) and the eta of the track extrapolated to the second sampling More...
 
std::vector< floatdeltaEta3
 difference between the cluster eta (3rd sampling) and the eta of the track extrapolated to the 3rd sampling
More...
 
std::vector< floatdeltaPhi0
 difference between the cluster phi (presampler) and the eta of the track extrapolated to the presampler
More...
 
std::vector< floatdeltaPhi1
 difference between the cluster eta (1st sampling) and the eta of the track extrapolated to the 1st sampling (strips)
More...
 
std::vector< floatdeltaPhi2
 difference between the cluster phi (second sampling) and the phi of the track extrapolated to the second sampling : |phi_middlecluster -phi_ID|, where phi_middlecluster is computed in the second compartment of the electromagnetic calorimeter and phi_ID is the azimuth of the track extrapolated to the calorimeter
More...
 
std::vector< floatdeltaPhi3
 difference between the cluster eta (3rd sampling) and the eta of the track extrapolated to the 3rd sampling
More...
 
std::vector< floatdeltaPhiFromLastMeasurement
 difference between the cluster phi (sampling 2) and the eta of the track extrapolated from the last measurement point. More...
 
std::vector< floatdeltaPhiRescaled0
 difference between the cluster phi (presampler) and the eta of the track extrapolated to the presampler from the perigee with a rescaled momentum. More...
 
std::vector< floatdeltaPhiRescaled1
 difference between the cluster eta (1st sampling) and the eta of the track extrapolated to the 1st sampling (strips) from the perigee with a rescaled momentum. More...
 
std::vector< floatdeltaPhiRescaled2
 difference between the cluster phi (second sampling) and the phi of the track extrapolated to the second sampling from the perigee with a rescaled momentum. More...
 
std::vector< floatdeltaPhiRescaled3
 difference between the cluster eta (3rd sampling) and the eta of the track extrapolated to the 3rd sampling from the perigee with a rescaled momentum. More...
 

Detailed Description

Temporary container used until we have I/O for AuxStoreInternal.

This class is meant to serve as a temporary way to provide an auxiliary store with Athena I/O capabilities for the electron EDM. Will be exchanged for a generic auxiliary container type (AuxStoreInternal) later on.

Author
Christos Anastopoulos
Anthony Morley
Revision
614829
Date
2014-09-03 11:39:36 +0200 (Wed, 03 Sep 2014)

Definition at line 34 of file ElectronAuxContainer_v1.h.

Member Typedef Documentation

◆ auxid_set_t

The aux ID set type definition.

Definition at line 65 of file AuxContainerBase.h.

◆ auxid_t

The aux ID type definition.

Definition at line 63 of file AuxContainerBase.h.

◆ AuxVariable_t

template<class T , class ALLOC = std::allocator<T>>
using xAOD::AuxContainerBase::AuxVariable_t = std::vector<T, ALLOC>
inherited

Declare how to wrap variables for this sort of base.

Definition at line 195 of file AuxContainerBase.h.

◆ guard_t

typedef AthContainers_detail::lock_guard< mutex_t > xAOD::AuxContainerBase::guard_t
privateinherited

Definition at line 247 of file AuxContainerBase.h.

◆ LinkedVariable_t

template<class T , class ALLOC = std::allocator<T>>
using xAOD::AuxContainerBase::LinkedVariable_t = AuxVariable_t<T, ALLOC>
inherited

Definition at line 197 of file AuxContainerBase.h.

◆ mutex_t

typedef AthContainers_detail::mutex xAOD::AuxContainerBase::mutex_t
privateinherited

Mutex for multithread synchronization.

Definition at line 246 of file AuxContainerBase.h.

Member Enumeration Documentation

◆ AuxStoreType

Type of the auxiliary store.

In the xAOD EDM we use auxiliary store objects in some cases to describe a single object, and in most cases to describe a container of objects. This enumeration declares which type the object implementing this interface is.

Enumerator
AST_ObjectStore 

The store describes a single object.

AST_ContainerStore 

The store describes a container.

Definition at line 66 of file IAuxStoreHolder.h.

66  {
67  AST_ObjectStore = 0,
69  };

Constructor & Destructor Documentation

◆ ElectronAuxContainer_v1()

xAOD::ElectronAuxContainer_v1::ElectronAuxContainer_v1 ( )

Member Function Documentation

◆ clearDecorations()

bool xAOD::AuxContainerBase::clearDecorations ( )
overridevirtualinherited

Clear all decorations.

Implements SG::IConstAuxStore.

Definition at line 357 of file AuxContainerBase.cxx.

357  {
358 
359  // Guard against multi-threaded execution:
360  guard_t guard( m_mutex );
361 
362  // Clear the decorations from the dynamic store:
363  bool anycleared = false;
364  if( m_store ) {
365  anycleared = m_store->clearDecorations();
366  }
367  // Early exit if there were no decorations.
368  if (!anycleared) return false;
369 
370  // Construct the list of managed auxiliary variables from scratch after
371  // the cleanup:
373  for( auxid_t auxid = 0; auxid < m_vecs.size(); ++auxid ) {
374  if( m_vecs[ auxid ] ) {
375  ids.insert( auxid );
376  }
377  }
378  if( m_store ) {
379  ids.insert (m_store->getAuxIDs());
380  }
381  m_auxids = ids;
382 
383  return true;
384  }

◆ getAuxID() [1/2]

template<typename T >
auxid_t xAOD::AuxContainerBase::getAuxID ( const std::string &  name,
SG::PackedContainer< T > &  ,
SG::AuxVarFlags  flags = SG::AuxVarFlags::None,
const SG::auxid_t  linkedVariable = SG::null_auxid 
)
inherited

Get the auxiliary ID for one of the persistent variables.

◆ getAuxID() [2/2]

template<typename T , typename ALLOC >
auxid_t xAOD::AuxContainerBase::getAuxID ( const std::string &  name,
std::vector< T, ALLOC > &  ,
SG::AuxVarFlags  flags = SG::AuxVarFlags::None,
const SG::auxid_t  linkedVariable = SG::null_auxid 
)
inherited

Get the auxiliary ID for one of the persistent variables.

◆ getAuxIDs()

const AuxContainerBase::auxid_set_t & xAOD::AuxContainerBase::getAuxIDs ( ) const
overridevirtualinherited

Get the types(names) of variables handled by this container.

Implements SG::IConstAuxStore.

Definition at line 275 of file AuxContainerBase.cxx.

275  {
276 
277  // Return the full list of IDs:
278  return getWritableAuxIDs();
279  }

◆ getData() [1/3]

const void * xAOD::AuxContainerBase::getData ( auxid_t  auxid) const
overridevirtualinherited

Get a pointer to a given array.

Implements SG::IConstAuxStore.

Definition at line 230 of file AuxContainerBase.cxx.

230  {
231 
232  const SG::IAuxTypeVector* v = getVector( auxid );
233  if( v ) {
234  return v->toPtr();
235  }
236  return nullptr;
237  }

◆ getData() [2/3]

void * xAOD::AuxContainerBase::getData ( auxid_t  auxid,
size_t  size,
size_t  capacity 
)
overridevirtualinherited

Get a pointer to a given array, creating the array if necessary.

Implements SG::IAuxStore.

Definition at line 462 of file AuxContainerBase.cxx.

463  {
464 
465  // Guard against multi-threaded execution:
466  guard_t guard( m_mutex );
467 
468  if( ( auxid >= m_vecs.size() ) || ( ! m_vecs[ auxid ] ) ) {
469 
470  if( m_store ) {
471  void* result = m_store->getData( auxid, size, capacity );
472  if( result ) {
473  m_auxids.insert( auxid );
475  auxid_t linked_id = r.linkedVariable( auxid );
476  if (linked_id != SG::null_auxid) {
477  m_auxids.insert( linked_id );
478  }
479  }
480  return result;
481  } else {
482  std::cout << "ERROR xAOD::AuxContainerBase::getData "
483  << "Unknown variable ("
485  << ") requested" << std::endl;
486  return nullptr;
487  }
488  }
489  m_vecs[ auxid ]->reserve( capacity );
490  if (m_vecs[ auxid ]->size() < size) {
491  m_vecs[ auxid ]->resize( size );
492  }
493 
494  return m_vecs[ auxid ]->toPtr();
495  }

◆ getData() [3/3]

virtual const void* SG::IConstAuxStore::getData
inherited

Pick up the const version from the base class.

◆ getDecoration()

void * xAOD::AuxContainerBase::getDecoration ( auxid_t  auxid,
size_t  size,
size_t  capacity 
)
overridevirtualinherited

Get a pointer to a given array, as a decoration.

Implements SG::IConstAuxStore.

Reimplemented in xAOD::EventInfoAuxContainer_v1.

Definition at line 300 of file AuxContainerBase.cxx.

301  {
302  {
303  // Guard against multi-threaded execution:
304  guard_t guard( m_mutex );
305 
306  // Check if we have it as a static variable:
307  if( ( auxid >= m_vecs.size() ) || ( ! m_vecs[ auxid ] ) ) {
308  // If not, but we have a dynamic store, push it in there:
309  if( m_store ) {
310  void* result = m_store->getDecoration( auxid, size, capacity );
311  if( result ) {
312  m_auxids.insert( auxid );
314  auxid_t linked_id = r.linkedVariable( auxid );
315  if (linked_id != SG::null_auxid) {
316  m_auxids.insert( linked_id );
317  }
318  }
319  return result;
320  }
321  // If we don't have a dynamic store, complain:
322  else {
323  std::cout << "ERROR xAOD::AuxContainerBase::getDecoration "
324  << "Can't provide variable "
326  << std::endl;
327  return nullptr;
328  }
329  }
330 
331  // If the container is locked, static variables can't be accessed this
332  // way:
333  if( m_locked ) {
334  throw SG::ExcStoreLocked( auxid );
335  }
336  }
337 
338  // If the container is not locked, then fall back on the normal accessor
339  // function:
340  return getData( auxid, size, capacity );
341  }

◆ getDecorIDs()

const AuxContainerBase::auxid_set_t & xAOD::AuxContainerBase::getDecorIDs ( ) const
overridevirtualinherited

Get the types(names) of decorations handled by this container.

Implements SG::IConstAuxStore.

Definition at line 282 of file AuxContainerBase.cxx.

282  {
283 
284  if( m_store ) {
285  return m_store->getDecorIDs();
286  }
287  static const auxid_set_t empty;
288  return empty;
289  }

◆ getDynamicAuxIDs()

const AuxContainerBase::auxid_set_t & xAOD::AuxContainerBase::getDynamicAuxIDs ( ) const
overridevirtualinherited

Get the types(names) of variables created dynamically.

Implements SG::IAuxStoreIO.

Definition at line 701 of file AuxContainerBase.cxx.

701  {
702 
703  // Guard against multi-threaded execution:
704  guard_t guard( m_mutex );
705 
706  // All the variables handled by the internal store are dynamic
707  // if such a store exists:
708  if( m_storeIO ) {
709  // I mean, all the variables. Not just the ones reported as dynamic
710  // by the internal object. Because the internal object may be something
711  // that was put into this one in order to achieve data slimming.
712  return m_store->getAuxIDs();
713  }
714  // In case we don't use an internal store, there are no dynamic
715  // variables:
716  static const auxid_set_t dummy (0);
717  return dummy;
718  }

◆ getIOData()

const void * xAOD::AuxContainerBase::getIOData ( auxid_t  auxid) const
overridevirtualinherited

Get a pointer to the data being stored for one aux data item.

Implements SG::IAuxStoreIO.

Definition at line 659 of file AuxContainerBase.cxx.

659  {
660 
661  // Guard against multi-threaded execution:
662  guard_t guard( m_mutex );
663 
664  // If the variable is not static, look for it in the dynamic store:
665  if( ( auxid >= m_vecs.size() ) || ( ! m_vecs[ auxid ] ) ) {
666  if( m_storeIO ) {
667  return m_storeIO->getIOData( auxid );
668  } else {
669  std::cout << "ERROR xAOD::AuxContainerBase::getIOData "
670  << "Unknown variable ("
672  << ") requested" << std::endl;
673  return nullptr;
674  }
675  }
676 
677  // Update the statistics for this variable. The dynamic store registers
678  // its own variable accesses.
680 
681  return m_vecs[ auxid ]->toVector();
682  }

◆ getIOType()

const std::type_info * xAOD::AuxContainerBase::getIOType ( auxid_t  auxid) const
overridevirtualinherited

Return the type of the data to be stored for one aux data item.

Implements SG::IAuxStoreIO.

Definition at line 684 of file AuxContainerBase.cxx.

684  {
685 
686  // Guard against multi-threaded execution:
687  guard_t guard( m_mutex );
688 
689  // If the variable is not static, ask the dynamic store:
690  if( ( auxid >= m_vecs.size() ) || ( ! m_vecs[ auxid ] ) ) {
691  if( m_storeIO ) {
692  return m_storeIO->getIOType( auxid );
693  }
694  }
695 
696  // Fall back on getting the information from the registry:
697  return SG::AuxTypeRegistry::instance().getVecType( auxid );
698  }

◆ getSelectedAuxIDs()

AuxContainerBase::auxid_set_t xAOD::AuxContainerBase::getSelectedAuxIDs ( ) const
overridevirtualinherited

Get the IDs of the selected dynamic Aux variables (for writing)

Reimplemented from SG::IAuxStoreIO.

Definition at line 721 of file AuxContainerBase.cxx.

721  {
722 
723  // Guard against multi-threaded execution:
724  guard_t guard( m_mutex );
725 
726  // All the variables handled by the internal store are dynamic
727  // if such a store exists:
728  if( m_storeIO ) {
729  // I mean, all the variables. Not just the ones reported as dynamic
730  // by the internal object. Because the internal object may be something
731  // that was put into this one in order to achieve data slimming.
732  return m_store->getAuxIDs();
733  }
734 
735  // In case we don't use an internal store, there are no dynamic
736  // variables:
737  return auxid_set_t();
738  }

◆ getStore() [1/2]

const SG::IAuxStore * xAOD::AuxContainerBase::getStore ( ) const
overridevirtualinherited

Implements SG::IAuxStoreHolder.

Definition at line 181 of file AuxContainerBase.cxx.

182  {
183  return m_store;
184  }

◆ getStore() [2/2]

SG::IAuxStore * xAOD::AuxContainerBase::getStore ( )
overridevirtualinherited

Get the currently used internal store object.

Implements SG::IAuxStoreHolder.

Definition at line 154 of file AuxContainerBase.cxx.

155  {
156  return m_store;
157  }

◆ getStoreType()

virtual AuxStoreType xAOD::AuxContainerBase::getStoreType ( ) const
inlineoverridevirtualinherited

Return the type of the store object.

Implements SG::IAuxStoreHolder.

Definition at line 92 of file AuxContainerBase.h.

92 { return AST_ContainerStore; }

◆ getVector()

const SG::IAuxTypeVector * xAOD::AuxContainerBase::getVector ( SG::auxid_t  auxid) const
finaloverridevirtualinherited

Return vector interface for one aux data item.

Implements SG::IConstAuxStore.

Definition at line 239 of file AuxContainerBase.cxx.

239  {
240 
241  // Guard against multi-threaded execution:
242  guard_t guard( m_mutex );
243 
244  if( ( auxid >= m_vecs.size() ) || ( ! m_vecs[ auxid ] ) ) {
245  if( m_store ) {
246  const SG::IAuxTypeVector* result = m_store->getVector( auxid );
247  if( result ) {
248  auxid_set_t& auxids_nc ATLAS_THREAD_SAFE =
249  const_cast<auxid_set_t&> (m_auxids);
250  auxids_nc.insert( auxid );
252  auxid_t linked_id = r.linkedVariable( auxid );
253  if (linked_id != SG::null_auxid) {
254  auxids_nc.insert( linked_id );
255  }
256  }
257  return result;
258  } else {
259  std::cout << "ERROR xAOD::AuxContainerBase::getData "
260  << "Unknown variable ("
262  << ") requested" << std::endl;
263  return nullptr;
264  }
265  }
266 
267  // Update the statistics for this variable. The dynamic store registers
268  // its own variable accesses.
270 
271  return m_vecs[ auxid ];
272  }

◆ getWritableAuxIDs()

const AuxContainerBase::auxid_set_t & xAOD::AuxContainerBase::getWritableAuxIDs ( ) const
overridevirtualinherited

Return a set of writable data identifiers.

Implements SG::IAuxStore.

Definition at line 498 of file AuxContainerBase.cxx.

498  {
499 
500  // Return the full list of known IDs. The constness of this object's
501  // members comes from the object being const or not.
502  return m_auxids;
503  }

◆ insertMove() [1/2]

bool xAOD::AuxContainerBase::insertMove ( size_t  pos,
IAuxStore &  other,
const SG::auxid_set_t ignore 
)
overridevirtualinherited

Insert contents of another store via move.

Definition at line 584 of file AuxContainerBase.cxx.

586  {
587  // Guard against multi-threaded execution:
588  guard_t guard( m_mutex );
589 
590  // This operation is not allowed on a locked container:
591  if( m_locked ) {
592  throw SG::ExcStoreLocked( "insertMove" );
593  }
594 
595  bool nomove = true;
596  size_t other_size = other.size();
597 
598  SG::auxid_set_t ignore = ignore_in;
599 
600  // Do the operation on the static variables:
601  for (SG::auxid_t id : m_auxids) {
602  SG::IAuxTypeVector* v_dst = nullptr;
603  if (id < m_vecs.size())
604  v_dst = m_vecs[id];
605  // Skip linked vars --- they should be taken care of by the parent var.
606  if (v_dst && !v_dst->isLinked()) {
607  ignore.insert (id);
608  if (other.getData (id)) {
609  void* src_ptr = other.getData (id, other_size, other_size);
610  if (src_ptr) {
611  if (!v_dst->insertMove (pos, src_ptr, 0, other_size,
612  other))
613  nomove = false;
614  }
615  }
616  else {
617  const void* orig = v_dst->toPtr();
618  v_dst->shift (pos, other_size);
619  if (orig != v_dst->toPtr())
620  nomove = false;
621  }
622  }
623  }
624 
625  // Do the operation on the dynamic variables:
626  if( m_store ) {
627  if (!m_store->insertMove( pos, other, ignore ))
628  nomove = false;
629 
630  // Notice any new variables added as a result of this.
632  }
633 
634  return nomove;
635  }

◆ insertMove() [2/2]

virtual bool SG::IAuxStore::insertMove ( size_t  pos,
IAuxStore other,
const SG::auxid_set_t ignore = SG::auxid_set_t() 
)
pure virtualinherited

Move all elements from other to this store.

Parameters
posThe starting index of the insertion.
otherStore from which to do the move.
ignoreSet of variables that should not be added to the store.

Let len be the size of other. The store will be increased in size by len elements, with the elements at pos being copied to pos+len. Then, for each auxiliary variable, the entire contents of that variable for other will be moved to this store at index pos. This will be done via move semantics if possible; otherwise, it will be done with a copy. Variables present in this store but not in other will have the corresponding elements default-initialized. Variables in other but not in this store will be added unless they are in ignore.

Returns true if it is known that none of the vectors' memory moved, false otherwise.

Implemented in SG::AuxStoreInternal.

◆ isDecoration()

bool xAOD::AuxContainerBase::isDecoration ( auxid_t  auxid) const
overridevirtualinherited

Test if a variable is a decoration.

Implements SG::IConstAuxStore.

Reimplemented in xAOD::EventInfoAuxContainer_v1.

Definition at line 291 of file AuxContainerBase.cxx.

292  {
293  guard_t guard( m_mutex );
294  if (m_store) {
295  return m_store->isDecoration (auxid);
296  }
297  return false;
298  }

◆ linkedVector() [1/3]

const SG::IAuxTypeVector * xAOD::AuxContainerBase::linkedVector ( SG::auxid_t  auxid) const
overridevirtualinherited

Return interface for a linked variable.

Reimplemented from SG::IConstAuxStore.

Definition at line 396 of file AuxContainerBase.cxx.

397  {
399  auxid_t linked_id = r.linkedVariable( auxid );
400  if (linked_id != SG::null_auxid) {
401  guard_t guard( m_mutex );
402  if (linked_id < m_vecs.size() && m_vecs[ linked_id ]) {
403  return m_vecs[ linked_id ];
404  }
405  if (m_store) {
406  return CxxUtils::as_const_ptr(m_store)->linkedVector( auxid );
407  }
408  }
409  return nullptr;
410  }

◆ linkedVector() [2/3]

SG::IAuxTypeVector * xAOD::AuxContainerBase::linkedVector ( SG::auxid_t  auxid)
overridevirtualinherited

Return interface for a linked variable.

Reimplemented from SG::IAuxStore.

Definition at line 413 of file AuxContainerBase.cxx.

414  {
416  auxid_t linked_id = r.linkedVariable( auxid );
417  if (linked_id != SG::null_auxid) {
418  guard_t guard( m_mutex );
419  if (linked_id < m_vecs.size() && m_vecs[ linked_id ]) {
420  return m_vecs[ linked_id ];
421  }
422  if (m_store) {
423  return m_store->linkedVector( auxid );
424  }
425  }
426  return nullptr;
427  }

◆ linkedVector() [3/3]

virtual const IAuxTypeVector* SG::IConstAuxStore::linkedVector
inlineinherited

Return interface for a linked variable.

Parameters
auxidThe ID of the parent variable.

If auxid has a linked variable, then return the IAuxTypeVector describing it. Otherwise, return nullptr. May return nullptr unconditionally if this store does not support linked variables.

Definition at line 189 of file IConstAuxStore.h.

190  { return nullptr; }

◆ lock()

void xAOD::AuxContainerBase::lock ( )
overridevirtualinherited

Lock the container.

Implements ILockable.

Definition at line 343 of file AuxContainerBase.cxx.

343  {
344 
345  // Guard against multi-threaded execution:
346  guard_t guard( m_mutex );
347 
348  // Lock the object and its dynamic store:
349  m_locked = true;
350  if( m_store ) {
351  m_store->lock();
352  }
353 
354  return;
355  }

◆ lockDecoration()

void xAOD::AuxContainerBase::lockDecoration ( SG::auxid_t  auxid)
overridevirtualinherited

Lock a decoration.

Implements SG::IConstAuxStore.

Reimplemented in xAOD::EventInfoAuxContainer_v1.

Definition at line 387 of file AuxContainerBase.cxx.

388  {
389  guard_t guard (m_mutex);
390  if (m_store) {
391  m_store->lockDecoration (auxid);
392  }
393  }

◆ memResource()

std::pmr::memory_resource * xAOD::AuxContainerBase::memResource ( )
inherited

Return the memory resource to use.

Definition at line 159 of file AuxContainerBase.cxx.

160  {
161  const std::pmr::memory_resource* cptr = m_memResource.get();
162  std::pmr::memory_resource* ptr ATLAS_THREAD_SAFE = const_cast<std::pmr::memory_resource*>( cptr );
163  if( !ptr ) {
164 #ifndef XAOD_STANDALONE
165  const EventContext& ctx = Gaudi::Hive::currentContext();
166  if( Atlas::hasExtendedEventContext( ctx ) ) {
167  ptr = Atlas::getExtendedEventContext( ctx ).memResource();
168  }
169  if( !ptr )
170 #endif
171  {
172  ptr = std::pmr::get_default_resource();
173  }
174  if( ptr ) {
175  m_memResource.set( ptr );
176  }
177  }
178  return ptr;
179  }

◆ name()

const char * xAOD::AuxContainerBase::name ( ) const
inherited

Get the name of the container instance.

Definition at line 743 of file AuxContainerBase.cxx.

743  {
744 
745  return m_name.c_str();
746  }

◆ regAuxVar() [1/2]

template<typename T >
void xAOD::AuxContainerBase::regAuxVar ( auxid_t  auxid,
const std::string &  name,
SG::PackedContainer< T > &  vec 
)
inherited

Register one of the persistent variables internally.

◆ regAuxVar() [2/2]

template<typename T , typename ALLOC >
void xAOD::AuxContainerBase::regAuxVar ( auxid_t  auxid,
const std::string &  name,
std::vector< T, ALLOC > &  vec 
)
inherited

Register one of the persistent variables internally.

◆ regAuxVar1()

template<typename ELT , typename CONT >
void xAOD::AuxContainerBase::regAuxVar1 ( auxid_t  auxid,
const std::string &  name,
CONT &  vec 
)
privateinherited

Common code between regAuxVar cases.

◆ reserve()

void xAOD::AuxContainerBase::reserve ( size_t  size)
overridevirtualinherited

Reserve a given size for the arrays.

Implements SG::IAuxStore.

Definition at line 533 of file AuxContainerBase.cxx.

533  {
534 
535  // Guard against multi-threaded execution:
536  guard_t guard( m_mutex );
537 
538  // This operation is not allowed on a locked container:
539  if( m_locked ) {
540  throw SG::ExcStoreLocked( "reserve" );
541  }
542 
543  // Do the operation on the static variables:
544  for (SG::IAuxTypeVector* v : m_vecs) {
545  if(v && !v->isLinked()) {
546  v->reserve( size );
547  }
548  }
549 
550  // Do the operation on the dynamic variables:
551  if( m_store ) {
552  m_store->reserve( size );
553  }
554 
555  return;
556  }

◆ resize()

bool xAOD::AuxContainerBase::resize ( size_t  size)
overridevirtualinherited

Resize the arrays to a given size.

Implements SG::IAuxStore.

Definition at line 505 of file AuxContainerBase.cxx.

505  {
506 
507  // Guard against multi-threaded execution:
508  guard_t guard( m_mutex );
509 
510  // This operation is not allowed on a locked container:
511  if( m_locked ) {
512  throw SG::ExcStoreLocked( "resize" );
513  }
514 
515  // Do the operation on the static variables:
516  bool nomoves = true;
517  for (SG::IAuxTypeVector* v : m_vecs) {
518  if(v && !v->isLinked()) {
519  if (!v->resize( size ))
520  nomoves = false;
521  }
522  }
523 
524  // Do the operation on the dynamic variables:
525  if( m_store ) {
526  if (!m_store->resize( size ))
527  nomoves = false;
528  }
529 
530  return nomoves;
531  }

◆ setName()

void xAOD::AuxContainerBase::setName ( const char name)
inherited

Set the name of the container instance.

Definition at line 748 of file AuxContainerBase.cxx.

748  {
749 
750  m_name = name;
751  return;
752  }

◆ setOption()

bool xAOD::AuxContainerBase::setOption ( auxid_t  id,
const SG::AuxDataOption option 
)
overridevirtualinherited

Make an option setting on an aux variable.

Reimplemented from SG::IAuxStore.

Definition at line 638 of file AuxContainerBase.cxx.

639  {
640 
641  guard_t guard (m_mutex);
642  if (id < m_vecs.size() && m_vecs[id] != nullptr)
643  return m_vecs[id]->setOption (option);
644 
645  if (m_store)
646  return m_store->setOption (id, option);
647  return false;
648  }

◆ setStore()

void xAOD::AuxContainerBase::setStore ( SG::IAuxStore store)
overridevirtualinherited

Set a different internal store object.

This function is used by the I/O infrastructure to possibly put a store object into this one, which can interact with dynamic variables directly.

Note that the object takes ownership of the received store.

Parameters
storeThe store that should be used for dynamic variable handling inside the object from now on

Implements SG::IAuxStoreHolder.

Definition at line 195 of file AuxContainerBase.cxx.

195  {
196 
197  // Guard against multi-threaded execution:
198  guard_t guard( m_mutex );
199 
200  // Check that no funny business is going on:
201  if( m_store == store ) return;
202 
203  // Clean up the current store object:
204  if( m_store && m_ownsStore ) {
205  m_auxids -= m_store->getAuxIDs();
206  delete m_store;
207  }
208  m_store = nullptr;
209  m_storeIO = nullptr;
210 
211  // Take posession of the new object:
212  m_store = store;
213  m_storeIO = dynamic_cast< SG::IAuxStoreIO* >( m_store );
214  m_ownsStore = true;
215  if( m_store ) {
217  }
218 
219  return;
220  }

◆ shift()

void xAOD::AuxContainerBase::shift ( size_t  pos,
ptrdiff_t  offs 
)
overridevirtualinherited

Shift the contents of the stored arrays.

Implements SG::IAuxStore.

Definition at line 558 of file AuxContainerBase.cxx.

558  {
559 
560  // Guard against multi-threaded execution:
561  guard_t guard( m_mutex );
562 
563  // This operation is not allowed on a locked container:
564  if( m_locked ) {
565  throw SG::ExcStoreLocked( "shift" );
566  }
567 
568  // Do the operation on the static variables:
569  for (SG::IAuxTypeVector* v : m_vecs) {
570  if(v && !v->isLinked()) {
571  v->shift( pos, offs );
572  }
573  }
574 
575  // Do the operation on the dynamic variables:
576  if( m_store ) {
577  m_store->shift( pos, offs );
578  }
579 
580  return;
581  }

◆ size()

size_t xAOD::AuxContainerBase::size ( ) const
overridevirtualinherited

Get the size of the container.

Implements SG::IConstAuxStore.

Definition at line 430 of file AuxContainerBase.cxx.

430  {
431 
432  // Guard against multi-threaded execution:
433  guard_t guard (m_mutex);
434 
435  // Try to find a variable:
436  for (SG::auxid_t i : m_auxids) {
437  if( ( i < m_vecs.size() ) && m_vecs[ i ] && !m_vecs[ i ]->isLinked()) {
438  size_t sz = m_vecs[ i ]->size();
439  if( sz > 0 ) {
440  return sz;
441  }
442  }
443  }
444 
445  // If we didn't find any, let's ask the dynamic store:
446  if( m_store ) {
447  return m_store->size();
448  }
449 
450  // If we don't have any variables, then the size must be null:
451  return 0;
452  }

Member Data Documentation

◆ asy1

std::vector< float > xAOD::EgammaAuxContainer_v1::asy1
privateinherited

uncorr asymmetry in 3 strips in the 1st sampling

Definition at line 146 of file EgammaAuxContainer_v1.h.

◆ ATLAS_THREAD_SAFE

CxxUtils::CachedPointer<std::pmr::memory_resource> m_memResource xAOD::AuxContainerBase::ATLAS_THREAD_SAFE
mutableprivateinherited

Memory resource to use for this container.

Definition at line 254 of file AuxContainerBase.h.

◆ author

std::vector< uint16_t > xAOD::EgammaAuxContainer_v1::author
privateinherited

Definition at line 74 of file EgammaAuxContainer_v1.h.

◆ barys1

std::vector< float > xAOD::EgammaAuxContainer_v1::barys1
privateinherited

barycentre in sampling 1 calculated in 3 strips

Definition at line 157 of file EgammaAuxContainer_v1.h.

◆ caloClusterLinks

std::vector< std::vector< ElementLink< CaloClusterContainer > > > xAOD::EgammaAuxContainer_v1::caloClusterLinks
privateinherited

Definition at line 54 of file EgammaAuxContainer_v1.h.

◆ charge

std::vector<float> xAOD::ElectronAuxContainer_v1::charge
private

Definition at line 52 of file ElectronAuxContainer_v1.h.

◆ deltaEta0

std::vector< float > xAOD::ElectronAuxContainer_v1::deltaEta0
private

difference between the cluster eta (presampler) and the eta of the track extrapolated to the presampler

Definition at line 60 of file ElectronAuxContainer_v1.h.

◆ deltaEta1

std::vector< float > xAOD::ElectronAuxContainer_v1::deltaEta1
private

difference between the cluster eta (first sampling) and the eta of the track extrapolated to the first sampling: |eta_stripscluster -eta_ID|, where eta_stripscluster is computed in the first sampling of the electromagnetic calorimeter, where the granularity is very fine, and eta_ID is the pseudo-rapidity of the track extrapolated to the calorimeter

Definition at line 63 of file ElectronAuxContainer_v1.h.

◆ deltaEta2

std::vector< float > xAOD::ElectronAuxContainer_v1::deltaEta2
private

difference between the cluster eta (second sampling) and the eta of the track extrapolated to the second sampling

Definition at line 65 of file ElectronAuxContainer_v1.h.

◆ deltaEta3

std::vector< float > xAOD::ElectronAuxContainer_v1::deltaEta3
private

difference between the cluster eta (3rd sampling) and the eta of the track extrapolated to the 3rd sampling

Definition at line 68 of file ElectronAuxContainer_v1.h.

◆ deltaPhi0

std::vector< float > xAOD::ElectronAuxContainer_v1::deltaPhi0
private

difference between the cluster phi (presampler) and the eta of the track extrapolated to the presampler

Definition at line 71 of file ElectronAuxContainer_v1.h.

◆ deltaPhi1

std::vector< float > xAOD::ElectronAuxContainer_v1::deltaPhi1
private

difference between the cluster eta (1st sampling) and the eta of the track extrapolated to the 1st sampling (strips)

Definition at line 74 of file ElectronAuxContainer_v1.h.

◆ deltaPhi2

std::vector< float > xAOD::ElectronAuxContainer_v1::deltaPhi2
private

difference between the cluster phi (second sampling) and the phi of the track extrapolated to the second sampling : |phi_middlecluster -phi_ID|, where phi_middlecluster is computed in the second compartment of the electromagnetic calorimeter and phi_ID is the azimuth of the track extrapolated to the calorimeter

Definition at line 79 of file ElectronAuxContainer_v1.h.

◆ deltaPhi3

std::vector< float > xAOD::ElectronAuxContainer_v1::deltaPhi3
private

difference between the cluster eta (3rd sampling) and the eta of the track extrapolated to the 3rd sampling

Definition at line 82 of file ElectronAuxContainer_v1.h.

◆ deltaPhiFromLastMeasurement

std::vector< float > xAOD::ElectronAuxContainer_v1::deltaPhiFromLastMeasurement
private

difference between the cluster phi (sampling 2) and the eta of the track extrapolated from the last measurement point.

Definition at line 85 of file ElectronAuxContainer_v1.h.

◆ deltaPhiRescaled0

std::vector< float > xAOD::ElectronAuxContainer_v1::deltaPhiRescaled0
private

difference between the cluster phi (presampler) and the eta of the track extrapolated to the presampler from the perigee with a rescaled momentum.


Definition at line 89 of file ElectronAuxContainer_v1.h.

◆ deltaPhiRescaled1

std::vector< float > xAOD::ElectronAuxContainer_v1::deltaPhiRescaled1
private

difference between the cluster eta (1st sampling) and the eta of the track extrapolated to the 1st sampling (strips) from the perigee with a rescaled momentum.


Definition at line 93 of file ElectronAuxContainer_v1.h.

◆ deltaPhiRescaled2

std::vector< float > xAOD::ElectronAuxContainer_v1::deltaPhiRescaled2
private

difference between the cluster phi (second sampling) and the phi of the track extrapolated to the second sampling from the perigee with a rescaled momentum.


Definition at line 97 of file ElectronAuxContainer_v1.h.

◆ deltaPhiRescaled3

std::vector< float > xAOD::ElectronAuxContainer_v1::deltaPhiRescaled3
private

difference between the cluster eta (3rd sampling) and the eta of the track extrapolated to the 3rd sampling from the perigee with a rescaled momentum.


Definition at line 101 of file ElectronAuxContainer_v1.h.

◆ depth

std::vector< float > xAOD::EgammaAuxContainer_v1::depth
privateinherited

pointing depth of the shower as calculated in egammaqgcld

Definition at line 176 of file EgammaAuxContainer_v1.h.

◆ e011

std::vector< float > xAOD::EgammaAuxContainer_v1::e011
privateinherited

Definition at line 86 of file EgammaAuxContainer_v1.h.

◆ e033

std::vector< float > xAOD::EgammaAuxContainer_v1::e033
privateinherited

uncalibrated energy (sum of cells) in presampler in a 3x3 window in cells in eta X phi

Definition at line 88 of file EgammaAuxContainer_v1.h.

◆ e1152

std::vector< float > xAOD::EgammaAuxContainer_v1::e1152
privateinherited

uncalibrated energy (sum of cells) in strips in a 15x2 window in cells in eta X phi

Definition at line 92 of file EgammaAuxContainer_v1.h.

◆ e132

std::vector< float > xAOD::EgammaAuxContainer_v1::e132
privateinherited

uncalibrated energy (sum of cells) in strips in a 3x2 window in cells in eta X phi

Definition at line 90 of file EgammaAuxContainer_v1.h.

◆ e233

std::vector< float > xAOD::EgammaAuxContainer_v1::e233
privateinherited

uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x3 (in cell units eta X phi)

Definition at line 108 of file EgammaAuxContainer_v1.h.

◆ e235

std::vector< float > xAOD::EgammaAuxContainer_v1::e235
privateinherited

uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x5

Definition at line 110 of file EgammaAuxContainer_v1.h.

◆ e237

std::vector< float > xAOD::EgammaAuxContainer_v1::e237
privateinherited

uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x7

Definition at line 114 of file EgammaAuxContainer_v1.h.

◆ e255

std::vector< float > xAOD::EgammaAuxContainer_v1::e255
privateinherited

uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 5x5

Definition at line 112 of file EgammaAuxContainer_v1.h.

◆ e277

std::vector< float > xAOD::EgammaAuxContainer_v1::e277
privateinherited

uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 7x7

Definition at line 116 of file EgammaAuxContainer_v1.h.

◆ e2ts1

std::vector< float > xAOD::EgammaAuxContainer_v1::e2ts1
privateinherited

2nd max in strips calc by summing 3 strips

Definition at line 132 of file EgammaAuxContainer_v1.h.

◆ e2tsts1

std::vector< float > xAOD::EgammaAuxContainer_v1::e2tsts1
privateinherited

energy of the cell corresponding to second energy maximum in the first sampling

Definition at line 134 of file EgammaAuxContainer_v1.h.

◆ e333

std::vector< float > xAOD::EgammaAuxContainer_v1::e333
privateinherited

uncalibrated energy (sum of cells) of the third sampling in a rectangle of size 3x3

Definition at line 118 of file EgammaAuxContainer_v1.h.

◆ e335

std::vector< float > xAOD::EgammaAuxContainer_v1::e335
privateinherited

uncalibrated energy (sum of cells) of the third sampling in a rectangle of size 3x5

Definition at line 120 of file EgammaAuxContainer_v1.h.

◆ e337

std::vector< float > xAOD::EgammaAuxContainer_v1::e337
privateinherited

uncalibrated energy (sum of cells) of the third sampling in a rectangle of size 3x7

Definition at line 122 of file EgammaAuxContainer_v1.h.

◆ e377

std::vector< float > xAOD::EgammaAuxContainer_v1::e377
privateinherited

uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 7x7

Definition at line 124 of file EgammaAuxContainer_v1.h.

◆ ecore

std::vector< float > xAOD::EgammaAuxContainer_v1::ecore
privateinherited

core energy in em calo E(core) = E0(3x3) + E1(15x2) + E2(5x5) + E3(3x5)

Definition at line 168 of file EgammaAuxContainer_v1.h.

◆ EgammaCovarianceMatrix

std::vector< std::vector<float> > xAOD::EgammaAuxContainer_v1::EgammaCovarianceMatrix
privateinherited

Definition at line 69 of file EgammaAuxContainer_v1.h.

◆ ehad1

std::vector< float > xAOD::EgammaAuxContainer_v1::ehad1
privateinherited

E leakage into 1st sampling of had calo (CaloSampling::HEC0 + CaloSampling::TileBar0 + CaloSampling::TileExt0)

Definition at line 98 of file EgammaAuxContainer_v1.h.

◆ emaxs1

std::vector< float > xAOD::EgammaAuxContainer_v1::emaxs1
privateinherited

energy of strip with maximal energy deposit

Definition at line 163 of file EgammaAuxContainer_v1.h.

◆ emins1

std::vector< float > xAOD::EgammaAuxContainer_v1::emins1
privateinherited

energy reconstructed in the strip with the minimal value between the first and second maximum

Definition at line 161 of file EgammaAuxContainer_v1.h.

◆ errz

std::vector< float > xAOD::EgammaAuxContainer_v1::errz
privateinherited

error associated to zvertex

Definition at line 172 of file EgammaAuxContainer_v1.h.

◆ eta

std::vector<float> xAOD::EgammaAuxContainer_v1::eta
privateinherited

Definition at line 62 of file EgammaAuxContainer_v1.h.

◆ etap

std::vector< float > xAOD::EgammaAuxContainer_v1::etap
privateinherited

pointing eta reconstructed from the cluster (first and second sampling)

Definition at line 174 of file EgammaAuxContainer_v1.h.

◆ etcone

std::vector< float > xAOD::EgammaAuxContainer_v1::etcone
privateinherited

Definition at line 183 of file EgammaAuxContainer_v1.h.

◆ etcone15

std::vector< float > xAOD::EgammaAuxContainer_v1::etcone15
privateinherited

ET in a cone with half-opening angle 0.15, with exclusion of a window of size 7x5 in electromagnetic calorimeter and exclude CaloSampling::TileGap3.

Definition at line 185 of file EgammaAuxContainer_v1.h.

◆ etcone15_ptcorrected

std::vector< float > xAOD::EgammaAuxContainer_v1::etcone15_ptcorrected
privateinherited

pt corrected ET in a cone with half-opening angle 0.15

Definition at line 209 of file EgammaAuxContainer_v1.h.

◆ etcone20

std::vector< float > xAOD::EgammaAuxContainer_v1::etcone20
privateinherited

ET in a cone with half-opening angle 0.2, with exclusion of a window of size 7x5 in electromagnetic calorimeter and exclude CaloSampling::TileGap3.

Definition at line 187 of file EgammaAuxContainer_v1.h.

◆ etcone20_corrected

std::vector< float > xAOD::EgammaAuxContainer_v1::etcone20_corrected
privateinherited

pt + ED corrected ET in a cone with half-opening angle 0.2

Definition at line 221 of file EgammaAuxContainer_v1.h.

◆ etcone20_ptcorrected

std::vector< float > xAOD::EgammaAuxContainer_v1::etcone20_ptcorrected
privateinherited

pt corrected ET in a cone with half-opening angle 0.2

Definition at line 211 of file EgammaAuxContainer_v1.h.

◆ etcone25

std::vector< float > xAOD::EgammaAuxContainer_v1::etcone25
privateinherited

ET in a cone with half-opening angle 0.25, with exclusion of a window of size 7x5 in electromagnetic calorimeter and exclude CaloSampling::TileGap3.

Definition at line 189 of file EgammaAuxContainer_v1.h.

◆ etcone25_ptcorrected

std::vector< float > xAOD::EgammaAuxContainer_v1::etcone25_ptcorrected
privateinherited

pt corrected ET in a cone with half-opening angle 0.25

Definition at line 213 of file EgammaAuxContainer_v1.h.

◆ etcone30

std::vector< float > xAOD::EgammaAuxContainer_v1::etcone30
privateinherited

ET in a cone with half-opening angle 0.3, with exclusion of a window of size 7x5 in electromagnetic calorimeter and exclude CaloSampling::TileGap3.

Definition at line 191 of file EgammaAuxContainer_v1.h.

◆ etcone30_corrected

std::vector< float > xAOD::EgammaAuxContainer_v1::etcone30_corrected
privateinherited

pt + ED corrected ET in a cone with half-opening angle 0.3

Definition at line 223 of file EgammaAuxContainer_v1.h.

◆ etcone30_ptcorrected

std::vector< float > xAOD::EgammaAuxContainer_v1::etcone30_ptcorrected
privateinherited

pt corrected ET in a cone with half-opening angle 0.3

Definition at line 215 of file EgammaAuxContainer_v1.h.

◆ etcone35

std::vector< float > xAOD::EgammaAuxContainer_v1::etcone35
privateinherited

ET in a cone with half-opening angle 0.35, with exclusion of a window of size 7x5 in electromagnetic calorimeter and exclude CaloSampling::TileGap3.

Definition at line 193 of file EgammaAuxContainer_v1.h.

◆ etcone35_ptcorrected

std::vector< float > xAOD::EgammaAuxContainer_v1::etcone35_ptcorrected
privateinherited

pt corrected ET in a cone with half-opening angle 0.35

Definition at line 217 of file EgammaAuxContainer_v1.h.

◆ etcone40

std::vector< float > xAOD::EgammaAuxContainer_v1::etcone40
privateinherited

ET in a cone with half-opening angle 0.4, with exclusion of a window of size 7x5 in electromagnetic calorimeter and exclude CaloSampling::TileGap3.

Definition at line 195 of file EgammaAuxContainer_v1.h.

◆ etcone40_corrected

std::vector< float > xAOD::EgammaAuxContainer_v1::etcone40_corrected
privateinherited

pt + ED corrected ET in a cone with half-opening angle 0.4

Definition at line 225 of file EgammaAuxContainer_v1.h.

◆ etcone40_ptcorrected

std::vector< float > xAOD::EgammaAuxContainer_v1::etcone40_ptcorrected
privateinherited

ptcorrected ET in a cone with half-opening angle 0.4

Definition at line 219 of file EgammaAuxContainer_v1.h.

◆ ethad

std::vector< float > xAOD::EgammaAuxContainer_v1::ethad
privateinherited

ET leakage into hadronic calorimeter with exclusion of energy in CaloSampling::TileGap3.

Definition at line 96 of file EgammaAuxContainer_v1.h.

◆ ethad1

std::vector< float > xAOD::EgammaAuxContainer_v1::ethad1
privateinherited

transverse energy in the first sampling of the hadronic calorimeters behind the cluster calculated from ehad1

Definition at line 94 of file EgammaAuxContainer_v1.h.

◆ f1

std::vector< float > xAOD::EgammaAuxContainer_v1::f1
privateinherited

E1/E = fraction of energy reconstructed in the first sampling, where E1 is energy in all strips belonging to the cluster and E is the total energy reconstructed in the electromagnetic calorimeter cluster.

Definition at line 100 of file EgammaAuxContainer_v1.h.

◆ f1core

std::vector< float > xAOD::EgammaAuxContainer_v1::f1core
privateinherited

E1(3x1)/E = fraction of the energy reconstructed in the first longitudinal compartment of the electromagnetic calorimeter, where E1(3x1) the energy reconstructed in +/-3 strips in eta, centered around the maximum energy strip and E is the energy reconstructed in the electromagnetic calorimeter.

Definition at line 104 of file EgammaAuxContainer_v1.h.

◆ f3

std::vector< float > xAOD::EgammaAuxContainer_v1::f3
privateinherited

fraction of energy reconstructed in 3rd sampling

Definition at line 102 of file EgammaAuxContainer_v1.h.

◆ f3core

std::vector< float > xAOD::EgammaAuxContainer_v1::f3core
privateinherited

E3(3x3)/E fraction of the energy reconstructed in the third compartment of the electromagnetic calorimeter, where E3(3x3), energy in the back sampling, is the sum of the energy contained in a 3x3 window around the maximum energy cell.

Definition at line 106 of file EgammaAuxContainer_v1.h.

◆ fracs1

std::vector< float > xAOD::EgammaAuxContainer_v1::fracs1
privateinherited

shower shape in the shower core : [E(+/-3)-E(+/-1)]/E(+/-1), where E(+/-n) is the energy in +- n strips around the strip with highest energy

Definition at line 136 of file EgammaAuxContainer_v1.h.

◆ m

std::vector<float> xAOD::EgammaAuxContainer_v1::m
privateinherited

Definition at line 64 of file EgammaAuxContainer_v1.h.

◆ m_auxids

auxid_set_t xAOD::AuxContainerBase::m_auxids
privateinherited

Internal list of all available variables.

Definition at line 232 of file AuxContainerBase.h.

◆ m_locked

bool xAOD::AuxContainerBase::m_locked
privateinherited

Has the container been locked?

Definition at line 243 of file AuxContainerBase.h.

◆ m_mutex

mutex_t xAOD::AuxContainerBase::m_mutex
mutableprivateinherited

Definition at line 248 of file AuxContainerBase.h.

◆ m_name

std::string xAOD::AuxContainerBase::m_name
privateinherited

Name of the container in memory. Set externally.

Definition at line 251 of file AuxContainerBase.h.

◆ m_ownsStore

bool xAOD::AuxContainerBase::m_ownsStore
privateinherited

Flag deciding if the object owns the dynamic store or not.

Definition at line 241 of file AuxContainerBase.h.

◆ m_store

SG::IAuxStore* xAOD::AuxContainerBase::m_store
privateinherited

Internal dynamic auxiliary store object.

Definition at line 237 of file AuxContainerBase.h.

◆ m_storeIO

SG::IAuxStoreIO* xAOD::AuxContainerBase::m_storeIO
privateinherited

The IO interface to the internal auxiliary store.

Definition at line 239 of file AuxContainerBase.h.

◆ m_vecs

std::vector< SG::IAuxTypeVector* > xAOD::AuxContainerBase::m_vecs
privateinherited

Internal list of all managed variables.

Definition at line 234 of file AuxContainerBase.h.

◆ nucone20

std::vector< float > xAOD::EgammaAuxContainer_v1::nucone20
privateinherited

number of tracks in a cone with half-opening angle 0.2

Definition at line 203 of file EgammaAuxContainer_v1.h.

◆ nucone30

std::vector< float > xAOD::EgammaAuxContainer_v1::nucone30
privateinherited

number of tracks in a cone with half-opening angle 0.3

Definition at line 205 of file EgammaAuxContainer_v1.h.

◆ nucone40

std::vector< float > xAOD::EgammaAuxContainer_v1::nucone40
privateinherited

number of tracks in a cone with half-opening angle 0.4

Definition at line 207 of file EgammaAuxContainer_v1.h.

◆ OQ

std::vector< uint32_t > xAOD::EgammaAuxContainer_v1::OQ
privateinherited

Definition at line 80 of file EgammaAuxContainer_v1.h.

◆ phi

std::vector<float> xAOD::EgammaAuxContainer_v1::phi
privateinherited

Definition at line 63 of file EgammaAuxContainer_v1.h.

◆ pos

std::vector< float > xAOD::EgammaAuxContainer_v1::pos
privateinherited

difference between shower cell and predicted track in +/- 1 cells

Definition at line 148 of file EgammaAuxContainer_v1.h.

◆ pos7

std::vector< float > xAOD::EgammaAuxContainer_v1::pos7
privateinherited

Difference between the track and the shower positions: sum_{i=i_m-7}^{i=i_m+7}E_i x (i-i_m) / sum_{i=i_m-7}^{i=i_m+7}E_i, The difference between the track and the shower positions measured in units of distance between the strips, where i_m is the impact cell for the track reconstructed in the inner detector and E_i is the energy reconstructed in the i-th cell in the eta direction for constant phi given by the track parameters.

Definition at line 155 of file EgammaAuxContainer_v1.h.

◆ poscs1

std::vector< float > xAOD::EgammaAuxContainer_v1::poscs1
privateinherited

relative position in eta within cell in 1st sampling

Definition at line 142 of file EgammaAuxContainer_v1.h.

◆ poscs2

std::vector< float > xAOD::EgammaAuxContainer_v1::poscs2
privateinherited

relative position in eta within cell in 2nd sampling

Definition at line 144 of file EgammaAuxContainer_v1.h.

◆ pt

std::vector<float> xAOD::EgammaAuxContainer_v1::pt
privateinherited

Definition at line 61 of file EgammaAuxContainer_v1.h.

◆ ptcone20

std::vector< float > xAOD::EgammaAuxContainer_v1::ptcone20
privateinherited

summed pt of tracks in a cone with half-opening angle 0.2 (no zvx cut photons, 1mm electrons)

Definition at line 197 of file EgammaAuxContainer_v1.h.

◆ ptcone30

std::vector< float > xAOD::EgammaAuxContainer_v1::ptcone30
privateinherited

summed pt of tracks in a cone with half-opening angle 0.3

Definition at line 199 of file EgammaAuxContainer_v1.h.

◆ ptcone40

std::vector< float > xAOD::EgammaAuxContainer_v1::ptcone40
privateinherited

summed pt of tracks in a cone with half-opening angle 0.4

Definition at line 201 of file EgammaAuxContainer_v1.h.

◆ r33over37allcalo

std::vector< float > xAOD::EgammaAuxContainer_v1::r33over37allcalo
privateinherited

1-ratio of energy in 3x3 over 3x7 cells; E(3x3) = E0(1x1) + E1(3x1) + E2(3x3) + E3(3x3); E(3x7) = E0(3x3) + E1(15x3) + E2(3x7) + E3(3x7)

Definition at line 166 of file EgammaAuxContainer_v1.h.

◆ supportsThinning

constexpr bool SG::IAuxStore::supportsThinning = true
staticconstexprinherited

Mark that this type supports thinning operations.

See AthContainers/supportsThinning.h and AthenaPoolCnvSvc/T_AthenaPoolCnv.h. Helps guide which pool converter template will be used. If false, the default pool converter will be used rather than the aux store-specific one. Ordinary xAOD type should not touch this, but may be overridden in a derived class to handle certain special cases.

Definition at line 199 of file IAuxStore.h.

◆ topoetcone20

std::vector< float > xAOD::EgammaAuxContainer_v1::topoetcone20
privateinherited

ET in a cone with half-opening angle 0.20.

Definition at line 228 of file EgammaAuxContainer_v1.h.

◆ topoetcone30

std::vector< float > xAOD::EgammaAuxContainer_v1::topoetcone30
privateinherited

ET in a cone with half-opening angle 0.30.

Definition at line 230 of file EgammaAuxContainer_v1.h.

◆ topoetcone40

std::vector< float > xAOD::EgammaAuxContainer_v1::topoetcone40
privateinherited

ET in a cone with half-opening angle 0.40.

Definition at line 232 of file EgammaAuxContainer_v1.h.

◆ topoetcone40_corrected

std::vector< float > xAOD::EgammaAuxContainer_v1::topoetcone40_corrected
privateinherited

fully corrected ET in a cone with half-opening angle 0.40

Definition at line 236 of file EgammaAuxContainer_v1.h.

◆ topoetcone40_ptcorrected

std::vector< float > xAOD::EgammaAuxContainer_v1::topoetcone40_ptcorrected
privateinherited

pt corrected ET in a cone with half-opening angle 0.40

Definition at line 234 of file EgammaAuxContainer_v1.h.

◆ trackParticleLinks

std::vector< std::vector< ElementLink< TrackParticleContainer > > > xAOD::ElectronAuxContainer_v1::trackParticleLinks
private

Definition at line 46 of file ElectronAuxContainer_v1.h.

◆ weta1

std::vector< float > xAOD::EgammaAuxContainer_v1::weta1
privateinherited

shower width using +/-3 strips around the one with the maximal energy deposit: w3 strips = sqrt{sum(Ei)x(i-imax)^2/sum(Ei)}, where i is the number of the strip and imax the strip number of the most energetic one

Definition at line 127 of file EgammaAuxContainer_v1.h.

◆ weta2

std::vector< float > xAOD::EgammaAuxContainer_v1::weta2
privateinherited

the lateral width is calculated with a window of 3x5 cells using the energy weighted sum over all cells, which depends on the particle impact point inside the cell: weta2 = sqrt(sum Ei x eta^2)/(sum Ei) -((sum Ei x eta)/(sum Ei))^2, where Ei is the energy of the i-th cell

Definition at line 130 of file EgammaAuxContainer_v1.h.

◆ widths1

std::vector< float > xAOD::EgammaAuxContainer_v1::widths1
privateinherited

same as egammaParameters::weta1 but without corrections on particle impact point inside the cell

Definition at line 138 of file EgammaAuxContainer_v1.h.

◆ widths2

std::vector< float > xAOD::EgammaAuxContainer_v1::widths2
privateinherited

same as egammaParameters::weta2 but without corrections on particle impact point inside the cell

Definition at line 140 of file EgammaAuxContainer_v1.h.

◆ wtots1

std::vector< float > xAOD::EgammaAuxContainer_v1::wtots1
privateinherited

shower width is determined in a window detaxdphi = 0,0625 x~0,2, corresponding typically to 20 strips in eta : wtot1=sqrt{sum Ei x ( i-imax)^2 / sum Ei}, where i is the strip number and imax the strip number of the first local maximum

Definition at line 159 of file EgammaAuxContainer_v1.h.

◆ zvertex

std::vector< float > xAOD::EgammaAuxContainer_v1::zvertex
privateinherited

pointing z at vertex reconstructed from the cluster

Definition at line 170 of file EgammaAuxContainer_v1.h.


The documentation for this class was generated from the following file:
xAOD::AuxContainerBase::m_name
std::string m_name
Name of the container in memory. Set externally.
Definition: AuxContainerBase.h:251
SG::IAuxTypeVector::shift
virtual bool shift(size_t pos, ptrdiff_t offs)=0
Shift the elements of the vector.
SG::IAuxTypeVector::isLinked
bool isLinked() const
Return true if this variable is linked from another one.
Definition: IAuxTypeVector.h:226
SGTest::store
TestStore store
Definition: TestStore.cxx:23
beamspotman.r
def r
Definition: beamspotman.py:676
xAOD::AuxContainerBase::name
const char * name() const
Get the name of the container instance.
Definition: AuxContainerBase.cxx:743
SG::IAuxStore::insertMove
virtual bool insertMove(size_t pos, IAuxStore &other, const SG::auxid_set_t &ignore=SG::auxid_set_t())=0
Move all elements from other to this store.
SG::IConstAuxStore::lockDecoration
virtual void lockDecoration(SG::auxid_t auxid)=0
Lock a decoration.
fitman.sz
sz
Definition: fitman.py:527
get_generator_info.result
result
Definition: get_generator_info.py:21
SG::IConstAuxStore::getVector
virtual const IAuxTypeVector * getVector(SG::auxid_t auxid) const =0
Return vector interface for one aux data item.
xAOD::IOStats::stats
ReadStats & stats()
Access the object belonging to the current thread.
Definition: IOStats.cxx:17
SG::AuxTypeRegistry::instance
static AuxTypeRegistry & instance()
Return the singleton registry instance.
Definition: AuxTypeRegistry.cxx:639
xAOD::AuxContainerBase::m_store
SG::IAuxStore * m_store
Internal dynamic auxiliary store object.
Definition: AuxContainerBase.h:237
SG::AuxTypeRegistry::getName
std::string getName(SG::auxid_t auxid) const
Return the name of an aux data item.
Definition: AuxTypeRegistry.cxx:881
xAOD::AuxContainerBase::guard_t
AthContainers_detail::lock_guard< mutex_t > guard_t
Definition: AuxContainerBase.h:247
SG::ExcStoreLocked
Exception — Attempted to modify auxiliary data in a locked store.
Definition: Control/AthContainers/AthContainers/exceptions.h:183
Atlas::hasExtendedEventContext
bool hasExtendedEventContext(const EventContext &ctx)
Test whether a context object has an extended context installed.
Definition: ExtendedEventContext.cxx:23
xAOD::other
@ other
Definition: TrackingPrimitives.h:509
SG::IAuxTypeVector::insertMove
virtual bool insertMove(size_t pos, void *src, size_t src_pos, size_t src_n, IAuxStore &srcStore)=0
Insert elements into the vector via move semantics.
dbg::ptr
void * ptr(T *p)
Definition: SGImplSvc.cxx:74
SG::IAuxStoreIO::getIOType
virtual const std::type_info * getIOType(SG::auxid_t auxid) const =0
Return the type of the data to be stored for one aux data item.
xAOD::AuxContainerBase::m_mutex
mutex_t m_mutex
Definition: AuxContainerBase.h:248
empty
bool empty(TH1 *h)
Definition: computils.cxx:295
SG::IConstAuxStore::size
virtual size_t size() const =0
Return the number of elements in the store.
SG::IAuxStore::shift
virtual void shift(size_t pos, ptrdiff_t offs)=0
Shift the elements of the container.
SG::IAuxStore::linkedVector
virtual IAuxTypeVector * linkedVector(SG::auxid_t)
Definition: IAuxStore.h:187
SG::IAuxStoreIO
Interface providing I/O for a generic auxiliary store.
Definition: IAuxStoreIO.h:44
SG::AuxTypeRegistry
Handle mappings between names and auxid_t.
Definition: AuxTypeRegistry.h:61
Atlas::getExtendedEventContext
const ExtendedEventContext & getExtendedEventContext(const EventContext &ctx)
Retrieve an extended context from a context object.
Definition: ExtendedEventContext.cxx:32
xAOD::AuxContainerBase::size
virtual size_t size() const override
Get the size of the container.
Definition: AuxContainerBase.cxx:430
DiTauMassTools::ignore
void ignore(T &&)
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:58
SG::IAuxStore::setOption
virtual bool setOption(auxid_t, const AuxDataOption &)
Set an option for a given auxiliary variable.
Definition: IAuxStore.h:173
SG::auxid_t
size_t auxid_t
Identifier for a particular aux data item.
Definition: AuxTypes.h:27
SG::IConstAuxStore::clearDecorations
virtual bool clearDecorations()=0
Clear all decorations.
xAOD::AuxContainerBase::auxid_set_t
SG::auxid_set_t auxid_set_t
The aux ID set type definition.
Definition: AuxContainerBase.h:65
xAOD::AuxContainerBase::m_auxids
auxid_set_t m_auxids
Internal list of all available variables.
Definition: AuxContainerBase.h:232
xAOD::AuxContainerBase::m_vecs
std::vector< SG::IAuxTypeVector * > m_vecs
Internal list of all managed variables.
Definition: AuxContainerBase.h:234
lumiFormat.i
int i
Definition: lumiFormat.py:85
CxxUtils::ConcurrentBitset::insert
ConcurrentBitset & insert(bit_t bit, bit_t new_nbits=0)
Set a bit to 1.
python.xAODType.dummy
dummy
Definition: xAODType.py:4
SG::IConstAuxStore::getDecoration
virtual void * getDecoration(auxid_t auxid, size_t size, size_t capacity)=0
Return the data vector for one aux data decoration item.
SG::AuxTypeRegistry::getVecType
const std::type_info * getVecType(SG::auxid_t auxid) const
Return the type of the STL vector used to hold an aux data item.
Definition: AuxTypeRegistry.cxx:936
xAOD::IOStats::instance
static IOStats & instance()
Singleton object accessor.
Definition: IOStats.cxx:11
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
python.subdetectors.mmg.ids
ids
Definition: mmg.py:8
xAOD::AuxContainerBase::getVector
virtual const SG::IAuxTypeVector * getVector(SG::auxid_t auxid) const override final
Return vector interface for one aux data item.
Definition: AuxContainerBase.cxx:239
CxxUtils::as_const_ptr
const T * as_const_ptr(const T *p)
Helper for getting a const version of a pointer.
Definition: as_const_ptr.h:32
xAOD::AuxContainerBase::getWritableAuxIDs
virtual const auxid_set_t & getWritableAuxIDs() const override
Return a set of writable data identifiers.
Definition: AuxContainerBase.cxx:498
SG::IAuxStoreIO::getIOData
virtual const void * getIOData(SG::auxid_t auxid) const =0
Return a pointer to the data to be stored for one aux data item.
xAOD::AuxContainerBase::getData
virtual const void * getData(auxid_t auxid) const override
Get a pointer to a given array.
Definition: AuxContainerBase.cxx:230
xAOD::ReadStats::readBranch
void readBranch(const std::string &prefix, SG::auxid_t auxid)
Function incrementing the read counter on a specific branch.
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
xAOD::AuxContainerBase::auxid_t
SG::auxid_t auxid_t
The aux ID type definition.
Definition: AuxContainerBase.h:63
python.PyAthena.v
v
Definition: PyAthena.py:154
xAOD::AuxContainerBase::ATLAS_THREAD_SAFE
CxxUtils::CachedPointer< std::pmr::memory_resource > m_memResource ATLAS_THREAD_SAFE
Memory resource to use for this container.
Definition: AuxContainerBase.h:254
SG::IAuxStore::getData
virtual void * getData(auxid_t auxid, size_t size, size_t capacity)=0
Return the data vector for one aux data item.
xAOD::AuxContainerBase::m_locked
bool m_locked
Has the container been locked?
Definition: AuxContainerBase.h:243
SG::IAuxTypeVector
Abstract interface for manipulating vectors of arbitrary types.
Definition: IAuxTypeVector.h:42
xAOD::AuxContainerBase::m_ownsStore
bool m_ownsStore
Flag deciding if the object owns the dynamic store or not.
Definition: AuxContainerBase.h:241
SG::IConstAuxStore::getDecorIDs
virtual const SG::auxid_set_t & getDecorIDs() const =0
Return a set of identifiers for decorations in this store.
SG::IConstAuxStore::lock
virtual void lock()=0
Lock the container.
xAOD::AuxContainerBase::m_storeIO
SG::IAuxStoreIO * m_storeIO
The IO interface to the internal auxiliary store.
Definition: AuxContainerBase.h:239
SG::IAuxStore::resize
virtual bool resize(size_t sz)=0
Change the size of all aux data vectors.
SG::auxid_set_t
A set of aux data identifiers.
Definition: AuxTypes.h:47
SG::IConstAuxStore::isDecoration
virtual bool isDecoration(auxid_t auxid) const =0
Test if a particular variable is tagged as a decoration.
SG::IAuxStoreHolder::AST_ObjectStore
@ AST_ObjectStore
The store describes a single object.
Definition: IAuxStoreHolder.h:67
SG::IConstAuxStore::getAuxIDs
virtual const SG::auxid_set_t & getAuxIDs() const =0
Return a set of identifiers for existing data items in this store.
SG::IAuxTypeVector::toPtr
virtual void * toPtr()=0
Return a pointer to the start of the vector's data.
SG::IAuxStore::reserve
virtual void reserve(size_t sz)=0
Change the capacity of all aux data vectors.
SG::IAuxStoreHolder::AST_ContainerStore
@ AST_ContainerStore
The store describes a container.
Definition: IAuxStoreHolder.h:68