- {
- esdTrack = fESD -> GetMuonTrack(iTrack);
-
- if( esdTrack->ContainTrackerData() && esdTrack->GetMatchTrigger() > 0)
- {
- if (fIsCosmicData)
- {
- // Beginnig of long stuff to check the number of trigger hit (to only keep muon trigger and cut cosmic showers)
- Int_t nTriggerHit = 0;
- Int_t nTriggerHitStrip[8] = {0, 0, 0, 0,
- 0, 0, 0, 0};
- UShort_t triggerPattern[8] = {esdTrack->GetTriggerX1Pattern(), esdTrack->GetTriggerX2Pattern(), esdTrack->GetTriggerX3Pattern(), esdTrack->GetTriggerX4Pattern(),
- esdTrack->GetTriggerY1Pattern(), esdTrack->GetTriggerY2Pattern(), esdTrack->GetTriggerY3Pattern(), esdTrack->GetTriggerY4Pattern()};
-
- for (Int_t ii = 0; ii < 8; ii++)
- {
- UShort_t pattern = triggerPattern[ii];
- Int_t binaryValue[16] = {0, 0, 0, 0,
- 0, 0, 0, 0,
- 0, 0, 0, 0,
- 0, 0, 0, 0};
-
- for (Int_t jj = 15; jj >= 0; jj--)
- {
- Int_t base = 1;
- for (Int_t bb = 0; bb < jj; bb++)
- base *= 2;
-
- if (pattern/base == 1)
- {
- binaryValue[jj] = 1;
- pattern = pattern - base;
- }
- }
- }
-
- for (Int_t ii = 0; ii < 8; ii++)
- nTriggerHit += nTriggerHitStrip[ii];
- // End of long stuff
-
-
- // Important part
- if (nTriggerHit < 10)
- {
- AliMUONESDInterface::ESDToMUON(*esdTrack, track);
- fTrackParams = track.GetTrackParamAtCluster();
- TrackParamLoop(); //!<Loop on trackParam.
- }
- }
-
- // No trigger cut is required for non-cosmic data
- else
- {
- AliMUONESDInterface::ESDToMUON(*esdTrack, track);
- fTrackParams = track.GetTrackParamAtCluster();
- TrackParamLoop(); //!<Loop on trackParam.
- }
- }
- }
+ {
+ esdTrack = fESD -> GetMuonTrack(iTrack);
+
+ if(esdTrack->ContainTrackerData() && esdTrack->GetMatchTrigger() > 0)
+ {
+ AliMUONESDInterface::ESDToMUON(*esdTrack, track);
+ fTrackParams = track.GetTrackParamAtCluster();
+ TrackParamLoop(); //!<Loop on trackParam.
+ fNbrUsableTracks += 1;
+ }
+ }
+ }