public abstract class ReconParticleDriver
extends org.lcsim.util.Driver
Modifier and Type | Field and Description |
---|---|
protected List<org.lcsim.event.ReconstructedParticle> |
beamConV0Candidates
Stores reconstructed V0 candidate particles generated with beam spot constraints.
|
protected String |
beamConV0CandidatesColName
LCIO collection name for V0 candidate particles generated with beam spot constraints.
|
protected List<org.lcsim.event.Vertex> |
beamConV0Vertices
Stores reconstructed V0 candidate vertices generated with beam spot constraints.
|
protected String |
beamConV0VerticesColName
LCIO collection name for V0 candidate vertices generated with beam spot constraints.
|
protected double |
beamEnergy |
protected double[] |
beamPosition |
protected double[] |
beamSize |
protected double |
bField |
protected StandardCuts |
cuts |
protected boolean |
debug
Indicates whether debug text should be output or not.
|
private boolean |
disablePID |
(package private) HPSEcal3 |
ecal |
private String |
ecalClustersCollectionName
LCIO collection name for calorimeter clusters.
|
static int |
ELECTRON |
private List<org.lcsim.event.ReconstructedParticle> |
electrons
Stores reconstructed electron particles.
|
protected boolean |
enableTrackClusterMatchPlots |
protected List<org.lcsim.event.ReconstructedParticle> |
finalStateParticles
Stores particles reconstructed from an event.
|
private String |
finalStateParticlesColName
LCIO collection name for reconstructed particles.
|
private int |
flipSign |
(package private) org.lcsim.event.RelationalTable |
hitToRotated |
(package private) org.lcsim.event.RelationalTable |
hitToStrips |
protected boolean |
isMC |
boolean |
isMonteCarlo
Indicates whether this is Monte Carlo or data
|
(package private) TrackClusterMatcher |
matcher
Utility used to determine if a track and cluster are matched
|
private double |
MAXNSIGMAPOSITIONMATCH |
static int |
MOLLER_BOT |
static int |
MOLLER_TOP |
private String |
OtherElectronsColName |
static int |
POSITRON |
private List<org.lcsim.event.ReconstructedParticle> |
positrons
Stores reconstructed positron particles.
|
private String |
simpleName
The simple name of the class used for debug print statements.
|
protected List<org.lcsim.event.ReconstructedParticle> |
targetConV0Candidates
Stores reconstructed V0 candidate particles generated with target constraints.
|
protected String |
targetConV0CandidatesColName
LCIO collection name for V0 candidate particles generated with target constraints.
|
protected List<org.lcsim.event.Vertex> |
targetConV0Vertices
Stores reconstructed V0 candidate vertices generated with target constraints.
|
protected String |
targetConV0VerticesColName
LCIO collection name for V0 candidate vertices generated with target constraints.
|
private String |
trackCollectionName
LCIO collection name for tracks.
|
(package private) String[] |
trackCollectionNames |
protected List<org.lcsim.event.ReconstructedParticle> |
unconstrainedV0Candidates
Stores reconstructed V0 candidate particles generated without constraints.
|
protected String |
unconstrainedV0CandidatesColName
LCIO collection name for V0 candidate particles generated without constraints.
|
protected List<org.lcsim.event.Vertex> |
unconstrainedV0Vertices
Stores reconstructed V0 candidate vertices generated without constraints.
|
protected String |
unconstrainedV0VerticesColName
LCIO collection name for V0 candidate vertices generated without constraints.
|
(package private) boolean |
useCorrectedClusterPositionsForMatching |
Constructor and Description |
---|
ReconParticleDriver() |
Modifier and Type | Method and Description |
---|---|
protected void |
detectorChanged(org.lcsim.geometry.Detector detector)
Updates the magnetic field parameters to match the appropriate values for the current detector settings.
|
protected void |
endOfData() |
protected abstract void |
findVertices(List<org.lcsim.event.ReconstructedParticle> electrons,
List<org.lcsim.event.ReconstructedParticle> positrons)
Generates reconstructed V0 candidate particles and vertices from sets of positrons and electrons.
|
protected List<org.lcsim.event.ReconstructedParticle> |
makeReconstructedParticles(List<org.lcsim.event.Cluster> clusters,
List<List<org.lcsim.event.Track>> trackCollections)
Create the set of final state particles from the event tracks and clusters.
|
protected abstract List<org.lcsim.event.ReconstructedParticle> |
particleCuts(List<org.lcsim.event.ReconstructedParticle> finalStateParticles) |
protected void |
printDebug(String debugMessage)
Prints a message as per
System.out.println to the output stream if the verbose debug output option
is enabled. |
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 |
setBeamConV0CandidatesColName(String beamConV0CandidatesColName)
Sets the name of the LCIO collection for beam spot constrained V0 candidate particles.
|
void |
setBeamConV0VerticesColName(String beamConV0VerticesColName)
Sets the name of the LCIO collection for beam spot constrained V0 candidate vertices.
|
void |
setBeamPositionX(double X)
Sets the beam position in the x-direction.
|
void |
setBeamPositionY(double Y)
Sets the beam position in the y-direction in mm.
|
void |
setBeamPositionZ(double Z)
Sets the beam position in the z-direction in mm.
|
void |
setBeamSigmaX(double sigmaX)
Sets the beam size sigma in the x-direction.
|
void |
setBeamSigmaY(double sigmaY)
Sets the beam size sigma in the y-direction.
|
void |
setDebug(boolean debug)
Indicates whether verbose debug text should be written out during runtime or note.
|
void |
setDisablePID(boolean disablePID)
Disable setting the PID of an Ecal cluster.
|
void |
setEcalClusterCollectionName(String ecalClustersCollectionName)
Sets the LCIO collection name for calorimeter cluster data.
|
void |
setFinalStateParticlesColName(String finalStateParticlesColName)
Sets the name of the LCIO collection for reconstructed particles.
|
void |
setIsMC(boolean state)
Sets the condition of whether the data is Monte Carlo or not.
|
void |
setMaxElectronP(double input) |
void |
setMaxMatchChisq(double input) |
void |
setMaxMatchDt(double input) |
void |
setNSigmaPositionMatch(double nsigma)
Set the requirement on cluster-track position matching in terms of N-sigma.
|
void |
setOtherElectronsColName(String input) |
void |
setSnapToEdge(boolean val) |
void |
setTargetConV0CandidatesColName(String targetConV0CandidatesColName)
Sets the name of the LCIO collection for target constrained V0 candidate particles.
|
void |
setTargetConV0VerticesColName(String targetConV0VerticesColName)
Sets the name of the LCIO collection for target constrained V0 candidate vertices.
|
void |
setTrackClusterMatchPlots(boolean input) |
void |
setTrackClusterTimeOffset(double input) |
void |
setTrackCollectionName(String trackCollectionName)
Sets the LCIO collection name for particle track data.
|
void |
setTrackCollectionNames(String[] trackCollectionNames)
Set the names of the LCIO track collections used as input.
|
void |
setUnconstrainedV0CandidatesColName(String unconstrainedV0CandidatesColName)
Sets the name of the LCIO collection for unconstrained V0 candidate particles.
|
void |
setUnconstrainedV0VerticesColName(String unconstrainedV0VerticesColName)
Sets the name of the LCIO collection for unconstrained V0 candidate vertices.
|
void |
setUseCorrectedClusterPositionsForMatching(boolean val) |
protected void |
startOfData()
Sets the LCIO collection names to their default values if they are not already defined.
|
TrackClusterMatcher matcher
String[] trackCollectionNames
public static final int ELECTRON
public static final int POSITRON
public static final int MOLLER_TOP
public static final int MOLLER_BOT
private double MAXNSIGMAPOSITIONMATCH
HPSEcal3 ecal
protected boolean isMC
private boolean disablePID
protected StandardCuts cuts
org.lcsim.event.RelationalTable hitToRotated
org.lcsim.event.RelationalTable hitToStrips
protected boolean enableTrackClusterMatchPlots
boolean useCorrectedClusterPositionsForMatching
protected boolean debug
public boolean isMonteCarlo
private final String simpleName
private List<org.lcsim.event.ReconstructedParticle> electrons
private List<org.lcsim.event.ReconstructedParticle> positrons
protected List<org.lcsim.event.ReconstructedParticle> finalStateParticles
protected List<org.lcsim.event.ReconstructedParticle> unconstrainedV0Candidates
protected List<org.lcsim.event.ReconstructedParticle> beamConV0Candidates
protected List<org.lcsim.event.ReconstructedParticle> targetConV0Candidates
protected List<org.lcsim.event.Vertex> unconstrainedV0Vertices
protected List<org.lcsim.event.Vertex> beamConV0Vertices
protected List<org.lcsim.event.Vertex> targetConV0Vertices
private String ecalClustersCollectionName
private String trackCollectionName
private String finalStateParticlesColName
private String OtherElectronsColName
protected String unconstrainedV0CandidatesColName
protected String beamConV0CandidatesColName
protected String targetConV0CandidatesColName
protected String unconstrainedV0VerticesColName
protected String beamConV0VerticesColName
protected String targetConV0VerticesColName
protected double[] beamSize
protected double[] beamPosition
protected double bField
protected double beamEnergy
private int flipSign
public void setTrackClusterMatchPlots(boolean input)
public void setUseCorrectedClusterPositionsForMatching(boolean val)
public void setIsMC(boolean state)
isMC
- public void setBeamConV0CandidatesColName(String beamConV0CandidatesColName)
beamConV0CandidatesColName
- - The LCIO collection name.public void setBeamConV0VerticesColName(String beamConV0VerticesColName)
beamConV0VerticesColName
- - The LCIO collection name.public void setBeamPositionX(double X)
X
- - The beam position at the target in the x-direction in mm.public void setBeamSigmaX(double sigmaX)
sigmaX
- - The standard deviation of the beam width in the x-direction.public void setBeamPositionY(double Y)
Y
- - The position of the beam in the y-direction in mm.public void setBeamSigmaY(double sigmaY)
sigmaY
- - The standard deviation of the beam width in the y-direction.public void setBeamPositionZ(double Z)
Z
- - The position of the beam in the y-direction in mm.public void setDebug(boolean debug)
false
.debug
- - true
indicates that debug text should be written and false
that it
should be suppressed.public void setEcalClusterCollectionName(String ecalClustersCollectionName)
ecalClustersCollectionName
- - The LCIO collection name.public void setFinalStateParticlesColName(String finalStateParticlesColName)
finalStateParticlesColName
- - The LCIO collection name.public void setTargetConV0CandidatesColName(String targetConV0CandidatesColName)
targetConV0CandidatesColName
- - The LCIO collection name.public void setOtherElectronsColName(String input)
public void setTargetConV0VerticesColName(String targetConV0VerticesColName)
targetConV0VerticesColName
- - The LCIO collection name.public void setTrackCollectionName(String trackCollectionName)
trackCollectionName
- - The LCIO collection name.public void setUnconstrainedV0CandidatesColName(String unconstrainedV0CandidatesColName)
unconstrainedV0CandidatesColName
- - The LCIO collection name.public void setUnconstrainedV0VerticesColName(String unconstrainedV0VerticesColName)
unconstrainedV0VerticesColName
- - The LCIO collection name.public void setTrackCollectionNames(String[] trackCollectionNames)
trackCollectionNames
- Array of collection names. If not set, use all Track collections in the event.public void setNSigmaPositionMatch(double nsigma)
nsigma
- public void setDisablePID(boolean disablePID)
protected void detectorChanged(org.lcsim.geometry.Detector detector)
detectorChanged
in class org.lcsim.util.Driver
public void setMaxMatchChisq(double input)
public void setMaxElectronP(double input)
public void setMaxMatchDt(double input)
public void setTrackClusterTimeOffset(double input)
protected abstract List<org.lcsim.event.ReconstructedParticle> particleCuts(List<org.lcsim.event.ReconstructedParticle> finalStateParticles)
protected abstract void findVertices(List<org.lcsim.event.ReconstructedParticle> electrons, List<org.lcsim.event.ReconstructedParticle> positrons)
ReconParticleDriver
.electrons
- - The list of electrons.positrons
- - The list of positrons.protected List<org.lcsim.event.ReconstructedParticle> makeReconstructedParticles(List<org.lcsim.event.Cluster> clusters, List<List<org.lcsim.event.Track>> trackCollections)
clusters
- - The list of event clusters.trackCollections
- - The list of event tracks.List
collection containing all of the ReconstructedParticle
objects
generated from the argument data.protected void printDebug(String debugMessage)
System.out.println
to the output stream if the verbose debug output option
is enabled.debugMessage
- - The message to print.protected void process(org.lcsim.event.EventHeader event)
process
in class org.lcsim.util.Driver
event
- - The event to process.protected void startOfData()
startOfData
in class org.lcsim.util.Driver
protected void endOfData()
endOfData
in class org.lcsim.util.Driver
public void setSnapToEdge(boolean val)
Copyright © 2019. All rights reserved.