HepPDT Reference Documentation

HepPDT

listPDGTranslation.cc

Go to the documentation of this file.
00001 // ----------------------------------------------------------------------
00002 // listPDGTranslation.cc
00003 // Author: Lynn Garren
00004 //
00005 // Usage:  listPDGTranslation 
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[] = "listPDGTranslation.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::writePDGTranslation( wpdfile );
00026 }

Generated on Fri Dec 4 14:05:23 2009 for HepPDT by  doxygen 1.4.7