In the code below, the double ec is defined, but the ec is not used in the later procedure
// Simulate an ion track.
tr.NewTrack(0., 0., 0., 0., 0., 1., 0.);
// Loop over the clusters.
double xc, yc, zc, tc, ec, ekin;
int ne = 0;
while (tr.GetCluster(xc, yc, zc, tc, ne, ec, ekin)) {
// Simulate electron and ion drift lines starting
// from the cluster position.
// Scale the induced current by the number of electron/ion pairs
// in the cluster.
drift.SetElectronSignalScalingFactor(ne);
drift.DriftElectron(xc, yc, zc, tc);
drift.SetHoleSignalScalingFactor(ne);
drift.DriftHole(xc, yc, zc, tc);
}