![]() |
HepPDT Reference DocumentationHepPDT |
00001 // ---------------------------------------------------------------------- 00002 // listHerwigTranslation.cc 00003 // Author: Lynn Garren 00004 // 00005 // Usage: listHerwigTranslation 00006 // 00007 // ---------------------------------------------------------------------- 00008 00009 #include <fstream> 00010 #include <iostream> 00011 #include <cstdlib> // for exit 00012 00013 #include "HepPID/ParticleIDTranslations.hh" 00014 00015 int main() 00016 { 00017 const char outfile[] = "listHerwigTranslation.out"; 00018 // open the output file 00019 std::ofstream wpdfile( outfile ); 00020 if( !wpdfile ) { 00021 std::cerr << "cannot open " << outfile << std::endl; 00022 exit(-1); 00023 } 00024 // write the particle names 00025 HepPID::writeHerwigTranslation( wpdfile ); 00026 }