HepPDT Reference Documentation

HepPDT

convertTemporaryMap.cc

Go to the documentation of this file.
00001 // ----------------------------------------------------------------------
00002 //
00003 // convertTemporaryMap.cc
00004 // Author: Lynn Garren, Walter Brown
00005 //
00006 // ----------------------------------------------------------------------
00007 
00008 #include "HepPDT/defs.h"
00009 #include "HepPDT/ParticleID.hh"
00010 #include "HepPDT/ParticleDataTable.hh"
00011 #include "HepPDT/ParticleData.hh"
00012 #include "HepPDT/TempParticleData.hh"
00013 #include "HepPDT/Version.hh"
00014 
00015 namespace HepPDT {
00016 
00017 void ParticleDataTable::convertTemporaryMap( TempMap & tempPDT, std::ostream & )
00018 {
00019   std::map<ParticleID,TempParticleData>::iterator cit;
00020   // first loop and create a PD map with empty DecayData
00021   for( cit=tempPDT.begin(); cit != tempPDT.end(); ++cit ) {
00022     TempParticleData & tempd = cit->second;
00023     // create PD and add it to the list
00024     ParticleData pd( tempd );
00025     // now create ParticleData and add it to the map
00026     addParticle( pd );
00027   }
00028 }
00029 
00030 }       // HepPDT

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