ATLAS Offline Software
Loading...
Searching...
No Matches
TrigCompositeCnv_p1.cxx File Reference
Include dependency graph for TrigCompositeCnv_p1.cxx:

Go to the source code of this file.

Functions

template<class T>
void copyDetails2Trans (const std::vector< std::string > &keys, const std::vector< T > &values, TrigComposite *trans, MsgStream &log)

Function Documentation

◆ copyDetails2Trans()

template<class T>
void copyDetails2Trans ( const std::vector< std::string > & keys,
const std::vector< T > & values,
TrigComposite * trans,
MsgStream & log )

Definition at line 79 of file TrigCompositeCnv_p1.cxx.

79 {
80 if (values.size() != keys.size() ) {
81 log << MSG::ERROR << "TrigCompositeCnv_p1::persToTrans: The number of values and names for do not match, problem with the stored data, while" << __PRETTY_FUNCTION__ << endmsg;
82 // the __PREETY_FUNCTION__ should give actual function name with the template so we know if this is about floats, ints ....
83 }
84 typename std::vector<T>::const_iterator vi = values.begin();
85 std::vector<std::string>::const_iterator ki = keys.begin();
86
87 for ( ; vi != values.end() and ki != keys.end(); ++ki, ++vi )
88 trans->addDetail(*ki, *vi);
89}
#define endmsg
void addDetail(const std::string &key, const T &value=T())
adds the value user the key, if they detail under that key already exists the exception is thrown If ...