This class is done to fit an axis throught the calorimeter hit. It has to be applied to the x and y view independently. The axis fitting routine is optimized for two purpose: to fit non interacting patterns and to fit interacting patterns. USAGE: float toll = 0.8; tolerance around the track CaloAxis *cax = new CaloAxis(); cax->FitShower(event->GetCaloLevel1(), 0, toll); // non int. cax->FitAxis(event->GetCaloLevel1(), 0, toll); // int. CaloAxis *cay = new CaloAxis(); cay->FitShower(event->GetCaloLevel1(), 1, toll); // non int. cay->FitAxis(event->GetCaloLevel1(), 1, toll); // non int.