StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjMCParticleToFourVec.cxx
1 // $Id: StjMCParticleToFourVec.cxx,v 1.1 2008/11/27 07:40:07 tai Exp $
2 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
3 #include "StjMCParticleToFourVec.h"
4 
6 
7 #include "StjMCParticleList.h"
8 #include "StjFourVecList.h"
9 
10 StjFourVec StjMCParticleToFourVec::operator()(const StjMCParticle& mcparticle)
11 {
12  StjFourVec ret;
13  ret.runNumber = mcparticle.runNumber;
14  ret.eventId = mcparticle.eventId;
15  ret.type = 0;
16  ret.detectorId = 0;
17  ret.mcparticleId = mcparticle.mcparticleId;
18  ret.trackId = 0;
19  ret.towerId = 0;
20  ret.vertexZ = mcparticle.vertexZ;
21 
22  ret.pt = mcparticle.pt;
23  ret.eta = mcparticle.eta;
24  ret.phi = mcparticle.phi;
25  ret.m = mcparticle.m;
26  return ret;
27 }