ATLAS Offline Software
Functions
TrigCompositeCnv_p1.cxx File Reference
#include "TrigCombinedEvent/TrigComposite.h"
#include "TrigCombinedEventTPCnv/TrigComposite_p1.h"
#include "TrigCombinedEventTPCnv/TrigCompositeCnv_p1.h"
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 }
TrigComposite::addDetail
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 ...
Definition: TrigComposite.cxx:89
python.Bindings.values
values
Definition: Control/AthenaPython/python/Bindings.py:805
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798