#include "AliITSLoader.h"
#include "AliITSMultReconstructor.h"
#include "AliITSRecPointContainer.h"
+#include "AliRunLoader.h"
const Float_t AliITSVertexer::fgkPipeRadius = 3.0;
//______________________________________________________________________
AliITSVertexer::AliITSVertexer():AliVertexer(),
-fLadders(),
+fLadders(NULL),
fLadOnLay2(0),
fComputeMultiplicity(kFALSE),
fDetTypeRec(NULL),
for(Int_t i=0;i<nosingleclus;i++){
ths[i] = multReco.GetCluster(i)[0];
phs[i] = multReco.GetCluster(i)[1];
- labelss[i] = multReco.GetCluster(i)[2];
+ labelss[i] = (Int_t)multReco.GetCluster(i)[2];
}
Short_t nfcL1 = multReco.GetNFiredChips(0);
Short_t nfcL2 = multReco.GetNFiredChips(1);
void AliITSVertexer::SetLaddersOnLayer2(Int_t ladwid){
// Calculates the array of ladders on layer 2 to be used with a
// given ladder on layer 1
+ if(ladwid == fLadOnLay2 && fLadders)return;
fLadOnLay2=ladwid;
Int_t ladtot1=AliITSgeomTGeo::GetNLadders(1);
if(fLadders) delete [] fLadders;
}
}
-#include "AliRunLoader.h"
//______________________________________________________________________
void AliITSVertexer::Init(TString filename){
// analysis of an entire file
AliRunLoader *rl = AliRunLoader::Instance();
if(!rl){
- Fatal("AliITSVertexer","Run Loader not found");
+ AliFatal("Run Loader not found");
+ return;
}
if (fLastEvent < 0) SetLastEvent(rl->GetNumberOfEvents()-1);