00001 #include "Rivet/Rivet.hh" 00002 #include "Rivet/Tools/Logging.hh" 00003 #include "HepPDT/ParticleID.hh" 00004 #include <cstdlib> 00005 00006 using namespace std; 00007 using namespace Rivet; 00008 00009 int main() { 00010 Log& log = Log::getLog("Test"); 00011 00012 HepPDT::ParticleID pInfo(11); 00013 log << Log::INFO << "PID: " << pInfo.pid() << endl; 00014 if (pInfo.isHadron()) log.info("It's a hadron"); 00015 if (pInfo.isLepton()) log.info("It's a lepton"); 00016 00017 return EXIT_SUCCESS; 00018 } 00019