]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSvFast.cxx
New class to make V2 clusters starting from digits or hits (fast simulation). Origin...
[u/mrichter/AliRoot.git] / PHOS / AliPHOSvFast.cxx
index ae016144bf5d2c1a849aad9fefc5c7776ccc88b4..e95d707dc3bc240d1749ad3afabe0f9e7fca98c2 100644 (file)
@@ -35,8 +35,6 @@
 
 // --- Standard library ---
 
-#include <stdio.h>
-
 // --- AliRoot header files ---
 #include "AliPHOSFastRecParticle.h"
 #include "AliPHOSGeometry.h"
@@ -44,7 +42,6 @@
 #include "AliPHOSGetter.h"
 #include "AliRun.h"
 #include "AliConst.h"
-#include "AliMC.h"
 
 ClassImp(AliPHOSvFast)
 
@@ -357,8 +354,8 @@ Int_t AliPHOSvFast::MakeType(AliPHOSFastRecParticle & rp )
   else
     test = rp.GetPdgCode() ; 
 
-  cout << " SHOULD NOT BE USED until values of probabilities are properly set " << endl ;
-  assert(1==0) ;    // NB: ALL VALUES SHOLD BE CHECKED !!!!
+  Info("MakeType", "SHOULD NOT BE USED until values of probabilities are properly set ") ;
+  assert(1==0) ;    // NB: ALL VALUES SHOULD BE CHECKED !!!!
   switch (test) { 
 
   case 22:    // it's a photon              // NB: ALL VALUES SHOLD BE CHECKED !!!!
@@ -482,8 +479,6 @@ void AliPHOSvFast::StepManager(void)
 {
   // Only verifies if the particle reaches PHOS and stops the tracking 
 
-  Int_t primary =  gAlice->GetPrimary( gAlice->CurrentTrack() ); 
-
   TLorentzVector lv ; 
   gMC->TrackPosition(lv) ;
   TVector3 pos = lv.Vect() ; 
@@ -504,7 +499,6 @@ void AliPHOSvFast::StepManager(void)
     TParticle * part = new TParticle(gMC->TrackPid(), 0,-1,-1,-1,-1, pTrack, lv)  ;
         
     AliPHOSFastRecParticle rp(*part) ;
-    rp.SetPrimary(primary) ; 
 
     // Adds the response of PHOS to the particle
     MakeRecParticle(modid, pos, rp) ;