public class HpsReconParticleDriver extends ReconParticleDriver
Modifier and Type | Class and Description |
---|---|
private static class |
HpsReconParticleDriver.Constraint
Represents a type of constraint for vertex fitting.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
_patchVertexTrackParameters |
private boolean |
_storeCovTrkMomList |
protected List<org.lcsim.event.ReconstructedParticle> |
beamConMollerCandidates
Stores reconstructed Moller candidate particles generated with beam spot
constraints.
|
protected String |
beamConMollerCandidatesColName
LCIO collection name for Moller candidate particles generated with beam
spot constraints.
|
protected List<org.lcsim.event.Vertex> |
beamConMollerVertices
Stores reconstructed Moller candidate vertices generated with beam spot
constraints.
|
protected String |
beamConMollerVerticesColName
LCIO collection name for Moller candidate vertices generated with beam
spot constraints.
|
private Map<Integer,double[]> |
beamPositionMap |
private double[] |
beamPositionToUse |
private static int[] |
DOF |
private boolean |
includeUnmatchedTracksInFSP |
private boolean |
makeConversionCols |
private boolean |
makeMollerCols |
protected List<org.lcsim.event.ReconstructedParticle> |
targetConMollerCandidates
Stores reconstructed Moller candidate particles generated with target
constraints.
|
protected String |
targetConMollerCandidatesColName
LCIO collection name for Moller candidate particles generated with target
constraints.
|
protected List<org.lcsim.event.Vertex> |
targetConMollerVertices
Stores reconstructed Moller candidate vertices generated with target
constraints.
|
protected String |
targetConMollerVerticesColName
LCIO collection name for Moller candidate vertices generated with target
constraints.
|
protected List<org.lcsim.event.ReconstructedParticle> |
unconstrainedMollerCandidates
Stores reconstructed Moller candidate particles generated without
constraints.
|
protected String |
unconstrainedMollerCandidatesColName
LCIO collection name for Moller candidate particles generated without
constraints.
|
protected List<org.lcsim.event.Vertex> |
unconstrainedMollerVertices
Stores reconstructed Moller candidate vertices generated without
constraints.
|
protected String |
unconstrainedMollerVerticesColName
LCIO collection name for Moller candidate vertices generated without
constraints.
|
protected List<org.lcsim.event.ReconstructedParticle> |
unconstrainedVcCandidates |
protected String |
unconstrainedVcCandidatesColName |
protected List<org.lcsim.event.Vertex> |
unconstrainedVcVertices |
protected String |
unconstrainedVcVerticesColName |
private boolean |
useInternalVertexXYPositions |
beamConV0Candidates, beamConV0CandidatesColName, beamConV0Vertices, beamConV0VerticesColName, beamEnergy, beamPosition, beamSize, bField, cuts, debug, ecal, ELECTRON, enableTrackClusterMatchPlots, finalStateParticles, hitToRotated, hitToStrips, isMC, isMonteCarlo, matcher, MOLLER_BOT, MOLLER_TOP, POSITRON, targetConV0Candidates, targetConV0CandidatesColName, targetConV0Vertices, targetConV0VerticesColName, trackCollectionNames, unconstrainedV0Candidates, unconstrainedV0CandidatesColName, unconstrainedV0Vertices, unconstrainedV0VerticesColName, useCorrectedClusterPositionsForMatching
Constructor and Description |
---|
HpsReconParticleDriver() |
Modifier and Type | Method and Description |
---|---|
void |
findMollers(List<org.lcsim.event.ReconstructedParticle> electrons) |
void |
findV0s(List<org.lcsim.event.ReconstructedParticle> electrons,
List<org.lcsim.event.ReconstructedParticle> positrons) |
protected void |
findVertices(List<org.lcsim.event.ReconstructedParticle> electrons,
List<org.lcsim.event.ReconstructedParticle> positrons)
Creates reconstructed V0 candidate particles and vertices for electron
positron pairs using no constraints, beam constraints, and target
constraints.
|
private BilliorVertex |
fitVertex(HpsReconParticleDriver.Constraint constraint,
org.lcsim.event.ReconstructedParticle electron,
org.lcsim.event.ReconstructedParticle positron)
Fits a vertex from an electron/positron track pair using the indicated
constraint.
|
private double |
invMass(Hep3Vector p1,
Hep3Vector p2) |
private void |
makeMollerCandidates(org.lcsim.event.ReconstructedParticle topElectron,
org.lcsim.event.ReconstructedParticle botElectron) |
static org.lcsim.event.ReconstructedParticle |
makeReconstructedParticle(org.lcsim.event.ReconstructedParticle electron,
org.lcsim.event.ReconstructedParticle positron,
BilliorVertex vtxFit)
Creates a reconstructed V0 candidate particle from an electron, positron,
and billior vertex.
|
private void |
makeV0Candidates(org.lcsim.event.ReconstructedParticle electron,
org.lcsim.event.ReconstructedParticle positron) |
protected List<org.lcsim.event.ReconstructedParticle> |
particleCuts(List<org.lcsim.event.ReconstructedParticle> finalStateParticles) |
private void |
patchVertex(BilliorVertex v) |
protected void |
process(org.lcsim.event.EventHeader event)
Processes the track and cluster collections in the event into
reconstructed particles and V0 candidate particles and vertices.
|
void |
setIncludeUnmatchedTracksInFSP(boolean setUMTrks) |
void |
setMakeConversionCols(boolean input) |
void |
setMakeMollerCols(boolean input) |
void |
setMaxMollerP(double input) |
void |
setMaxVertexClusterDt(double input) |
void |
setMaxVertexP(double input) |
void |
setMinMollerChisqProb(double input) |
void |
setMinMollerP(double input) |
void |
setMinVertexChisqProb(double input) |
void |
setPatchVertexTrackParameters(boolean b) |
void |
setStoreVertexCovars(boolean input) |
void |
setUseInternalVertexXYPositions(boolean b) |
private List<BilliorTrack> |
shiftTracksToVertex(List<org.lcsim.event.ReconstructedParticle> particles,
Hep3Vector vtxPos) |
protected void |
startOfData()
Sets the default LCIO collection names if they are not already defined
previously.
|
private BilliorTrack |
toBilliorTrack(org.lcsim.event.Track track)
Converts a
Track object to a BilliorTrack
object. |
private BilliorTrack |
toBilliorTrack(org.lcsim.event.TrackState trackstate)
Converts a
TrackState object to a BilliorTrack
object. |
detectorChanged, endOfData, makeReconstructedParticles, printDebug, setBeamConV0CandidatesColName, setBeamConV0VerticesColName, setBeamPositionX, setBeamPositionY, setBeamPositionZ, setBeamSigmaX, setBeamSigmaY, setDebug, setDisablePID, setEcalClusterCollectionName, setFinalStateParticlesColName, setIsMC, setMaxElectronP, setMaxMatchChisq, setMaxMatchDt, setNSigmaPositionMatch, setOtherElectronsColName, setSnapToEdge, setTargetConV0CandidatesColName, setTargetConV0VerticesColName, setTrackClusterMatchPlots, setTrackClusterTimeOffset, setTrackCollectionName, setTrackCollectionNames, setUnconstrainedV0CandidatesColName, setUnconstrainedV0VerticesColName, setUseCorrectedClusterPositionsForMatching
protected String unconstrainedMollerCandidatesColName
protected String beamConMollerCandidatesColName
protected String targetConMollerCandidatesColName
protected String unconstrainedMollerVerticesColName
protected String beamConMollerVerticesColName
protected String targetConMollerVerticesColName
protected List<org.lcsim.event.ReconstructedParticle> unconstrainedMollerCandidates
protected List<org.lcsim.event.ReconstructedParticle> beamConMollerCandidates
protected List<org.lcsim.event.ReconstructedParticle> targetConMollerCandidates
protected List<org.lcsim.event.Vertex> unconstrainedMollerVertices
protected List<org.lcsim.event.Vertex> beamConMollerVertices
protected List<org.lcsim.event.Vertex> targetConMollerVertices
protected String unconstrainedVcCandidatesColName
protected String unconstrainedVcVerticesColName
protected List<org.lcsim.event.ReconstructedParticle> unconstrainedVcCandidates
protected List<org.lcsim.event.Vertex> unconstrainedVcVertices
private boolean makeConversionCols
private boolean makeMollerCols
private boolean includeUnmatchedTracksInFSP
private boolean useInternalVertexXYPositions
private double[] beamPositionToUse
private static final int[] DOF
private boolean _patchVertexTrackParameters
private boolean _storeCovTrkMomList
public void setMaxMollerP(double input)
public void setMinMollerP(double input)
public void setMaxVertexClusterDt(double input)
public void setMaxVertexP(double input)
public void setMinMollerChisqProb(double input)
public void setMinVertexChisqProb(double input)
public void setIncludeUnmatchedTracksInFSP(boolean setUMTrks)
public void setUseInternalVertexXYPositions(boolean b)
protected void process(org.lcsim.event.EventHeader event)
process
in class ReconParticleDriver
event
- - The event to process.public void setMakeConversionCols(boolean input)
public void setMakeMollerCols(boolean input)
public void setStoreVertexCovars(boolean input)
protected List<org.lcsim.event.ReconstructedParticle> particleCuts(List<org.lcsim.event.ReconstructedParticle> finalStateParticles)
particleCuts
in class ReconParticleDriver
public void findV0s(List<org.lcsim.event.ReconstructedParticle> electrons, List<org.lcsim.event.ReconstructedParticle> positrons)
public void findMollers(List<org.lcsim.event.ReconstructedParticle> electrons)
protected void findVertices(List<org.lcsim.event.ReconstructedParticle> electrons, List<org.lcsim.event.ReconstructedParticle> positrons)
findVertices
in class ReconParticleDriver
electrons
- - The list of electrons.positrons
- - The list of positrons.protected void startOfData()
startOfData
in class ReconParticleDriver
private BilliorVertex fitVertex(HpsReconParticleDriver.Constraint constraint, org.lcsim.event.ReconstructedParticle electron, org.lcsim.event.ReconstructedParticle positron)
constraint
- - The constraint type to use.electron
- - The electron track.positron
- - The positron track.BilliorVertex
object. mg--8/14/17--add the displaced vertex refit for the
UNCONSTRAINED and BS_CONSTRAINED fitsprivate void makeV0Candidates(org.lcsim.event.ReconstructedParticle electron, org.lcsim.event.ReconstructedParticle positron)
private void makeMollerCandidates(org.lcsim.event.ReconstructedParticle topElectron, org.lcsim.event.ReconstructedParticle botElectron)
public static org.lcsim.event.ReconstructedParticle makeReconstructedParticle(org.lcsim.event.ReconstructedParticle electron, org.lcsim.event.ReconstructedParticle positron, BilliorVertex vtxFit)
electron
- - The electron.positron
- - The positron.vtxFit
- - The billior vertex.private BilliorTrack toBilliorTrack(org.lcsim.event.Track track)
Track
object to a BilliorTrack
object.track
- - The original track.BilliorTrack
object.private BilliorTrack toBilliorTrack(org.lcsim.event.TrackState trackstate)
TrackState
object to a BilliorTrack
object.track
- - The original track stateBilliorTrack
object.public void setPatchVertexTrackParameters(boolean b)
private void patchVertex(BilliorVertex v)
private double invMass(Hep3Vector p1, Hep3Vector p2)
private List<BilliorTrack> shiftTracksToVertex(List<org.lcsim.event.ReconstructedParticle> particles, Hep3Vector vtxPos)
Copyright © 2019. All rights reserved.