Skip to content

Commit

Permalink
Print() methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalbos committed Feb 17, 2017
1 parent 3b8fdd1 commit 7bd9043
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
21 changes: 2 additions & 19 deletions gastpc/apps/EventRecordDump.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -72,25 +72,6 @@ void ParseCmdLineOptions(int argc, char** argv)
}


void PrintMCGenInfo(gastpc::MCGenInfo* mcgi)
{
genie::NtpMCEventRecord* gmcrec = mcgi->GetGeneratorRecord();
std::cout << *gmcrec << std::endl;
}


void PrintMCParticle(gastpc::MCParticle* mcp)
{
std::cout << "MCParticle " << mcp->GetMCID() << std::endl;
std::cout << " - PDG code: " << mcp->GetPDGCode() << std::endl;
std::cout << " - Initial vertex: (" << mcp->GetInitialXYZT().GetX() << ", "
<< mcp->GetInitialXYZT().GetY() << ", "
<< mcp->GetInitialXYZT().GetX() << ", "
<< mcp->GetInitialXYZT().GetT() << ")"
<< std::endl;
}


int main(int argc, char* argv[])
{
ParseCmdLineOptions(argc, argv);
Expand All @@ -108,5 +89,7 @@ int main(int argc, char* argv[])
std::cout << evtrec << std::endl;
}

r.CloseFile();

return EXIT_SUCCESS;
}
2 changes: 1 addition & 1 deletion gastpc/evtrec/EventRecord.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ namespace gastpc {
void EventRecord::Print(std::ostream& os) const
{
os << "EVENT RECORD " << this->GetEventID()
<< "(RUN " << this->GetRunID() << ")" << std::endl;
<< " (RUN " << this->GetRunID() << ")" << std::endl;

for (gastpc::MCGenInfo* mcgi: this->GetMCGenInfo()) {
genie::NtpMCEventRecord* gmcrec = mcgi->GetGeneratorRecord();
Expand Down

0 comments on commit 7bd9043

Please sign in to comment.