Hello all. This is mildly related to the discussion in today's meeting.
I think it would be good to have a general interface for energy
calibration, so that reconstruction code can be decoupled from
all the fiddly aspects of energy calibration code. I suggest two
interfaces:
org.lcsim.util.event.ParticleEnergyCalibration
org.lcsim.util.event.ClusterEnergyCalibration
which would look like:
public interface ParticleEnergyCalibration {
public double energy(ReconstructedParticle part);
}
public interface ClusterEnergyCalibration {
public double energy(Cluster clus);
}
Thoughts?
Cheers,
Mat.
|