00001
00002
00003 #include "StjMCParticlePrint.h"
00004
00005 #include <iostream>
00006
00007 ClassImp(StjMCParticlePrint)
00008
00009 using namespace std;
00010
00011 void StjMCParticlePrint::operator()(const StjMCParticleList &mcList)
00012 {
00013 for(StjMCParticleList::const_iterator it = mcList.begin(); it != mcList.end(); ++it) {
00014 print(*it);
00015 }
00016 }
00017
00018 void StjMCParticlePrint::print(const StjMCParticle& mc)
00019 {
00020 cout
00021 << mc.runNumber << " "
00022 << mc.eventId << " "
00023 << mc.mcparticleId << " "
00024 << mc.pdg << " "
00025 << mc.firstMotherId << " "
00026 << mc.lastMotherId << " "
00027 << mc.firstDaughterId << " "
00028 << mc.lastDaughterId << " "
00029 << mc.pt << " "
00030 << mc.eta << " "
00031 << mc.phi << " "
00032 << mc.m << " "
00033 << mc.e << " "
00034 << mc.status << " "
00035 << mc.vertexZ << " "
00036 << endl;
00037
00038 }