#include "AliITSReconstructor.h"
#include "AliRun.h"
#include "AliRawReader.h"
-#include "AliITSDetTypeRec.h"
+#include "AliESDEvent.h"
+#include "AliESDpid.h"
#include "AliITSgeom.h"
#include "AliITSLoader.h"
#include "AliITStrackerMI.h"
#include "AliITStrackerV2.h"
#include "AliITStrackerSA.h"
-#include "AliITSVertexerIons.h"
#include "AliITSVertexerFast.h"
#include "AliITSVertexerFixed.h"
#include "AliITSVertexer3D.h"
#include "AliITSVertexerZ.h"
#include "AliITSVertexerCosmics.h"
-#include "AliESDEvent.h"
#include "AliITSInitGeometry.h"
#include "AliITSTrackleterSPDEff.h"
-
+#include "AliITSMultReconstructor.h"
ClassImp(AliITSReconstructor)
// destructor
if(fDetTypeRec) delete fDetTypeRec;
}
+//____________________________________________________________________________
+void AliITSReconstructor::GetPidSettings(AliESDpid *ESDpid) {
+ //
+ // pass PID settings from AliITSRecoParam to AliESDpid
+ //
+ Int_t pidOpt = GetRecoParam()->GetPID();
+ if(pidOpt==1){
+ AliDebug(1,"ITS LandauFitPID option has been selected\n");
+ ESDpid->SetITSPIDmethod(AliESDpid::kITSLikelihood);
+ }
+ else{
+ AliDebug(1,"ITS default PID\n");
+ ESDpid->SetITSPIDmethod(AliESDpid::kITSTruncMean);
+ }
+}
//______________________________________________________________________
void AliITSReconstructor::Init() {
// Initalize this constructor bet getting/creating the objects
fDetTypeRec->SetDefaultClusterFindersV2(kTRUE);
fDetTypeRec->DigitsToRecPoints(rawReader,clustersTree);
}
+
+//_____________________________________________________________________________
+AliTrackleter* AliITSReconstructor::CreateMultFinder() const
+{
+ // create the SPD trackeleter for mult. reconstruction
+ AliITSMultReconstructor* multReco = new AliITSMultReconstructor();
+ multReco->SetHistOn(kFALSE);
+ multReco->SetDetTypeRec(fDetTypeRec);
+ return multReco;
+}
+
//_____________________________________________________________________________
AliTracker* AliITSReconstructor::CreateTrackleter() const
{
sat->SetMinNPoints(GetRecoParam()->GetMinNPointsSA());
}
- Int_t pidOpt = GetRecoParam()->GetPID();
-
- AliITSReconstructor* nc = const_cast<AliITSReconstructor*>(this);
- /*
- if(pidOpt==1){
- Info("FillESD","ITS LandauFitPID option has been selected\n");
- nc->fItsPID = new AliITSpidESD2();
- }
- else{
- Info("FillESD","ITS default PID\n");
- Double_t parITS[] = {79.,0.13, 5.}; //IB: this is "pp tuning"
- nc->fItsPID = new AliITSpidESD1(parITS);
- }
- */
return tracker;
}
{
// create a ITS vertexer
- AliITSVertexer *vptr;
+ AliITSVertexer *vptr = NULL;
Int_t vtxOpt = GetRecoParam()->GetVertexer();
if(vtxOpt==3){
- AliInfo("AliITSVertexerIons has been selected");
- vptr = new AliITSVertexerIons();
+ AliFatal("Option AliITSVertexerIons is no longer supported");
+ return vptr;
}
else if(vtxOpt==4){
Double_t smear[3]={GetRecoParam()->GetVertexerFastSmearX(),
GetRecoParam()->GetVertexerFastSmearY(),
GetRecoParam()->GetVertexerFastSmearZ()};
- AliInfo("AliITSVertexerFast has been selected");
+ AliDebug(1,"AliITSVertexerFast has been selected");
vptr = new AliITSVertexerFast(smear);
}
else if(vtxOpt==1){
- AliInfo("AliITSVertexerZ has been selected");
+ AliDebug(1,"AliITSVertexerZ has been selected");
vptr = new AliITSVertexerZ();
}
else if(vtxOpt==2){
- AliInfo("AliITSVertexerCosmics has been selected");
+ AliDebug(1,"AliITSVertexerCosmics has been selected");
vptr = new AliITSVertexerCosmics();
}
else if(vtxOpt==5){
- AliInfo("Vertex is fixed in the position of the TDI\n");
+ AliDebug(1,"Vertex is fixed in the position of the TDI\n");
vptr = new AliITSVertexerFixed("TDI");
}
else if(vtxOpt==6){
- AliInfo("Vertex is fixed in the position of the TED\n");
+ AliDebug(1,"Vertex is fixed in the position of the TED\n");
vptr = new AliITSVertexerFixed("TED");
}
else {
vtxr->SetDCACut(dcacut);
Int_t pileupAlgo=GetRecoParam()->GetSPDVertexerPileupAlgo();
vtxr->SetPileupAlgo(pileupAlgo);
- AliInfo(Form("AliITSVertexer3D with pileup algo %d has been selected",pileupAlgo));
+ AliDebug(1,Form("AliITSVertexer3D with pileup algo %d has been selected",pileupAlgo));
vptr = vtxr;
}
vptr->SetDetTypeRec(fDetTypeRec);
//_____________________________________________________________________________
void AliITSReconstructor::FillESD(TTree * /*digitsTree*/, TTree * /*clustersTree*/,
- AliESDEvent* esd) const
+ AliESDEvent* /* esd */) const
{
// make PID, find V0s and cascade
/* Now done in AliESDpid