Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:50

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 
0015 #include "SimDataFormats/GeneratorProducts/interface/GenRunInfoProduct.h"
0016 #include "SimDataFormats/GeneratorProducts/interface/GenFilterInfo.h"
0017 #include "SimDataFormats/GeneratorProducts/interface/GenEventInfoProduct.h"
0018 #include "SimDataFormats/GeneratorProducts/interface/GenLumiInfoProduct.h"
0019 #include "SimDataFormats/GeneratorProducts/interface/GenLumiInfoHeader.h"
0020 #include "SimDataFormats/GeneratorProducts/interface/ExternalGeneratorLumiInfo.h"
0021 #include "SimDataFormats/GeneratorProducts/interface/ExternalGeneratorEventInfo.h"
0022 
0023 #include <HepMC/GenRanges.h>
0024 
0025 //needed for backward compatibility between HepMC 2.06.xx and 2.05.yy
0026 namespace hepmc_rootio {
0027   void add_to_particles_in(HepMC::GenVertex*, HepMC::GenParticle*);
0028   void clear_particles_in(HepMC::GenVertex*);
0029 
0030   inline void weightcontainer_set_default_names(unsigned int n,
0031                                                 std::map<std::string, HepMC::WeightContainer::size_type>& names) {
0032     std::ostringstream name;
0033     for (HepMC::WeightContainer::size_type count = 0; count < n; ++count) {
0034       name.str(std::string());
0035       name << count;
0036       names[name.str()] = count;
0037     }
0038   }
0039 }  // namespace hepmc_rootio