Skip to content
Snippets Groups Projects
Commit 98799aa9 authored by Bastian Schlag's avatar Bastian Schlag
Browse files

move property declaration in header

parent 2c473c2e
No related branches found
No related tags found
No related merge requests found
...@@ -80,6 +80,8 @@ public: ...@@ -80,6 +80,8 @@ public:
ActsAdaptiveMultiPriVtxFinderTool(const std::string& type, const std::string& name, ActsAdaptiveMultiPriVtxFinderTool(const std::string& type, const std::string& name,
const IInterface* parent); const IInterface* parent);
using InDet::IVertexFinder::findVertex;
virtual std::pair<xAOD::VertexContainer*, xAOD::VertexAuxContainer*> virtual std::pair<xAOD::VertexContainer*, xAOD::VertexAuxContainer*>
findVertex(const EventContext& ctx, const TrackCollection* trackTES) const override; findVertex(const EventContext& ctx, const TrackCollection* trackTES) const override;
...@@ -113,47 +115,46 @@ private: ...@@ -113,47 +115,46 @@ private:
std::shared_ptr<VertexFinder> m_vertexFinder = nullptr; std::shared_ptr<VertexFinder> m_vertexFinder = nullptr;
ServiceHandle<MagField::IMagFieldSvc> m_fieldServiceHandle; ServiceHandle<MagField::IMagFieldSvc> m_fieldServiceHandle;
ToolHandle<IActsTrackingGeometryTool> m_trackingGeometryTool{this, "TrackingGeometryTool", "ActsTrackingGeometryTool"}; ToolHandle<IActsTrackingGeometryTool> m_trackingGeometryTool{this, "TrackingGeometryTool", "", "ActsTrackingGeometryTool"};
ToolHandle< InDet::IInDetTrackSelectionTool > m_trkFilter; ToolHandle<InDet::IInDetTrackSelectionTool> m_trkFilter{this, "InDetTrackSelection", "", "InDetTrackSelectionTool"};
SG::ReadCondHandleKey<InDet::BeamSpotData> m_beamSpotKey {this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot"};
SG::ReadCondHandleKey<InDet::BeamSpotData> m_beamSpotKey { this, "BeamSpotKey", "BeamSpotData", "SG key for beam spot" };
// Configuration variables // Configuration variables
// For details check ACTS documentation // For details check ACTS documentation
// //
// Annealing tool config // Annealing tool config
std::vector<double> m_annealingTemps; DoubleArrayProperty m_annealingTemps{this, "annealingTemps", {8.0, 4.0, 2.0, 1.4142136, 1.2247449, 1.0}, "Annealing temperatures"};
double m_annealingCutOff; DoubleProperty m_annealingCutOff{this, "annealingCutOff", 9., "Annealing cut-off value"};
// Fitter config variables // Fitter config variables
unsigned int m_fitterMaxIterations; UnsignedIntegerProperty m_fitterMaxIterations{this, "fitterMaxIterations", 30, "Vertex fitter max. iterations"};
double m_fitterMaxDistToLinPoint; DoubleProperty m_fitterMaxDistToLinPoint{this, "fitterMaxDistToLinPoint", 0.5, "Vertex fitter max. distance to LinPoint"};
double m_fitterMaxRelativeShift; DoubleProperty m_fitterMaxRelativeShift{this, "fitterMaxRelativeShift", 0.01, "Vertex fitter max. relative shift"};
bool m_fitterDoSmoothing; BooleanProperty m_fitterDoSmoothing{this, "fitterDoSmoothing", true, "Vertex fitter doSmoothing"};
// Finder config variables // Finder config variables
bool m_useBeamConstraint; BooleanProperty m_useBeamConstraint{this, "useBeamConstraint", true, "Use beam constraint"};
double m_tracksMaxZinterval; DoubleProperty m_tracksMaxZinterval{this, "tracksMaxZinterval", 1., "Tracks max. Z-interval"};
double m_tracksMaxSignificance; DoubleProperty m_tracksMaxSignificance{this, "tracksMaxSignificance", 5., "Tracks max. significance"};
double m_maxVertexChi2; DoubleProperty m_maxVertexChi2{this, "maxVertexChi2", 18.42, "Max vertex chi2"};
bool m_doRealMultiVertex; BooleanProperty m_doRealMultiVertex{this, "doRealMultiVertex", true, "Do real multivertex fit"};
bool m_useFastCompatibility; BooleanProperty m_useFastCompatibility{this, "useFastCompatibility", true, "Use fast compatibility estimation"};
double m_maxMergeVertexSignificance; DoubleProperty m_maxMergeVertexSignificance{this, "maxMergeVertexSignificance", 3., "Max merge vertex significance"};
double m_minWeight; DoubleProperty m_minWeight{this, "minWeight", 0.0001, "Min track weight for finder and fitter"};
int m_maxIterations; UnsignedIntegerProperty m_maxIterations{this, "maxIterations", 100, "Vertex finder max. iterations"};
bool m_addSingleTrackVertices; BooleanProperty m_addSingleTrackVertices{this, "addSingleTrackVertices", false, "Add single-track vertices"};
bool m_do3dSplitting; BooleanProperty m_do3dSplitting{this, "do3dSplitting", false, "Do 3d-splitting"};
double m_maximumVertexContamination; DoubleProperty m_maximumVertexContamination{this, "maximumVertexContamination", 0.5, "Max. vertex contamination"};
double m_looseConstrValue; DoubleProperty m_looseConstrValue{this, "looseConstrValue", 1e+8, "Loose constraint value"};
bool m_refitAfterBadVertex; BooleanProperty m_refitAfterBadVertex{this, "refitAfterBadVertex", true, "Run multivertex refit after bad vertex"};
bool m_useVertexCovForIPEstimation; BooleanProperty m_useVertexCovForIPEstimation{this, "useVertexCovForIPEstimation", false, "Use seed vertex cov for IPEstimation"};
bool m_useSeedConstraint; BooleanProperty m_useSeedConstraint{this, "useSeedConstraint", true, "Use seed constraint in fit"};
// Final vertex selection variables // Final vertex selection variables
double m_finalCutMaxVertexChi2; DoubleProperty m_finalCutMaxVertexChi2{this, "finalCutMaxVertexChi2", 18.42, "Final cut max. vertex chi2"};
// Gaussian seed finder variables // Gaussian seed finder variables
double m_gaussianMaxD0Significance; DoubleProperty m_gaussianMaxD0Significance{this, "gaussianMaxD0Significance", 3.5, "Gaussian seeder max d0 track significance"};
double m_gaussianMaxZ0Significance; DoubleProperty m_gaussianMaxZ0Significance{this, "gaussianMaxDZSignificance", 12.0, "Gaussian seeder max z0 track significance"};
// IP Estimator config // IP Estimator config
int m_ipEstMaxIterations; UnsignedIntegerProperty m_ipEstMaxIterations{this, "ipEstMaxIterations", 20, "IpEstimator max. iterations"};
double m_ipEstPrecision; DoubleProperty m_ipEstPrecision{this, "ipEstPrecision", 1e-10, "IpEstimator precision"};
}; };
......
...@@ -43,65 +43,8 @@ namespace ...@@ -43,65 +43,8 @@ namespace
ActsAdaptiveMultiPriVtxFinderTool::ActsAdaptiveMultiPriVtxFinderTool(const std::string& type, const std::string& name, ActsAdaptiveMultiPriVtxFinderTool::ActsAdaptiveMultiPriVtxFinderTool(const std::string& type, const std::string& name,
const IInterface* parent) const IInterface* parent)
: base_class(type, name, parent), : base_class(type, name, parent),
m_fieldServiceHandle("AtlasFieldSvc", name), m_fieldServiceHandle("AtlasFieldSvc", name)
m_trkFilter("InDet::InDetTrackSelection"), {}
m_annealingTemps({8.0, 4.0, 2.0, 1.4142136, 1.2247449, 1.0}),
m_annealingCutOff(9.),
m_fitterMaxIterations(30),
m_fitterMaxDistToLinPoint(0.5),
m_fitterMaxRelativeShift(0.01),
m_fitterDoSmoothing(true),
m_useBeamConstraint(true),
m_tracksMaxZinterval(1.),
m_tracksMaxSignificance(5.),
m_maxVertexChi2(18.42),
m_doRealMultiVertex(true),
m_useFastCompatibility(true),
m_maxMergeVertexSignificance(3.),
m_minWeight(0.0001),
m_maxIterations(100),
m_addSingleTrackVertices(false),
m_do3dSplitting(false),
m_maximumVertexContamination(0.5),
m_looseConstrValue(1e+8),
m_refitAfterBadVertex(true),
m_useVertexCovForIPEstimation(false),
m_useSeedConstraint(true),
m_finalCutMaxVertexChi2(18.42),
m_gaussianMaxD0Significance(3.5),
m_gaussianMaxZ0Significance(12.0),
m_ipEstMaxIterations(20),
m_ipEstPrecision(1e-10)
{
declareProperty("TrackSelector", m_trkFilter);
declareProperty("annealingTemps", m_annealingTemps);
declareProperty("annealingCutOff", m_annealingCutOff);
declareProperty("fitterMaxIterations", m_fitterMaxIterations);
declareProperty("fitterMaxDistToLinPoint", m_fitterMaxDistToLinPoint);
declareProperty("fitterMaxRelativeShift", m_fitterMaxRelativeShift);
declareProperty("fitterDoSmoothing", m_fitterDoSmoothing);
declareProperty("useBeamConstraint", m_useBeamConstraint);
declareProperty("tracksMaxZinterval", m_tracksMaxZinterval);
declareProperty("tracksMaxSignificance", m_tracksMaxSignificance);
declareProperty("maxVertexChi2", m_maxVertexChi2);
declareProperty("doRealMultiVertex", m_doRealMultiVertex);
declareProperty("useFastCompatibility", m_useFastCompatibility);
declareProperty("maxMergeVertexSignificance", m_maxMergeVertexSignificance);
declareProperty("minWeight", m_minWeight);
declareProperty("maxIterations", m_maxIterations);
declareProperty("addSingleTrackVertices", m_addSingleTrackVertices);
declareProperty("do3dSplitting", m_do3dSplitting);
declareProperty("maximumVertexContamination", m_maximumVertexContamination);
declareProperty("looseConstrValue", m_looseConstrValue);
declareProperty("refitAfterBadVertex", m_refitAfterBadVertex);
declareProperty("useVertexCovForIPEstimation", m_useVertexCovForIPEstimation);
declareProperty("useSeedConstraint", m_useSeedConstraint);
declareProperty("finalCutMaxVertexChi2", m_finalCutMaxVertexChi2);
declareProperty("gaussianMaxD0Significance", m_gaussianMaxD0Significance);
declareProperty("gaussianMaxZ0Significance", m_gaussianMaxZ0Significance);
declareProperty("ipEstMaxIterations", m_ipEstMaxIterations);
declareProperty("ipEstPrecision", m_ipEstPrecision);
}
StatusCode StatusCode
ActsAdaptiveMultiPriVtxFinderTool::initialize() ActsAdaptiveMultiPriVtxFinderTool::initialize()
......
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