ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
Acts
ActsEvent
ActsEvent
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
8
#include "
xAODMeasurementBase/MeasurementDefs.h
"
9
10
#include <utility>
11
#include <unordered_set>
12
13
namespace
ActsTrk
14
{
15
16
class
PrepRawDataAssociation
{
17
public
:
18
PrepRawDataAssociation
() =
default
;
19
PrepRawDataAssociation
(
const
PrepRawDataAssociation
&) =
default
;
20
PrepRawDataAssociation
(
PrepRawDataAssociation
&&) noexcept = delete;
21
PrepRawDataAssociation
& operator=(
const
PrepRawDataAssociation
&) = default;
22
PrepRawDataAssociation
& operator=(
PrepRawDataAssociation
&&) noexcept = delete;
23
~
PrepRawDataAssociation
() = default;
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
"
36
CLASS_DEF
(
ActsTrk::PrepRawDataAssociation
, 101405812, 1 )
37
38
#endif
CLASS_DEF.h
macros to associate a CLID to a type
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:67
MeasurementDefs.h
ActsTrk::PrepRawDataAssociation
Definition
PrepRawDataAssociation.h:16
ActsTrk::PrepRawDataAssociation::isUsed
bool isUsed(xAOD::DetectorIdentType id) const
Definition
PrepRawDataAssociation.h:26
ActsTrk::PrepRawDataAssociation::markAsUsed
std::pair< typename std::unordered_set< xAOD::DetectorIdentType >::iterator, bool > markAsUsed(xAOD::DetectorIdentType id)
Definition
PrepRawDataAssociation.h:25
ActsTrk::PrepRawDataAssociation::PrepRawDataAssociation
PrepRawDataAssociation(PrepRawDataAssociation &&) noexcept=delete
ActsTrk::PrepRawDataAssociation::m_prds
std::unordered_set< xAOD::DetectorIdentType > m_prds
Definition
PrepRawDataAssociation.h:30
ActsTrk::PrepRawDataAssociation::size
std::size_t size() const
Definition
PrepRawDataAssociation.h:27
ActsTrk::PrepRawDataAssociation::PrepRawDataAssociation
PrepRawDataAssociation()=default
ActsTrk::PrepRawDataAssociation::PrepRawDataAssociation
PrepRawDataAssociation(const PrepRawDataAssociation &)=default
iterator
pair
STL class.
const
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition
MdtCalibInput.h:31
std
STL namespace.
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::DetectorIdentType
long unsigned int DetectorIdentType
Definition
MeasurementDefs.h:49
Generated on
for ATLAS Offline Software by
1.17.0