]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSVertexerFast.cxx
Fixed includes and scope of a string
[u/mrichter/AliRoot.git] / ITS / AliITSVertexerFast.cxx
index 293074f0f65907c35b240e7cb55c902d71a7afb6..80428d8e08c7961bf90c39d34c45bc98f03a041a 100644 (file)
@@ -30,6 +30,9 @@
 // Origin: masera@to.infn.it     25/09/2003                            //
 //                                                                     //
 /////////////////////////////////////////////////////////////////////////
+
+using std::endl;
+using std::cout;
 ClassImp(AliITSVertexerFast)
 
 
@@ -65,8 +68,7 @@ fSmear(0)
 //______________________________________________________________________
 AliITSVertexerFast::~AliITSVertexerFast(){
   // Destructor
-  if(fSmear)delete [] fSmear;
-  fSmear = 0;
+  delete [] fSmear;
 }
 
 //______________________________________________________________________
@@ -88,6 +90,7 @@ AliESDVertex* AliITSVertexerFast::FindVertexForCurrentEvent(TTree *itsClusterTre
     vrtx[k] = gRandom->Gaus(vrttrue[k],fSmear[k]);
   }
   fCurrentVertex = new AliESDVertex(vrtx,fSmear,"Smeared Generated Vertex");
+  fCurrentVertex->SetTitle("vertexer: smearMC");
   return fCurrentVertex;
   
 }