X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EMCAL%2FAliEMCALTrackSegment.cxx;h=798509af2cdaa83ae2a2ef220da72bde8c35e03a;hb=7b61cd9c9d60f8fde660333037130db4e7f7e74e;hp=c04e98d1e6e2f7a41a08f7fdbb64682d0774d552;hpb=88cb7938ca21d4a80991d4e7aa564008c29340f7;p=u%2Fmrichter%2FAliRoot.git diff --git a/EMCAL/AliEMCALTrackSegment.cxx b/EMCAL/AliEMCALTrackSegment.cxx index c04e98d1e6e..798509af2cd 100644 --- a/EMCAL/AliEMCALTrackSegment.cxx +++ b/EMCAL/AliEMCALTrackSegment.cxx @@ -28,36 +28,24 @@ // --- Standard library --- // --- AliRoot header files --- - -#include "AliEMCALTrackSegment.h" +#include "AliEMCALTrackSegment.h" ClassImp(AliEMCALTrackSegment) //____________________________________________________________________________ -AliEMCALTrackSegment::AliEMCALTrackSegment( AliEMCALTowerRecPoint * eca, AliEMCALTowerRecPoint * pre, AliEMCALTowerRecPoint * hca) +AliEMCALTrackSegment::AliEMCALTrackSegment( AliEMCALRecPoint * eca) { // ctor - - if( pre ) - fPRERecPoint = pre->GetIndexInList() ; - else - fPRERecPoint = -1 ; - if( eca ) fECARecPoint = eca->GetIndexInList() ; else fECARecPoint = -1 ; - - if( hca ) - fHCARecPoint = hca->GetIndexInList() ; - else - fHCARecPoint = -1 ; - fIndexInList = -1 ; } //____________________________________________________________________________ AliEMCALTrackSegment::AliEMCALTrackSegment( const AliEMCALTrackSegment & ts) + : TObject(ts) { // Copy ctor @@ -71,48 +59,18 @@ void AliEMCALTrackSegment::Copy(TObject & obj) // Copy of a track segment into another track segment TObject::Copy(obj) ; - ( (AliEMCALTrackSegment &)obj ).fPRERecPoint = fPRERecPoint ; ( (AliEMCALTrackSegment &)obj ).fECARecPoint = fECARecPoint ; - ( (AliEMCALTrackSegment &)obj ).fHCARecPoint = fHCARecPoint ; ( (AliEMCALTrackSegment &)obj ).fIndexInList = fIndexInList ; } //____________________________________________________________________________ -void AliEMCALTrackSegment::Print(Option_t * opt) const +void AliEMCALTrackSegment::Print(Option_t *) const { // Print all information on this track Segment - - - Info("Print", "TrackSegment information:") ; + printf("Print: TrackSegment information:") ; printf("--------AliEMCALTrackSegment-------- \n"); printf("Stored at position %d\n", fIndexInList) ; - if (fPRERecPoint) - printf("PRE RecPoint # %d\n", fPRERecPoint) ; if (fECARecPoint) printf("EC RecPoint # %d\n", fECARecPoint) ; - if (fHCARecPoint) - printf("HC RecPoint # %d\n", fHCARecPoint) ; - - printf("------------------------------------ \n") ; - -} - -//____________________________________________________________________________ -void AliEMCALTrackSegment::SetPRERecPoint(AliEMCALRecPoint * pre) -{ - // gives an id from its position in the list - if( pre ) - fPRERecPoint = pre->GetIndexInList() ; - else - fPRERecPoint = -1 ; -} - -//____________________________________________________________________________ -void AliEMCALTrackSegment::SetHCARecPoint(AliEMCALRecPoint * hca) -{ - // gives an id from its position in the list - if( hca ) - fHCARecPoint = hca->GetIndexInList() ; - else - fHCARecPoint = -1 ; + printf("------------------------------------ \n") ; }