File indexing completed on 2024-07-03 04:18:17
0001 #include <utility>
0002 #include <vector>
0003 #include <map>
0004 #include <set>
0005
0006 #include "DataFormats/Common/interface/Wrapper.h"
0007 #include "DataFormats/Common/interface/RefVector.h"
0008
0009 #include "SimDataFormats/GeneratorProducts/interface/LHEEventProduct.h"
0010 #include "SimDataFormats/GeneratorProducts/interface/LHERunInfoProduct.h"
0011 #include "SimDataFormats/GeneratorProducts/interface/LHEXMLStringProduct.h"
0012
0013 #include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h"
0014 #include "SimDataFormats/GeneratorProducts/interface/HepMC3Product.h"
0015
0016 #include "SimDataFormats/GeneratorProducts/interface/GenRunInfoProduct.h"
0017 #include "SimDataFormats/GeneratorProducts/interface/GenFilterInfo.h"
0018 #include "SimDataFormats/GeneratorProducts/interface/GenEventInfoProduct.h"
0019 #include "SimDataFormats/GeneratorProducts/interface/GenEventInfoProduct3.h"
0020 #include "SimDataFormats/GeneratorProducts/interface/GenLumiInfoProduct.h"
0021 #include "SimDataFormats/GeneratorProducts/interface/GenLumiInfoHeader.h"
0022 #include "SimDataFormats/GeneratorProducts/interface/ExternalGeneratorLumiInfo.h"
0023 #include "SimDataFormats/GeneratorProducts/interface/ExternalGeneratorEventInfo.h"
0024
0025 #include <HepMC/GenRanges.h>
0026
0027
0028 namespace hepmc_rootio {
0029 void add_to_particles_in(HepMC::GenVertex*, HepMC::GenParticle*);
0030 void clear_particles_in(HepMC::GenVertex*);
0031
0032 inline void weightcontainer_set_default_names(unsigned int n,
0033 std::map<std::string, HepMC::WeightContainer::size_type>& names) {
0034 std::ostringstream name;
0035 for (HepMC::WeightContainer::size_type count = 0; count < n; ++count) {
0036 name.str(std::string());
0037 name << count;
0038 names[name.str()] = count;
0039 }
0040 }
0041 }