12 CollectionParameterMap::CollectionParameterMap(
const std::string& keyName ,
16 _valueName( valueName ) ,
27 _valueName( valueName ) ,
49 sstr <<
" CollectionParameterMap::init() - inconsistent parameter sizes for "
56 unsigned nKeys = keys.
size() ;
57 for(
unsigned i=0;i<nKeys;++i){
Base exception class for LCIO - all other exceptions extend this.
virtual LCParameters & parameters()=0
Parameters defined for this collection.
~CollectionParameterMap()
Update the collection parameters keyName and valueName when going out of scope.
virtual void setValues(const std::string &key, const IntVec &values)=0
Set integer values for the given key.
virtual StringVec & getStringVals(const std::string &key, StringVec &values) const =0
Adds all string values for the given key to values.
The generic collection used in LCIO.
virtual IntVec & getIntVals(const std::string &key, IntVec &values) const =0
Adds all integer values for the given key to values.
virtual const LCParameters & getParameters() const =0
Parameters defined for this collection.
CollectionParameterMap()=default
void init(const EVENT::LCCollection *col)
EVENT::LCCollection * _col