HepPDT Reference Documentation

HepPDT

listParticleNames.cc

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

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