public class PromcUtil extends Object
| Constructor and Description |
|---|
PromcUtil() |
| Modifier and Type | Method and Description |
|---|---|
static LParticle[] |
getLParticleArray(ProMCHeaderFile.ProMCHeader header,
ProMC.ProMCEvent.Particles pa,
int status,
double pTmin,
double etaMax)
Fill particles from ProMC and apply into array after some cuts if available.
|
static List<LParticle> |
getLParticleList(ProMCHeaderFile.ProMCHeader header,
ProMC.ProMCEvent.Particles pa,
int status,
double pTmin,
double etaMax)
Fill particles from ProMC and apply some cuts if available.
|
static HEParticle |
getParticle(ProMC.ProMCEvent.Particles pa,
int energy_unit,
int length_unit,
int j)
For a given momentum unit, create a Lorentz particle object at the position j.
|
static List<ParticleD> |
getParticleDList(double unit,
proio.model.Mc.VarintPackedParticles pa,
double pTmin,
double etaMax)
Fill particles from ProIO and apply some cuts if available.
|
static List<ParticleD> |
getParticleDList(double unit,
proio.model.Mc.VarintPackedParticles pa,
int status,
double pTmin,
double etaMax)
Fill particles from ProIO and apply some cuts if available.
|
static List<ParticleD> |
getParticleDList(ProMCHeaderFile.ProMCHeader header,
ProMC.ProMCEvent.Particles pa,
double pTmin,
double etaMax)
Fill particles from ProMC from a typical NLO program, and apply some cuts if available.
|
static List<ParticleD> |
getParticleDList(ProMCHeaderFile.ProMCHeader header,
ProMC.ProMCEvent.Particles pa,
int status,
double pTmin,
double etaMax)
Fill particles from ProMC and apply some cuts if available.
|
static List<ParticleF> |
getParticleFList(ProMCHeaderFile.ProMCHeader header,
ProMC.ProMCEvent.Particles pa,
double pTmin,
double etaMax)
Fill particles from ProMC from a typical NLO program, and apply some cuts if available.
|
static List<ParticleF> |
getParticleFList(ProMCHeaderFile.ProMCHeader header,
ProMC.ProMCEvent.Particles pa,
int status,
double pTmin,
double etaMax)
Fill particles from ProMC and apply some cuts if available.
|
static LParticle |
getPosition(ProMC.ProMCEvent.Particles pa,
int unit,
int j)
For a given space/time unit, create a particle with postions X, Y,Z,Time.
|
public static HEParticle getParticle(ProMC.ProMCEvent.Particles pa, int energy_unit, int length_unit, int j)
pa - particle record from a ProMC fileenergy_unit - momentum / energy unit used to create a 4-momentum from a varint (int64)length_unit - length unit used to create (x,y,z,t) from a varint (int64)j - position of the particle in the ProMC recordpublic static LParticle getPosition(ProMC.ProMCEvent.Particles pa, int unit, int j)
pa - particle record from a ProMC file.unit - space/time lenght unit used to convert a varint to a value.j - position of particle in the recordpublic static List<LParticle> getLParticleList(ProMCHeaderFile.ProMCHeader header, ProMC.ProMCEvent.Particles pa, int status, double pTmin, double etaMax)
header - header from ProMC filepa - particle record from ProMC filestatus - status code for particles to be accepted. For final state, use status==1pTmin - minimum pT cut for filled particles. If pTmin less than, do not apply any pT cutetaMax - maximum Eta (pseudorapidity) cut on filled particles. If etaMax greater than 1000, no any Eta cut is applied.public static LParticle[] getLParticleArray(ProMCHeaderFile.ProMCHeader header, ProMC.ProMCEvent.Particles pa, int status, double pTmin, double etaMax)
header - header from ProMC filepa - particle record from ProMC filestatus - status code for particles to be accepted. For final state, use status==1pTmin - minimum pT cut for filled particles. If pTmin less than, do not apply any pT cutetaMax - maximum Eta (pseudorapidity) cut on filled particles. If etaMax greater than 1000, no any Eta cut is applied.public static List<ParticleF> getParticleFList(ProMCHeaderFile.ProMCHeader header, ProMC.ProMCEvent.Particles pa, int status, double pTmin, double etaMax)
header - header from ProMC filepa - particle record from ProMC filestatus - status code for particles to be accepted. For final state, use status==1pTmin - minimum pT cut for filled particles. If pTmin less than, do not apply any pT cutetaMax - maximum Eta (pseudorapidity) cut on filled particles. If etaMax greater than 1000, no any Eta cut is applied.public static List<ParticleF> getParticleFList(ProMCHeaderFile.ProMCHeader header, ProMC.ProMCEvent.Particles pa, double pTmin, double etaMax)
header - header from ProMC filepa - particle record from ProMC filepTmin - minimum pT cut for filled particles. If pTmin less than, do not apply any pT cutetaMax - maximum Eta (pseudorapidity) cut on filled particles. If etaMax greater than 1000, no any Eta cut is applied.public static List<ParticleD> getParticleDList(ProMCHeaderFile.ProMCHeader header, ProMC.ProMCEvent.Particles pa, double pTmin, double etaMax)
header - header from ProMC filepa - particle record from ProMC filepTmin - minimum pT cut for filled particles. If pTmin less than, do not apply any pT cutetaMax - maximum Eta (pseudorapidity) cut on filled particles. If etaMax greater than 1000, no any Eta cut is applied.public static List<ParticleD> getParticleDList(double unit, proio.model.Mc.VarintPackedParticles pa, double pTmin, double etaMax)
unit - energy unit used to convert varint type of px,py,pz,e to floatspa - particle record from ProIO filepTmin - minimum pT cut for filled particles. If pTmin less than, do not apply any pT cutetaMax - maximum Eta (pseudorapidity) cut on filled particles. If etaMax greater than 1000, no any Eta cut is applied.public static List<ParticleD> getParticleDList(ProMCHeaderFile.ProMCHeader header, ProMC.ProMCEvent.Particles pa, int status, double pTmin, double etaMax)
header - header from ProMC filepa - particle record from ProMC filestatus - status code for particles to be accepted. For final state, use status==1pTmin - minimum pT cut for filled particles. If pTmin less than, do not apply any pT cutetaMax - maximum Eta (pseudorapidity) cut on filled particles. If etaMax greater than 1000, no any Eta cut is applied.public static List<ParticleD> getParticleDList(double unit, proio.model.Mc.VarintPackedParticles pa, int status, double pTmin, double etaMax)
unit - energy unit for varint to float conversionspa - particle record from ProIO filestatus - status code for particles to be accepted. For final state, use status==1pTmin - minimum pT cut for filled particles. If pTmin less than, do not apply any pT cutetaMax - maximum Eta (pseudorapidity) cut on filled particles. If etaMax greater than 1000, no any Eta cut is applied.Jas4pp 1.5 © Java Analysis Studio for Particle Physics