Reading the code it looks like makeReconstructedParticles() should be happy with any instance of Cluster: the declaration is makeReconstructedParticles(List<Cluster> clusters, List<Track> tracks), and the clusters are never cast to any specific Cluster implementation. So you were right to expect that extending BaseCluster would work, and I'm not sure what the problem is; can you send the compiler or runtime error you're getting? On Fri, 3 Oct 2014, Holly Vance wrote: > Hi, > > I am looking specifically at the ReconParticleDriver.java to readjust my > corrected energy and position calculations that were output in the cluster > collection. I am running into an error that I am not sure I understand > (maybe it is simple). > > The current code is using the Cluster collection. > My output collection is HPSEcalClusterIC which is an extension as > Cluster->BaseCluster->HPSEcalClusterIC. > > The problem I am running into is that certain methods (for example: > makeReconstructedParticles()) will not take an input cluster list from my > collection. I thought when I extended it originally it would be good, but > apparently not. Do I need to write an Override to include my cluster list > type or is there a simpler solution? > > -- > Respectfully, > Holly > > ######################################################################## > Use REPLY-ALL to reply to list > > To unsubscribe from the HPS-SOFTWARE list, click the following link: > https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1 > ######################################################################## Use REPLY-ALL to reply to list To unsubscribe from the HPS-SOFTWARE list, click the following link: https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1