ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigInDetEventTPCnv
src
TrigHisto1DCnv_p1.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/TrigHisto1D.h
"
6
#include "
TrigInDetEventTPCnv/TrigHisto1D_p1.h
"
7
#include "
TrigInDetEventTPCnv/TrigHisto1DCnv_p1.h
"
8
9
void
TrigHisto1DCnv_p1::persToTrans
(
const
TrigHisto1D_p1
*persObj,
10
TrigHisto1D
*transObj,
11
MsgStream& log) {
12
log << MSG::DEBUG <<
"TrigHisto1DCnv_p1::persToTrans"
<<
endmsg
;
13
14
*transObj =
TrigHisto1D
(persObj->
m_nbins_x
,
15
persObj->
m_min_x
,
16
persObj->
m_max_x
,
17
persObj->
m_contents
);
18
}
19
20
//---------------------------------------------------------------
21
22
void
TrigHisto1DCnv_p1::transToPers
(
const
TrigHisto1D
*transObj,
23
TrigHisto1D_p1
*persObj,
24
MsgStream& log) {
25
log << MSG::DEBUG <<
"TrigHisto1DCnv_p1::transToPers"
<<
endmsg
;
26
27
persObj->
m_nbins_x
= transObj->
nbins_x
();
28
persObj->
m_min_x
= transObj->
min_x
();
29
persObj->
m_max_x
= transObj->
max_x
();
30
persObj->
m_contents
= transObj->
contents
();
31
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
TrigHisto1DCnv_p1.h
TrigHisto1D.h
TrigHisto1D_p1.h
TrigHisto1DCnv_p1::transToPers
virtual void transToPers(const TrigHisto1D *transObj, TrigHisto1D_p1 *persObj, MsgStream &log)
Definition
TrigHisto1DCnv_p1.cxx:22
TrigHisto1DCnv_p1::persToTrans
virtual void persToTrans(const TrigHisto1D_p1 *persObj, TrigHisto1D *transObj, MsgStream &log)
Definition
TrigHisto1DCnv_p1.cxx:9
TrigHisto1D_p1
The persistent partner of TrigHisto1D class.
Definition
TrigHisto1D_p1.h:17
TrigHisto1D_p1::m_min_x
float m_min_x
Definition
TrigHisto1D_p1.h:24
TrigHisto1D_p1::m_max_x
float m_max_x
Definition
TrigHisto1D_p1.h:25
TrigHisto1D_p1::m_nbins_x
unsigned int m_nbins_x
Definition
TrigHisto1D_p1.h:23
TrigHisto1D_p1::m_contents
std::vector< float > m_contents
Definition
TrigHisto1D_p1.h:22
TrigHisto1D
A very basic one dimensional histogram to provide storage of HLT distributions, allowing constraints ...
Definition
TrigHisto1D.h:23
TrigHisto::max_x
float max_x() const
Return the maximum along the x-axis.
Definition
TrigHisto.h:55
TrigHisto::min_x
float min_x() const
Return the minimum along the x-axis.
Definition
TrigHisto.h:50
TrigHisto::nbins_x
unsigned int nbins_x(void) const
Return the number of bins along the y-axis, not including the under and overflow.
Definition
TrigHisto.h:45
TrigHisto::contents
const std::vector< float > & contents() const
Return the bin contents of the histogram, including the under and overflow bins.
Definition
TrigHisto.h:61
Generated on
for ATLAS Offline Software by
1.17.0