|
ATLAS Offline Software
|
Go to the documentation of this file.
18 #include "GaudiKernel/GaudiException.h"
27 if ( (!trans) || (!pers) ) {
28 throw GaudiException(
"CaloRingsCnv_p1::persToTrans called with NULL pers or trans!",
"CaloRingsCnv_p1::persToTrans", StatusCode::FAILURE);
34 unsigned int layerNumber = 0;
35 unsigned int ringNumber = 0;
37 for (
unsigned int i = 0;
i < pers->
m_nRings.size(); ++
i) {
39 std::vector<CaloCell_ID::CaloSample>
layers;
40 for (
unsigned int j = 0; j < pers->
m_nLayers[
i]; ++j) {
57 if ( (!trans) || (!pers) ) {
58 throw GaudiException(
"CaloRingsCnv_p1::transToPers called with NULL pers or trans!",
"CaloRingsCnv_p1::transToPers", StatusCode::FAILURE);
69 for (
unsigned int i = 0;
i < trans->
size(); ++
i) {
71 for (
unsigned int j = 0; j < trans->
at(
i).m_rings.
size(); ++j) {
75 for (
unsigned int k = 0;
k < trans->
at(
i).m_layers.
size(); ++
k) {
float & at(unsigned int i)
RingSet ///.
std::vector< unsigned int > m_nRings
virtual void transToPers(const CaloRings *transObj, CaloRings_p1 *persObj, MsgStream &msg)
Method creating the persistent representation CaloRings_p1 from its transient representation CaloRing...
RingSet & at(unsigned int i)
std::vector< float > m_rings
std::vector< float > m_rings
Ring information.
std::vector< unsigned int > m_nLayers
std::vector< CaloCell_ID::CaloSample > m_layers
virtual void persToTrans(const CaloRings_p1 *persObj, CaloRings *transObj, MsgStream &msg)
Method creating the transient representation of CaloRings from its persistent representation CaloRing...
std::vector< float > m_deltaEta
std::vector< int > m_layers
void addRingSet(unsigned int numberOfRings, std::vector< CaloCell_ID::CaloSample > &layers, float deltaEta, float deltaPhi)
std::vector< float > m_deltaPhi