ATLAS Offline Software
Loading...
Searching...
No Matches
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}
#define endmsg
virtual void transToPers(const TrigHisto1D *transObj, TrigHisto1D_p1 *persObj, MsgStream &log)
virtual void persToTrans(const TrigHisto1D_p1 *persObj, TrigHisto1D *transObj, MsgStream &log)
The persistent partner of TrigHisto1D class.
unsigned int m_nbins_x
std::vector< float > m_contents
A very basic one dimensional histogram to provide storage of HLT distributions, allowing constraints ...
Definition TrigHisto1D.h:23
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