ATLAS Offline Software
Loading...
Searching...
No Matches
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
48 MsgStream &log)
49{
50 log << MSG::DEBUG << "TrigSpacePointCountsCnv_p4::transToPers called " << endmsg;
51
52 m_trigHistoCnv.transToPers(&transObj->pixelClusEndcapC(), &persObj->m_allTheTrigHisto2D[0], log);
53 m_trigHistoCnv.transToPers(&transObj->pixelClusBarrel(), &persObj->m_allTheTrigHisto2D[1], log);
54 m_trigHistoCnv.transToPers(&transObj->pixelClusEndcapA(), &persObj->m_allTheTrigHisto2D[2], log);
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}
#define endmsg
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current TrigSpacePointCounts
A very basic two dimensional histogram to provide storage of HLT distributions, allowing constraints ...
virtual void transToPers(const TrigSpacePointCounts *transObj, TrigSpacePointCounts_p4 *persObj, MsgStream &log)
virtual void persToTrans(const TrigSpacePointCounts_p4 *persObj, TrigSpacePointCounts *transObj, MsgStream &log)
TrigHisto2D_p1 m_allTheTrigHisto2D[3]
std::vector< unsigned int > m_droppedPixelModules
std::vector< unsigned int > m_droppedSctModules
const TrigHisto2D & pixelClusEndcapA(void) const
unsigned int sctSpBarrel(void) const
const TrigHisto2D & pixelClusBarrel(void) const
const TrigHisto2D & pixelClusEndcapC(void) const
unsigned int sctSpEndcapC(void) const
const std::vector< Identifier > & droppedPixelModules(void) const
const std::vector< Identifier > & droppedSctModules(void) const
unsigned int sctSpEndcapA(void) const