ATLAS Offline Software
TrigHisto2DCnv_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  TrigHisto2D *transObj,
11  MsgStream& log) {
12  log << MSG::DEBUG << "TrigHisto2DCnv_p1::persToTrans" << endmsg;
13 
14  *transObj = TrigHisto2D (persObj->m_nbins_x,
15  persObj->m_min_x,
16  persObj->m_max_x,
17  persObj->m_nbins_y,
18  persObj->m_min_y,
19  persObj->m_max_y,
20  persObj->m_contents);
21 }
22 
23 //---------------------------------------------------------------
24 
26  TrigHisto2D_p1 *persObj,
27  MsgStream& log) {
28  log << MSG::DEBUG << "TrigHisto2DCnv_p1::transToPers" << endmsg;
29 
30  persObj->m_nbins_x = transObj->nbins_x();
31  persObj->m_min_x = transObj->min_x();
32  persObj->m_max_x = transObj->max_x();
33  persObj->m_nbins_y = transObj->nbins_y();
34  persObj->m_min_y = transObj->min_y();
35  persObj->m_max_y = transObj->max_y();
36  persObj->m_contents = transObj->contents();
37 }
TrigHisto2D_p1::m_max_y
float m_max_y
Definition: TrigHisto2D_p1.h:29
TrigHisto::min_x
float min_x(void) const
Return the minimum along the x-axis.
Definition: TrigHisto.h:47
TrigHisto2D_p1::m_contents
std::vector< float > m_contents
Definition: TrigHisto2D_p1.h:23
TrigHisto2D
Athena::TPCnvVers::Old TrigHisto2D
Definition: TrigInDetEventTPCnv.cxx:116
TrigHisto2D_p1::m_min_y
float m_min_y
Definition: TrigHisto2D_p1.h:28
TrigHisto2D.h
TrigHisto2D_p1
The persistent partner of the TrigHisto2D class.
Definition: TrigHisto2D_p1.h:17
TrigHisto2D_p1::m_nbins_y
unsigned int m_nbins_y
Definition: TrigHisto2D_p1.h:27
TrigHisto2D_p1::m_max_x
float m_max_x
Definition: TrigHisto2D_p1.h:26
TrigHisto2D::nbins_y
unsigned int nbins_y(void) const
Return the number of bins along the y-axis, not including the under and overflow.
Definition: Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h:63
TrigHisto::max_x
float max_x(void) const
Return the maximum along the x-axis.
Definition: TrigHisto.h:52
TrigHisto2D_p1.h
TrigHisto2D::min_y
float min_y(void) const
Return the minimum along the y-axis.
Definition: Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h:68
TrigHisto2D_p1::m_min_x
float m_min_x
Definition: TrigHisto2D_p1.h:25
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
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
TrigHisto2D_p1::m_nbins_x
unsigned int m_nbins_x
Definition: TrigHisto2D_p1.h:24
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
TrigHisto2D::max_y
float max_y(void) const
Return the maximum along the y-axis.
Definition: Trigger/TrigEvent/TrigInDetEvent/TrigInDetEvent/TrigHisto2D.h:73
TrigHisto2DCnv_p1.h
TrigHisto2DCnv_p1::persToTrans
virtual void persToTrans(const TrigHisto2D_p1 *persObj, TrigHisto2D *transObj, MsgStream &log)
Definition: TrigHisto2DCnv_p1.cxx:9
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