Skip to content
Snippets Groups Projects
Commit 002f1ec1 authored by Sergey Gorbunov's avatar Sergey Gorbunov Committed by Volker Friese
Browse files

get rid of the hardcoded target position in CbmKFParticleFinder

parent 1f4ffd12
No related branches found
No related tags found
1 merge request!1066KF: fixes in KFParticleFinder according to the new TOF geometry
......@@ -9,6 +9,7 @@
#include "CbmKFParticleFinder.h"
#include "CbmEvent.h"
#include "CbmKF.h"
#include "CbmKFParticleFinderPID.h"
#include "CbmKFVertex.h"
#include "CbmL1PFFitter.h"
......@@ -125,6 +126,11 @@ InitStatus CbmKFParticleFinder::Init()
}
fCbmPrimVertex = (CbmVertex*) ioman->GetObject("PrimaryVertex.");
auto& target = CbmKF::Instance()->vTargets[0];
const std::array<float, 3> targetXYZ {(float) target.x, (float) target.y, (float) target.z};
fTopoReconstructor->SetTarget(targetXYZ);
return kSUCCESS;
}
......
......@@ -231,7 +231,7 @@ CbmKFTrackQa::CbmKFTrackQa(const char* name, Int_t iVerbose, TString outFileName
float yMax[NTofHisto2D] = {14., 14.};
Int_t yBins[NTofHisto2D] = {1600, 1600};
TString profName[NTofProfiles] = {"MatchEff", "Mismatch", "No match"};
TString profName[NTofProfiles] = {"MatchEff", "Mismatch", "NoMatch"};
TString subdirs[14] = {"AllTracks", "e", "mu", "pi", "K", "p", "Fragments", "Mismatch", "GhostTrack",
"WrongTofPoint", "d", "t", "He3", "He4"};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment