ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigInDetEventTPCnv
src
TrigSpacePointCountsCnv_p3.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrigInDetEvent/TrigSpacePointCounts.h
"
6
#include "
TrigInDetEventTPCnv/TrigSpacePointCounts_p3.h
"
7
#include "
TrigInDetEventTPCnv/TrigSpacePointCountsCnv_p3.h
"
8
9
10
void
TrigSpacePointCountsCnv_p3::persToTrans
(
const
TrigSpacePointCounts_p3
* persObj,
11
TrigSpacePointCounts
* transObj,
12
MsgStream &log)
13
{
14
log << MSG::DEBUG <<
"TrigSpacePointCountsCnv_p3::persToTrans called "
<<
endmsg
;
15
16
TrigHisto2D
pixelClusEndcapC;
17
m_trigHistoCnv
.persToTrans(&persObj->
m_pixelClusEndcapC
, &pixelClusEndcapC, log);
18
19
TrigHisto2D
pixelClusBarrel;
20
m_trigHistoCnv
.persToTrans(&persObj->
m_pixelClusBarrel
, &pixelClusBarrel, log);
21
22
TrigHisto2D
pixelClusEndcapA;
23
m_trigHistoCnv
.persToTrans(&persObj->
m_pixelClusEndcapA
, &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
46
void
TrigSpacePointCountsCnv_p3::transToPers
(
const
TrigSpacePointCounts
* transObj,
47
TrigSpacePointCounts_p3
* persObj,
48
MsgStream &log)
49
{
50
log << MSG::DEBUG <<
"TrigSpacePointCountsCnv_p3::transToPers called "
<<
endmsg
;
51
52
m_trigHistoCnv
.transToPers(&transObj->
pixelClusEndcapC
(), &persObj->
m_pixelClusEndcapC
, log);
53
m_trigHistoCnv
.transToPers(&transObj->
pixelClusBarrel
(), &persObj->
m_pixelClusBarrel
, log);
54
m_trigHistoCnv
.transToPers(&transObj->
pixelClusEndcapA
(), &persObj->
m_pixelClusEndcapA
, 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
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
TrigSpacePointCounts
Athena::TPCnvVers::Old Athena::TPCnvVers::Current Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Current TrigSpacePointCounts
Definition
TrigInDetEventTPCnv.cxx:156
TrigSpacePointCountsCnv_p3.h
TrigSpacePointCounts_p3.h
TrigSpacePointCounts.h
TrigHisto2D
A very basic two dimensional histogram to provide storage of HLT distributions, allowing constraints ...
Definition
Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h:24
TrigSpacePointCountsCnv_p3::m_trigHistoCnv
TrigHisto2DCnv_p1 m_trigHistoCnv
Definition
TrigSpacePointCountsCnv_p3.h:45
TrigSpacePointCountsCnv_p3::transToPers
virtual void transToPers(const TrigSpacePointCounts *transObj, TrigSpacePointCounts_p3 *persObj, MsgStream &log)
Definition
TrigSpacePointCountsCnv_p3.cxx:46
TrigSpacePointCountsCnv_p3::persToTrans
virtual void persToTrans(const TrigSpacePointCounts_p3 *persObj, TrigSpacePointCounts *transObj, MsgStream &log)
Definition
TrigSpacePointCountsCnv_p3.cxx:10
TrigSpacePointCounts_p3
Definition
TrigSpacePointCounts_p3.h:23
TrigSpacePointCounts_p3::m_sctSpEndcapA
unsigned int m_sctSpEndcapA
Definition
TrigSpacePointCounts_p3.h:37
TrigSpacePointCounts_p3::m_sctSpBarrel
unsigned int m_sctSpBarrel
Definition
TrigSpacePointCounts_p3.h:36
TrigSpacePointCounts_p3::m_pixelClusEndcapC
TrigHisto2D_p1 m_pixelClusEndcapC
Definition
TrigSpacePointCounts_p3.h:31
TrigSpacePointCounts_p3::m_sctSpEndcapC
unsigned int m_sctSpEndcapC
Definition
TrigSpacePointCounts_p3.h:35
TrigSpacePointCounts_p3::m_pixelClusEndcapA
TrigHisto2D_p1 m_pixelClusEndcapA
Definition
TrigSpacePointCounts_p3.h:33
TrigSpacePointCounts_p3::m_pixelClusBarrel
TrigHisto2D_p1 m_pixelClusBarrel
Definition
TrigSpacePointCounts_p3.h:32
TrigSpacePointCounts_p3::m_droppedSctModules
std::vector< unsigned int > m_droppedSctModules
Definition
TrigSpacePointCounts_p3.h:38
TrigSpacePointCounts_p3::m_droppedPixelModules
std::vector< unsigned int > m_droppedPixelModules
Definition
TrigSpacePointCounts_p3.h:34
TrigSpacePointCounts
Definition
Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigSpacePointCounts.h:20
TrigSpacePointCounts::pixelClusEndcapA
const TrigHisto2D & pixelClusEndcapA(void) const
Definition
TrigSpacePointCounts.cxx:72
TrigSpacePointCounts::sctSpBarrel
unsigned int sctSpBarrel(void) const
Definition
TrigSpacePointCounts.cxx:84
TrigSpacePointCounts::pixelClusBarrel
const TrigHisto2D & pixelClusBarrel(void) const
Definition
TrigSpacePointCounts.cxx:68
TrigSpacePointCounts::pixelClusEndcapC
const TrigHisto2D & pixelClusEndcapC(void) const
Definition
TrigSpacePointCounts.cxx:64
TrigSpacePointCounts::sctSpEndcapC
unsigned int sctSpEndcapC(void) const
Definition
TrigSpacePointCounts.cxx:80
TrigSpacePointCounts::droppedPixelModules
const std::vector< Identifier > & droppedPixelModules(void) const
Definition
TrigSpacePointCounts.cxx:76
TrigSpacePointCounts::droppedSctModules
const std::vector< Identifier > & droppedSctModules(void) const
Definition
TrigSpacePointCounts.cxx:92
TrigSpacePointCounts::sctSpEndcapA
unsigned int sctSpEndcapA(void) const
Definition
TrigSpacePointCounts.cxx:88
Identifier
Definition
IdentifierFieldParser.cxx:14
Generated on
for ATLAS Offline Software by
1.17.0