10 MsgStream&
msg )
const
12 msg << MSG::DEBUG <<
"JetKeyDescriptorCnv persToTrans Begin " <<
endmsg;
15 if(
msg.level() <= MSG::VERBOSE ){
16 for ( std::vector<std::string>::const_iterator it = (persObj->
m_catStore).begin();
19 msg << MSG::VERBOSE <<
" " << *it <<
endmsg;
24 msg << MSG::ERROR <<
"Length of KeyStore and CategoryStore do not match !"
38 unsigned int index(0);
41 if(
msg.level() <= MSG::VERBOSE )
msg << MSG::VERBOSE <<
" "
49 if(
msg.level() <= MSG::VERBOSE )
msg << MSG::VERBOSE <<
" "
52 <<
" stored at index "
62 instance->getIndex (
"JetShapes",
"Timing",
true);
63 instance->getIndex (
"JetShapes",
"LArQuality",
true);
64 instance->getIndex (
"JetInfo",
"TrigJetRec",
true);
66 msg << MSG::DEBUG <<
"JetKeyDescriptorCnv persToTrans End" <<
endmsg;
73 MsgStream&
msg )
const
75 msg << MSG::DEBUG <<
"JetKeyDescriptorCnv transToPers Begin " <<
endmsg;
78 msg << MSG::DEBUG <<
" Size : " << (transObj->
m_catStore).size()
81 for ( JetKeyDescriptor::catlist_t::const_iterator it = (transObj->
m_catStore).begin();
84 if(
msg.level() <= MSG::VERBOSE )
msg << MSG::VERBOSE <<
" " << *it <<
endmsg;
89 for ( JetKeyDescriptor::storelist_t::const_iterator iti = (transObj->
m_keyStore).begin();
92 for ( JetKeyDescriptor::keystore_t::const_iterator ito = (*iti).begin();
93 ito != (*iti).end(); ++ito )
95 if(
msg.level() <= MSG::VERBOSE )
msg << MSG::VERBOSE <<
" " << *ito <<
" : " << n <<
endmsg;
101 msg << MSG::DEBUG <<
"JetKeyDescriptorCnv transToPers End" <<
endmsg;
virtual void persToTrans(const JetKeyDescriptor_p1 *persObj, JetKeyDescriptor *transObj, MsgStream &msg) const override
Method creating the transient representation of JetKeyDescriptor from its persistent representation J...
virtual void transToPers(const JetKeyDescriptor *transObj, JetKeyDescriptor_p1 *persObj, MsgStream &msg) const override
Method creating the persistent representation JetKeyDescriptor_p1 from its transient representation J...
Theses classes implement a mapping between string and index used by jets.
static JetKeyDescriptorInstance * instance()
std::vector< std::string > m_catStore
std::vector< std::string > m_keyStore
std::vector< unsigned int > m_keyStoreLength
//////////////////////////////////////////////////