StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StJetMaker
mcparticles
StjMCParticlePrint.cxx
1
// $Id: StjMCParticlePrint.cxx,v 1.1 2008/11/27 07:40:06 tai Exp $
2
// Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
3
#include "StjMCParticlePrint.h"
4
5
#include <iostream>
6
7
ClassImp(
StjMCParticlePrint
)
8
9
using namespace std;
10
11
void
StjMCParticlePrint
::operator()(const StjMCParticleList &mcList)
12
{
13
for
(StjMCParticleList::const_iterator it = mcList.begin(); it != mcList.end(); ++it) {
14
print(*it);
15
}
16
}
17
18
void
StjMCParticlePrint::print(
const
StjMCParticle
& mc)
19
{
20
cout
21
<< mc.runNumber <<
" "
22
<< mc.eventId <<
" "
23
<< mc.mcparticleId <<
" "
24
<< mc.pdg <<
" "
25
<< mc.firstMotherId <<
" "
26
<< mc.lastMotherId <<
" "
27
<< mc.firstDaughterId <<
" "
28
<< mc.lastDaughterId <<
" "
29
<< mc.pt <<
" "
30
<< mc.eta <<
" "
31
<< mc.phi <<
" "
32
<< mc.m <<
" "
33
<< mc.e <<
" "
34
<< mc.status <<
" "
35
<< mc.vertexZ <<
" "
36
<< endl;
37
38
}
StjMCParticlePrint
Definition:
StjMCParticlePrint.h:14
StjMCParticle
Definition:
StjMCParticleList.h:12
Generated by
1.8.5