public final class MipStub extends Object implements Cluster
EmcalMipStubs
,
GarfieldTrackFinder
Modifier and Type | Field and Description |
---|---|
double |
angleBaseDir |
double[] |
base |
private double |
baseError |
private Cluster |
cluster |
int |
debugLevel |
double[] |
dir |
private double |
dirXYError |
private double |
dirZError |
double |
energy |
private double |
energyError |
private boolean |
isEndcap |
(package private) static double |
k_cm |
double |
kappa |
private double |
kappaError |
private MCParticle[] |
mcParticles |
private int |
minLayer |
private int |
nHits |
Constructor and Description |
---|
MipStub()
Default constructor
|
MipStub(double[] p,
double[] d,
double ka,
int nHit,
boolean isNdCap,
int minLay)
standard constructor
|
MipStub(double[] p,
double[] d,
double ka,
int nHit,
boolean isNdCap,
int minLay,
Cluster cluster)
Standard constructor that also takes a reference to the original cluster
(temporary, D.O.)
|
Modifier and Type | Method and Description |
---|---|
int |
charge() |
(package private) void |
debug() |
double |
getAngleBaseDir() |
double |
getBaseError() |
List<CalorimeterHit> |
getCalorimeterHits()
The hits that have been combined to this cluster.
|
List<Cluster> |
getClusters()
The clusters that have been combined to this cluster.
|
double[] |
getDirectionError()
Covariance matrix of the direction (3 Parameters)
|
double |
getDirXYError() |
double |
getDirZError() |
double |
getEnergy()
Energy of the cluster.
|
double |
getEnergyError()
Energy error of the cluster.
|
double[] |
getHitContributions()
Returns the energy contribution of the hits
Runs parallel to the CalorimeterHitVec from getCalorimeterHits()
|
double |
getIPhi()
Intrinsic direction of cluster at position: Phi.
|
double |
getITheta()
Intrinsic direction of cluster at position: Theta.
|
double |
getKappaError() |
MCParticle[] |
getMCParticles() |
int |
getMinLayer() |
int |
getnHits() |
int |
getParticleId() |
double |
getPhi() |
double[] |
getPosition()
Position of the cluster.
|
double[] |
getPositionError()
Covariance matrix of the position (6 Parameters)
|
double[] |
getShape()
Shape parameters (6 Parameters) - TO DO: definition
|
int |
getSize()
Number of hits in cluster.
|
double[] |
getSubdetectorEnergies()
A vector that holds the energy observed in a particular subdetectors.
|
int |
getType()
Flagword that defines the type of cluster.
|
boolean |
isEndcap() |
double |
kappa() |
private void |
normalizeDir()
normalizes the direction vector.
|
List |
plot()
prepares graphic presentation of a mipstub by providing a list of positions
this plot routine uses quite a bit of memory.
|
private void |
setAngleBaseDir()
calculates the angle from base to the dir vector in the xy plane.
|
private void |
setBaseError() |
private void |
setDirError()
calculates a rough error estimate for direction vector in XY plane
based on
nHits only |
void |
setEnergyError(double energyError) |
void |
setKappa(double ka) |
private void |
setKappaError() |
void |
setMCParticles(MCParticle[] mcParticles) |
public double[] base
public double[] dir
public double kappa
private double baseError
private double dirXYError
private double dirZError
private double kappaError
private boolean isEndcap
public double energy
private double energyError
public double angleBaseDir
static final double k_cm
public int debugLevel
private int nHits
private int minLayer
private MCParticle[] mcParticles
private Cluster cluster
public MipStub()
public MipStub(double[] p, double[] d, double ka, int nHit, boolean isNdCap, int minLay)
p
- base, which is also the entrance point into the ECALd
- direction of MIP at entrance pointka
- curvature (one over curvature radius)nHit
- number of hits in clusterisNdCap
- boolean, true if MipStub and its cluster is in EndcapminLay
- Minimum layer in ECAL (approx. 0 for MIPS)public MipStub(double[] p, double[] d, double ka, int nHit, boolean isNdCap, int minLay, Cluster cluster)
p
- base, which is also the entrance point into the ECALd
- direction of MIP at entrance pointka
- curvature (one over curvature radius)nHit
- number of hits in clusterisNdCap
- boolean, true if MipStub and its cluster is in EndcapminLay
- Minimum layer in ECAL (approx. 0 for MIPS)cluster
- Cluster from which this MIP stub was createdpublic double kappa()
public int getnHits()
public double getPhi()
public double getAngleBaseDir()
public double getDirXYError()
public double getDirZError()
public double getBaseError()
public double getKappaError()
public int getMinLayer()
public boolean isEndcap()
public int charge()
public MCParticle[] getMCParticles()
public double getEnergyError()
Cluster
getEnergyError
in interface Cluster
public void setEnergyError(double energyError)
public void setMCParticles(MCParticle[] mcParticles)
public void setKappa(double ka)
private void normalizeDir()
GarfieldHelix
xy-projection of dir is of length one.GarfieldHelix
private void setAngleBaseDir()
private void setDirError()
nHits
onlyprivate void setBaseError()
private void setKappaError()
void debug()
public List plot()
public int getType()
Cluster
public double[] getSubdetectorEnergies()
Cluster
getSubdetectorEnergies
in interface Cluster
public double[] getShape()
Cluster
public double[] getPositionError()
Cluster
getPositionError
in interface Cluster
public double[] getPosition()
Cluster
getPosition
in interface Cluster
public double getITheta()
Cluster
public double getIPhi()
Cluster
public double[] getHitContributions()
Cluster
getHitContributions
in interface Cluster
public double getEnergy()
Cluster
public double[] getDirectionError()
Cluster
getDirectionError
in interface Cluster
public List<Cluster> getClusters()
Cluster
getClusters
in interface Cluster
public List<CalorimeterHit> getCalorimeterHits()
Cluster
getCalorimeterHits
in interface Cluster
CalorimeterHit
public int getSize()
Cluster
public int getParticleId()
getParticleId
in interface Cluster
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.