ATLAS Offline Software
PrepRawDataAssociation.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef PRD_ASSOCIATION_H
6 #define PRD_ASSOCIATION_H
7 
9 
10 #include <utility>
11 #include <unordered_set>
12 
13 namespace ActsTrk
14 {
15 
17  public:
24 
25  std::pair<typename std::unordered_set<xAOD::DetectorIdentType>::iterator, bool> markAsUsed(xAOD::DetectorIdentType id) { return m_prds.insert(id); }
26  bool isUsed(xAOD::DetectorIdentType id) const { return m_prds.find(id) != m_prds.end(); }
27  std::size_t size() const { return m_prds.size(); }
28 
29  private:
30  std::unordered_set<xAOD::DetectorIdentType> m_prds {};
31  };
32 
33 }
34 
35 #include "AthenaKernel/CLASS_DEF.h"
37 
38 #endif
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
xAOD::DetectorIdentType
long unsigned int DetectorIdentType
Definition: MeasurementDefs.h:43
ActsTrk::PrepRawDataAssociation::PrepRawDataAssociation
PrepRawDataAssociation(const PrepRawDataAssociation &)=default
ActsTrk::PrepRawDataAssociation::markAsUsed
std::pair< typename std::unordered_set< xAOD::DetectorIdentType >::iterator, bool > markAsUsed(xAOD::DetectorIdentType id)
Definition: PrepRawDataAssociation.h:25
ActsTrk::PrepRawDataAssociation
Definition: PrepRawDataAssociation.h:16
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
ActsTrk::PrepRawDataAssociation::PrepRawDataAssociation
PrepRawDataAssociation()=default
ActsTrk::PrepRawDataAssociation::m_prds
std::unordered_set< xAOD::DetectorIdentType > m_prds
Definition: PrepRawDataAssociation.h:30
ActsTrk::PrepRawDataAssociation::PrepRawDataAssociation
PrepRawDataAssociation(PrepRawDataAssociation &&) noexcept=delete
MeasurementDefs.h
ActsTrk::PrepRawDataAssociation::size
std::size_t size() const
Definition: PrepRawDataAssociation.h:27
ActsTrk::PrepRawDataAssociation::isUsed
bool isUsed(xAOD::DetectorIdentType id) const
Definition: PrepRawDataAssociation.h:26
python.Dumpers.typename
def typename(t)
Definition: Dumpers.py:194
calibdata.delete
list delete
Definition: calibdata.py:46
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MuonDetectorBuilderTool.cxx:34
python.CaloScaleNoiseConfig.default
default
Definition: CaloScaleNoiseConfig.py:79
CLASS_DEF.h
macros to associate a CLID to a type