]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMD.cxx
Minor changes, mostly for debugging
[u/mrichter/AliRoot.git] / FMD / AliFMD.cxx
index b80c7ee9ee4d9d926209c4d992481597126218fc..f07b1f9219f02225b30f93b767d7b52ea2c7af0f 100644 (file)
@@ -180,7 +180,7 @@ AliFMD::AliFMD(const char *name, const char *title)
   fUseDivided  = kFALSE;
   fUseAssembly = kFALSE;
   fUseGeo      = kTRUE;
-
+  
   // Initialise Hit array
   HitsArray();
   gAlice->GetMCApp()->AddHitList(fHits);
@@ -327,6 +327,14 @@ AliFMD::Init()
   //
 }
 
+//____________________________________________________________________
+void
+AliFMD::FinishEvent()
+{
+  if (fSimulator) fSimulator->EndEvent();
+}
+
+
 //====================================================================
 //
 // Graphics and event display
@@ -606,7 +614,7 @@ AliFMD::AddHit(Int_t track, Int_t *vol, Float_t *hits)
 }
 
 //____________________________________________________________________
-void 
+AliFMDHit*
 AliFMD::AddHitByFields(Int_t    track, 
                       UShort_t detector, 
                       Char_t   ring, 
@@ -662,13 +670,14 @@ AliFMD::AddHitByFields(Int_t    track,
              detector, ring, sector, strip, track, edep, hit->Edep(),
              hit->Edep() + edep);
       hit->SetEdep(hit->Edep() + edep);
-      return;
+      return hit;
     }
   }
   // If hit wasn't already registered, do so know. 
   hit = new (a[fNhits]) AliFMDHit(fIshunt, track, detector, ring, sector, 
                                  strip, x, y, z, px, py, pz, edep, pdg, t);
   fNhits++;
+  return hit;
 }
 
 //____________________________________________________________________