Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
22 #ifndef SIMULATIONBASE
56 #ifndef SIMULATIONBASE
66 return StatusCode::SUCCESS;
74 #ifndef SIMULATIONBASE
77 ASSERT_NE (0
u, muonsStore->size());
83 EXPECT_FALSE (readHandle.isPresent());
84 EXPECT_EQ (
nullptr, readHandle.get());
85 EXPECT_FALSE (readHandle.isValid());
88 EXPECT_TRUE (readHandle.isPresent());
89 EXPECT_EQ (muonsStore, readHandle.get());
90 EXPECT_TRUE (readHandle.isValid());
98 EXPECT_ANY_THROW (readDecorHandle (*testMuon));
101 EXPECT_TRUE(readDecorHandle.
isPresent());
104 EXPECT_EQ (
acc (*testMuon), readDecorHandle (*testMuon));
111 EXPECT_EQ (muonsStore, handles[0].
get());
120 auto newMuons = std::make_unique<xAOD::MuonContainer>();
121 auto newAux = std::make_unique<xAOD::MuonAuxContainer>();
124 EXPECT_SUCCESS (writeHandle.record (std::move (newMuons), std::move (newAux)));
127 EXPECT_EQ (recordMuons, retrieveMuons);
130 EXPECT_EQ (recordAux, retrieveAux);
136 EXPECT_TRUE(writeDecorHandle.isPresent());
137 EXPECT_FALSE(writeDecorHandle.isAvailable());
138 writeDecorHandle (*(*muonsStore)[0]) = 42
u;
140 EXPECT_EQ (42
u,
acc (*(*muonsStore)[0]));
146 EXPECT_TRUE(writeDecorHandleExisting.isPresent());
147 EXPECT_TRUE(writeDecorHandleExisting.isAvailable());
def retrieve(aClass, aKey=None)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
SG::ReadHandle< T > makeHandle(const SG::View *view, const SG::ReadHandleKey< T > &rhKey, const EventContext &context)
navigate from the TrigComposite to nearest view and fetch object from it
bool isPresent() const
Is the referenced container present in SG?
const T * get(size_type n) const
Access an element, as an rvalue.
Helper class to provide constant type-safe access to aux data.
bool empty() const
Test if the key is blank.
@ u
Enums for curvilinear frames.
Temporary container used until we have I/O for AuxStoreInternal.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Handle class for reading a decoration on an object.
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
T * get(TKey *tobj)
get a TObject* from a TKey* (why can't a TObject be a TKey?)
bool isAvailable()
Test to see if this variable exists in the store, for the referenced object.