ATLAS Offline Software
Loading...
Searching...
No Matches
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}
#define endmsg
Athena::TPCnvVers::Old TrigHisto2D
virtual void persToTrans(const TrigHisto2D_p1 *persObj, TrigHisto2D *transObj, MsgStream &log)
virtual void transToPers(const TrigHisto2D *transObj, TrigHisto2D_p1 *persObj, MsgStream &log)
The persistent partner of the TrigHisto2D class.
unsigned int m_nbins_y
unsigned int m_nbins_x
std::vector< float > m_contents
A very basic two dimensional histogram to provide storage of HLT distributions, allowing constraints ...
float min_y(void) const
Return the minimum along the y-axis.
unsigned int nbins_y(void) const
Return the number of bins along the y-axis, not including the under and overflow.
float max_y(void) const
Return the maximum along the y-axis.
float max_x(void) const
Return the maximum along the x-axis.
Definition TrigHisto.h:52
float min_x(void) const
Return the minimum along the x-axis.
Definition TrigHisto.h:47
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
const std::vector< float > & contents(void) const
Return the bin contents of the histogram, including the under and overflow bins.
Definition TrigHisto.h:58