ATLAS Offline Software
Loading...
Searching...
No Matches
CaloCellContainerCnv_p1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
10
11
13
14
16 CaloCellContainer* trans,
17 const std::string& /*key*/,
18 MsgStream& log) const
19{
20 trans->clear();
21 CaloCompactCellTool compactCellTool;
22 if (compactCellTool.getTransient(*pers, trans).isFailure()) {
23 log << MSG::ERROR << " CaloCellContainerCnv_p1: Could not get transient" << endmsg;
24 }
25}
26
27
30 const std::string& key,
31 MsgStream& log) const
32{
33 CaloCompactCellTool compactCellTool;
34
35 if (compactCellTool.getPersistent (*trans,
36 pers,
39 log << MSG::ERROR << " CaloCellContainerCnv_p1: Could not get persistent" << endmsg;
40 }
41}
#define endmsg
virtual void persToTransWithKey(const CaloCompactCellContainer *, CaloCellContainer *, const std::string &key, MsgStream &log) const override
virtual void transToPersWithKey(const CaloCellContainer *, CaloCompactCellContainer *, const std::string &key, MsgStream &log) const override
Container class for CaloCell.
container class for CaloCompactCell objects
helper to convert from CaloCellContainer to CaloCompactCellContainer and back
StatusCode getPersistent(const CaloCellContainer &theCellContainer, CaloCompactCellContainer *theCompactContainer, const SG::ThinningDecisionBase *dec, int theVersion=VERSION_LATEST)
StatusCode getTransient(const CaloCompactCellContainer &theCompactContainer, CaloCellContainer *theCellContainer)
void clear()
Erase all the elements in the collection.
Helpers to retrieve the current thinning cache from the event context.
const SG::ThinningDecisionBase * getThinningDecision(const EventContext &ctx, const std::string &key)
Retrieve the current thinning decision for key.