ATLAS Offline Software
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 
8 
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 
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 }
TrigHisto1DCnv_p1::transToPers
virtual void transToPers(const TrigHisto1D *transObj, TrigHisto1D_p1 *persObj, MsgStream &log)
Definition: TrigHisto1DCnv_p1.cxx:22
TrigHisto1D_p1::m_contents
std::vector< float > m_contents
Definition: TrigHisto1D_p1.h:22
TrigHisto::min_x
float min_x(void) const
Return the minimum along the x-axis.
Definition: TrigHisto.h:47
TrigHisto1D.h
TrigHisto1DCnv_p1::persToTrans
virtual void persToTrans(const TrigHisto1D_p1 *persObj, TrigHisto1D *transObj, MsgStream &log)
Definition: TrigHisto1DCnv_p1.cxx:9
TrigHisto1D
A very basic one dimensional histogram to provide storage of HLT distributions, allowing constraints ...
Definition: TrigHisto1D.h:23
TrigHisto1DCnv_p1.h
TrigHisto::max_x
float max_x(void) const
Return the maximum along the x-axis.
Definition: TrigHisto.h:52
TrigHisto1D_p1.h
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigHisto1D_p1::m_max_x
float m_max_x
Definition: TrigHisto1D_p1.h:25
TrigHisto::contents
const std::vector< float > & contents(void) const
Return the bin contents of the histogram, including the under and overflow bins.
Definition: TrigHisto.h:58
TrigHisto1D_p1::m_nbins_x
unsigned int m_nbins_x
Definition: TrigHisto1D_p1.h:23
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
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
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:42