Adding MUON output to the TrackRefs files. To be used for the evaluation/comparisons...
authormartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Mar 2004 10:01:02 +0000 (10:01 +0000)
committermartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Mar 2004 10:01:02 +0000 (10:01 +0000)
MUON/AliMUONv1.cxx

index d27a48ab51650e4d2a2f55a43bcbeaa97a771797..39f2cf57ba5dcfb331ebc6ef209b822c2912bbd3 100644 (file)
@@ -547,6 +547,10 @@ void AliMUONv1::StepManager()
 
   if (idvol == -1) return;
 
+  // Filling TrackRefs file for MUON. Our Track references are the active volume of the chambers
+  if ( (gMC->IsTrackEntering() || gMC->IsTrackExiting() ) )     
+    AddTrackReference(gAlice->GetMCApp()->GetCurrentTrackNumber());
+  
    if( gMC->IsTrackEntering() ) {
      Float_t theta = fTrackMomentum.Theta();
      if ((TMath::Pi()-theta)*kRaddeg>=15.) gMC->SetMaxStep(fStepMaxInActiveGas); // We use Pi-theta because z is negative