ATLAS Offline Software
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 
8 #include "CaloCompactCellTool.h"
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 }
CaloCellContainerCnv_p1::CaloCellContainerCnv_p1
CaloCellContainerCnv_p1()
Definition: CaloCellContainerCnv_p1.cxx:12
CaloCompactCellContainer.h
CaloCellContainerCnv_p1::persToTransWithKey
virtual void persToTransWithKey(const CaloCompactCellContainer *, CaloCellContainer *, const std::string &key, MsgStream &log) const override
Definition: CaloCellContainerCnv_p1.cxx:15
CaloCompactCellContainer
container class for CaloCompactCell objects
Definition: CaloCompactCellContainer.h:31
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
getThinningCache.h
Helpers to retrieve the current thinning cache from the event context.
DataVector::clear
void clear()
Erase all the elements in the collection.
CaloCompactCellTool::getPersistent
StatusCode getPersistent(const CaloCellContainer &theCellContainer, CaloCompactCellContainer *theCompactContainer, const SG::ThinningDecisionBase *dec, int theVersion=VERSION_LATEST)
Definition: CaloCompactCellTool.cxx:67
SG::getThinningDecision
const SG::ThinningDecisionBase * getThinningDecision(const EventContext &ctx, const std::string &key)
Retrieve the current thinning decision for key.
Definition: getThinningCache.cxx:83
CaloCellContainerCnv_p1.h
CaloCompactCellTool::VERSION_LATEST
@ VERSION_LATEST
Definition: CaloCompactCellTool.h:40
CaloCellContainer.h
CaloCellContainer
Container class for CaloCell.
Definition: CaloCellContainer.h:55
CaloCellContainerCnv_p1::transToPersWithKey
virtual void transToPersWithKey(const CaloCellContainer *, CaloCompactCellContainer *, const std::string &key, MsgStream &log) const override
Definition: CaloCellContainerCnv_p1.cxx:28
CaloCompactCellTool
helper to convert from CaloCellContainer to CaloCompactCellContainer and back
Definition: CaloCompactCellTool.h:29
CaloCompactCellTool::getTransient
StatusCode getTransient(const CaloCompactCellContainer &theCompactContainer, CaloCellContainer *theCellContainer)
Definition: CaloCompactCellTool.cxx:31
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
CaloCompactCellTool.h
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37