// It can be used successfully with Pb-Pb collisions
////////////////////////////////////////////////////////////////
+using std::endl;
+using std::cout;
ClassImp(AliITSVertexerZ)
//______________________________________________________________________
void AliITSVertexerZ::VertexZFinder(TTree *itsClusterTree){
// Defines the AliESDVertex for the current event
+ delete fCurrentVertex;
fCurrentVertex = 0;
Double_t startPos[3]={GetNominalPos()[0],GetNominalPos()[1],GetNominalPos()[2]};
Double_t startCov[6]={GetNominalCov()[0],GetNominalCov()[1],GetNominalCov()[2],
}
//_____________________________________________________________________
-Int_t AliITSVertexerZ::FindSecondPeak(TH1F* h, Int_t binmin,Int_t binmax, Float_t& secPeakPos){
+Int_t AliITSVertexerZ::FindSecondPeak(TH1F* h, Int_t binmin,Int_t binmax, Float_t& secPeakPos){
+ // Resets bin contents between binmin and binmax and then search
+ // for a second peak position
for(Int_t i=binmin-1;i<=binmax+1;i++){
h->SetBinContent(i,0.);
}