ATLAS Offline Software
TrigSpacePointCountsCnv_p4.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 
9 
11  TrigSpacePointCounts* transObj,
12  MsgStream &log)
13 {
14  log << MSG::DEBUG << "TrigSpacePointCountsCnv_p4::persToTrans called " << endmsg;
15 
16  TrigHisto2D pixelClusEndcapC;
17  m_trigHistoCnv.persToTrans(&persObj->m_allTheTrigHisto2D[0], &pixelClusEndcapC, log);
18 
19  TrigHisto2D pixelClusBarrel;
20  m_trigHistoCnv.persToTrans(&persObj->m_allTheTrigHisto2D[1], &pixelClusBarrel, log);
21 
22  TrigHisto2D pixelClusEndcapA;
23  m_trigHistoCnv.persToTrans(&persObj->m_allTheTrigHisto2D[2], &pixelClusEndcapA, log);
24 
25  std::vector<Identifier> droppedPixelModules;
26  droppedPixelModules.reserve (persObj->m_droppedPixelModules.size());
27  for (unsigned int mod : persObj->m_droppedPixelModules)
28  droppedPixelModules.emplace_back (mod);
29 
30  std::vector<Identifier> droppedSctModules;
31  droppedSctModules.reserve (persObj->m_droppedSctModules.size());
32  for (unsigned int mod : persObj->m_droppedSctModules)
33  droppedSctModules.emplace_back (mod);
34 
35  *transObj = TrigSpacePointCounts (std::move(pixelClusEndcapC),
36  std::move(pixelClusBarrel),
37  std::move(pixelClusEndcapA),
38  std::move(droppedPixelModules),
39  persObj->m_sctSpEndcapC,
40  persObj->m_sctSpBarrel,
41  persObj->m_sctSpEndcapA,
42  std::move(droppedSctModules));
43 }
44 
45 
47  TrigSpacePointCounts_p4* persObj,
48  MsgStream &log)
49 {
50  log << MSG::DEBUG << "TrigSpacePointCountsCnv_p4::transToPers called " << endmsg;
51 
55 
56  persObj->m_droppedPixelModules.clear();
57  for (const Identifier& id : transObj->droppedPixelModules())
58  persObj->m_droppedPixelModules.push_back(id.get_identifier32().get_compact());
59 
60  persObj->m_sctSpEndcapC = transObj->sctSpEndcapC();
61  persObj->m_sctSpBarrel = transObj->sctSpBarrel();
62  persObj->m_sctSpEndcapA = transObj->sctSpEndcapA();
63 
64  persObj->m_droppedSctModules.clear();
65  for (const Identifier& id : transObj->droppedSctModules())
66  persObj->m_droppedSctModules.push_back(id.get_identifier32().get_compact());
67 }
TrigSpacePointCounts_p4::m_sctSpEndcapC
unsigned int m_sctSpEndcapC
Definition: TrigSpacePointCounts_p4.h:44
TrigSpacePointCounts::pixelClusBarrel
const TrigHisto2D & pixelClusBarrel(void) const
Definition: TrigSpacePointCounts.cxx:68
TrigSpacePointCounts::sctSpEndcapA
unsigned int sctSpEndcapA(void) const
Definition: TrigSpacePointCounts.cxx:88
TrigSpacePointCounts::pixelClusEndcapC
const TrigHisto2D & pixelClusEndcapC(void) const
Definition: TrigSpacePointCounts.cxx:64
TrigSpacePointCounts::sctSpEndcapC
unsigned int sctSpEndcapC(void) const
Definition: TrigSpacePointCounts.cxx:80
TrigSpacePointCountsCnv_p4::transToPers
virtual void transToPers(const TrigSpacePointCounts *transObj, TrigSpacePointCounts_p4 *persObj, MsgStream &log)
Definition: TrigSpacePointCountsCnv_p4.cxx:46
TrigSpacePointCountsCnv_p4.h
TrigSpacePointCounts::pixelClusEndcapA
const TrigHisto2D & pixelClusEndcapA(void) const
Definition: TrigSpacePointCounts.cxx:72
maskDeadModules.mod
mod
Definition: maskDeadModules.py:36
TrigSpacePointCounts::droppedPixelModules
const std::vector< Identifier > & droppedPixelModules(void) const
Definition: TrigSpacePointCounts.cxx:76
TrigSpacePointCountsCnv_p4::m_trigHistoCnv
TrigHisto2DCnv_p1 m_trigHistoCnv
Definition: TrigSpacePointCountsCnv_p4.h:40
TrigSpacePointCounts_p4.h
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigSpacePointCounts::droppedSctModules
const std::vector< Identifier > & droppedSctModules(void) const
Definition: TrigSpacePointCounts.cxx:92
TrigSpacePointCounts_p4::m_droppedSctModules
std::vector< unsigned int > m_droppedSctModules
Definition: TrigSpacePointCounts_p4.h:47
TrigSpacePointCounts::sctSpBarrel
unsigned int sctSpBarrel(void) const
Definition: TrigSpacePointCounts.cxx:84
TrigSpacePointCountsCnv_p4::persToTrans
virtual void persToTrans(const TrigSpacePointCounts_p4 *persObj, TrigSpacePointCounts *transObj, MsgStream &log)
Definition: TrigSpacePointCountsCnv_p4.cxx:10
TrigSpacePointCounts_p4::m_sctSpEndcapA
unsigned int m_sctSpEndcapA
Definition: TrigSpacePointCounts_p4.h:46
TrigSpacePointCounts_p4::m_allTheTrigHisto2D
TrigHisto2D_p1 m_allTheTrigHisto2D[3]
Definition: TrigSpacePointCounts_p4.h:42
TrigSpacePointCounts_p4::m_droppedPixelModules
std::vector< unsigned int > m_droppedPixelModules
Definition: TrigSpacePointCounts_p4.h:43
TrigSpacePointCounts_p4::m_sctSpBarrel
unsigned int m_sctSpBarrel
Definition: TrigSpacePointCounts_p4.h:45
TrigSpacePointCounts
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Old TrigSpacePointCounts
Definition: TrigInDetEventTPCnv.cxx:156
TrigHisto2D
A very basic two dimensional histogram to provide storage of HLT distributions, allowing constraints ...
Definition: Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h:24
TrigHisto2DCnv_p1::transToPers
virtual void transToPers(const TrigHisto2D *transObj, TrigHisto2D_p1 *persObj, MsgStream &log)
Definition: TrigHisto2DCnv_p1.cxx:25
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigSpacePointCounts_p4
Definition: TrigSpacePointCounts_p4.h:23
TrigSpacePointCounts
Definition: Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigSpacePointCounts.h:20
TrigHisto2DCnv_p1::persToTrans
virtual void persToTrans(const TrigHisto2D_p1 *persObj, TrigHisto2D *transObj, MsgStream &log)
Definition: TrigHisto2DCnv_p1.cxx:9
TrigSpacePointCounts.h
Identifier
Definition: IdentifierFieldParser.cxx:14