|
[Rivet-svn] r2386 - trunk/pyextblackhole at projects.hepforge.org blackhole at projects.hepforge.orgMon Apr 5 18:35:47 BST 2010
Author: buckley Date: Mon Apr 5 18:35:46 2010 New Revision: 2386 Log: More type mappings to Python Modified: trunk/pyext/rivet.i Modified: trunk/pyext/rivet.i ============================================================================== --- trunk/pyext/rivet.i Mon Apr 5 18:09:41 2010 (r2385) +++ trunk/pyext/rivet.i Mon Apr 5 18:35:46 2010 (r2386) @@ -19,17 +19,18 @@ %include "std_pair.i" %include "std_map.i" %template(StrList) std::vector<std::string>; - +%template(DblPair) std::pair<double, double>; +%template(DblPairList) std::vector< std::pair<double, double> >; // Histo format enum %include "Rivet/HistoFormat.hh" - // Particle ID stuff %include "Rivet/Particle.fhh" %include "Rivet/ParticleName.hh" -//%template(BeamPair) std::pair<PdgId,PdgId>; - +%template(PdgIdPair) std::pair<Rivet::PdgId,Rivet::PdgId>; +%template(PdgIdPairList) std::vector<Rivet::BeamPair>; +//%template(PdgIdPairList) std::vector< std::pair<PdgId,PdgId> >; // Logging interface %template(LogLevelMap) std::map<std::string, int>;
More information about the Rivet-svn mailing list |