- Int_t n=ev->GetNumberOfTracks();
- cout<<"Number of tracks: "<<n<<endl;
-
- ev->SetESDfriend(evf); //Attach the friend to the ESD
-
- // Now the attached information can be accessed via pointer to ESD.
- // Example: indices of the TPC clusters associated with the track number 0.
- if (n > 0) {
- const AliESDtrack *t=ev->GetTrack(0);
- Int_t idx[AliESDfriendTrack::kMaxTPCcluster];
- n=t->GetTPCclusters(idx);
- cout<<"Track number 0"<<endl;
- cout<<" Number of TPC clusters: "<<n<<endl;
- cout<<" Index of the 7th TPC cluster: "<<idx[7]<<endl;
-
- // Example: track points associated with the track number 0.
- const AliTrackPointArray *pa=t->GetTrackPointArray();
- if (pa != 0) {
- n=pa->GetNPoints();
- const Float_t *x=pa->GetX();
- cout<<" Number of track points: "<<n<<endl;
- if (n>7)
+ Int_t ntr=ev->GetNumberOfTracks();
+ cout<<"Number of tracks: "<<ntr<<endl;
+ // Now the attached information can be accessed via pointer to ESD.
+ // Example: indices of the TPC clusters associated with the track number 0.
+ if (ntr > 0) {
+ ev->SetESDfriend(evf); //Attach the friend to the ESD
+ const AliESDtrack *t=ev->GetTrack(0);
+ Int_t idx[AliESDfriendTrack::kMaxTPCcluster];
+ n=t->GetTPCclusters(idx);
+ cout<<"Number of friend tracks: "<<evf->GetNumberOfTracks() <<endl;
+ cout<<"Track number 0"<<endl;
+ cout<<" Number of TPC clusters: "<<n<<endl;
+ cout<<" Index of the 1st TPC cluster: " <<idx[1]<<endl;
+ UChar_t map=t->GetITSClusterMap();
+ cout<<" ITS cluster map (from SPDs to SSDs):\n";
+ for (Int_t k=0; k<6; k++) printf(" Bit %d: %d\n",k,(map&(1<<k))==(1<<k)) <<' ';
+
+ // Example: track points associated with the track number 0.
+ const AliTrackPointArray *pa=t->GetTrackPointArray();
+ if (pa != 0) {
+ n=pa->GetNPoints();
+ const Float_t *x=pa->GetX();
+ cout<<" Number of track points: "<<n<<endl;
+ if (n>7)