CMS 3D CMS Logo

Functions

hepmc_rootio Namespace Reference

Functions

void weightcontainer_set_default_names (unsigned int n, std::map< std::string, HepMC::WeightContainer::size_type > &names)

Function Documentation

void hepmc_rootio::weightcontainer_set_default_names ( unsigned int  n,
std::map< std::string, HepMC::WeightContainer::size_type > &  names 
) [inline]

Definition at line 69 of file classes.h.

References prof2calltree::count, n, and mergeVDriftHistosByStation::name.

                                                                                                                        {
      std::ostringstream name;
      for ( HepMC::WeightContainer::size_type count = 0; count<n; ++count ) 
      { 
      name.str(std::string());
      name << count;
      names[name.str()] = count;
      }
  }