ATLAS Offline Software
Event
xAOD
xAODTriggerAthenaPool
src
xAODTrigPassBitsContainerCnv.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// $Id: xAODTrigPassBitsContainerCnv.cxx 755768 2016-06-17 13:43:10Z krasznaa $
6
7
// System include(s):
8
#include <memory>
9
10
// Local include(s):
11
#include "
xAODTrigPassBitsContainerCnv.h
"
12
13
xAODTrigPassBitsContainerCnv::
14
xAODTrigPassBitsContainerCnv
( ISvcLocator* svcLoc )
15
:
xAODTrigPassBitsContainerCnvBase
( svcLoc ) {
16
17
}
18
19
xAOD::TrigPassBitsContainer
*
20
xAODTrigPassBitsContainerCnv::createTransientWithKey
(
const
std::string&
key
) {
21
22
// Get the object using the base class:
23
std::unique_ptr< xAOD::TrigPassBitsContainer >
24
ondisk{
xAODTrigPassBitsContainerCnvBase::createTransientWithKey
(
key
) };
25
26
// Create a copy of it:
27
xAOD::TrigPassBitsContainer
*
result
=
new
xAOD::TrigPassBitsContainer
();
28
for
(
size_t
i
= 0;
i
< ondisk->size(); ++
i
) {
29
result
->push_back(
new
xAOD::TrigPassBits
() );
30
}
31
result
->setStore( ondisk->getConstStoreLink() );
32
33
// Now return it:
34
return
result
;
35
}
get_generator_info.result
result
Definition:
get_generator_info.py:21
xAODTrigPassBitsContainerCnv::xAODTrigPassBitsContainerCnv
xAODTrigPassBitsContainerCnv(ISvcLocator *svcLoc)
Converter constructor.
Definition:
xAODTrigPassBitsContainerCnv.cxx:14
xAODTrigPassBitsContainerCnv::createTransientWithKey
virtual xAOD::TrigPassBitsContainer * createTransientWithKey(const std::string &key) override final
Function reading in the persistent object from disk.
Definition:
xAODTrigPassBitsContainerCnv.cxx:20
xAOD::TrigPassBitsContainer
TrigPassBitsContainer_v1 TrigPassBitsContainer
Define the latest version of the trig pass bits container class.
Definition:
TrigPassBitsContainer.h:17
lumiFormat.i
int i
Definition:
lumiFormat.py:85
xAOD::TrigPassBits_v1
Type describing which elements in a container passed a trigger chain.
Definition:
TrigPassBits_v1.h:38
DataVector
Derived DataVector<T>.
Definition:
DataVector.h:794
xAODTrigPassBitsContainerCnv.h
T_AthenaPoolxAODCnv
Athena pool converter for xAOD classes.
Definition:
T_AthenaPoolxAODCnv.h:41
T_AthenaPoolxAODCnv::createTransientWithKey
virtual XAOD * createTransientWithKey(const std::string &key) override
Read the persistent object and convert it to transient.
mapkey::key
key
Definition:
TElectronEfficiencyCorrectionTool.cxx:37
Generated on Mon Dec 23 2024 21:23:16 for ATLAS Offline Software by
1.8.18