+
+
+void AliESDfriendTrack::SetTPCOut(const AliExternalTrackParam ¶m) {
+ //
+ // backup TPC out track
+ //
+ delete fTPCOut;
+ fTPCOut=new AliExternalTrackParam(param);
+}
+void AliESDfriendTrack::SetITSOut(const AliExternalTrackParam ¶m) {
+ //
+ // backup ITS out track
+ //
+ delete fITSOut;
+ fITSOut=new AliExternalTrackParam(param);
+}
+void AliESDfriendTrack::SetTRDIn(const AliExternalTrackParam ¶m) {
+ //
+ // backup TRD in track
+ //
+ delete fTRDIn;
+ fTRDIn=new AliExternalTrackParam(param);
+}
+
+void AliESDfriendTrack::SetITSIndices(Int_t* indices, Int_t n){
+
+ //
+ // setting fITSindex
+ // instantiating the pointer if still NULL
+ //
+
+ fnMaxITScluster = n;
+ AliDebug(2,Form("fnMaxITScluster = %d",fnMaxITScluster));
+ if (fITSindex == 0x0){
+ fITSindex = new Int_t[fnMaxITScluster];
+ }
+ for (Int_t i = 0; i < fnMaxITScluster; i++){
+ fITSindex[i] = indices[i];
+ }
+}
+
+void AliESDfriendTrack::SetTPCIndices(Int_t* indices, Int_t n){
+
+ //
+ // setting fTPCindex
+ // instantiating the pointer if still NULL
+ //
+
+ fnMaxTPCcluster = n;
+ AliDebug(2,Form("fnMaxTPCcluster = %d",fnMaxTPCcluster));
+ if (fTPCindex == 0x0){
+ fTPCindex = new Int_t[fnMaxTPCcluster];
+ }
+ for (Int_t i = 0; i < fnMaxTPCcluster; i++){
+ fTPCindex[i] = indices[i];
+ }
+}
+
+void AliESDfriendTrack::SetTRDIndices(Int_t* indices, Int_t n){
+
+ //
+ // setting fTRDindex
+ // instantiating the pointer if still NULL
+ //
+
+ fnMaxTRDcluster = n;
+ AliDebug(2,Form("fnMaxTRDcluster = %d",fnMaxTRDcluster));
+ if (fTRDindex == 0x0){
+ fTRDindex = new Int_t[fnMaxTRDcluster];
+ }
+ for (Int_t i = 0; i < fnMaxTRDcluster; i++){
+ fTRDindex[i] = indices[i];
+ }
+}
+