Detailed actions:
Initialize COMMONS.
Loop along TPC tracks at the calorimeter face with electromagnetic hypothesis mark.
Loops along ECAL and HCAL hits to select and collect hits at the six cell distances from predicted helix for ECAL and three cell distances for HCAL.
Hits analysis along the track.
Analysis starts from case when the collected cluster energy is in range around input energy. All hits are getting the hard assignment to this track.
Then if energy more then input - showers overlapping. The proportional subtraction and hard assignment were made for the cluster hits that were added at the second iteration to get exact energy of the cluster. The hard assignment for cluster core were made also.
ADD HERE AN ADDITIONAL TREATMENT FOR SMALL ENERGY OF CLUSTER.
Next TPC tracks at the calorimeter face.