10 #include <tracking/trackFitting/measurementCreator/adder/MeasurementAdder.h>
11 #include <framework/gearbox/Const.h>
13 #include <tracking/dbobjects/DAFparameters.h>
127 const std::string& storeArrayNameOfSVDHits =
"",
128 const std::string& storeArrayNameOfCDCHits =
"",
129 const std::string& storeArrayNameOfBKLMHits =
"",
130 const std::string& storeArrayNameOfEKLMHits =
"",
131 const bool initializeCDCTranslators =
true):
132 m_measurementAdder(storeArrayNameOfPXDHits, storeArrayNameOfSVDHits, storeArrayNameOfCDCHits,
133 storeArrayNameOfBKLMHits, storeArrayNameOfEKLMHits, initializeCDCTranslators)
147 void resetFitter(
const std::shared_ptr<genfit::AbsFitter>& fitter);
188 bool fit(
RecoTrack& recoTrack,
const int pdgCode)
const;
225 const std::vector<std::shared_ptr<PXDBaseMeasurementCreator>>& pxdMeasurementCreators,
226 const std::vector<std::shared_ptr<SVDBaseMeasurementCreator>>& svdMeasurementCreators,
227 const std::vector<std::shared_ptr<CDCBaseMeasurementCreator>>& cdcMeasurementCreators,
228 const std::vector<std::shared_ptr<BKLMBaseMeasurementCreator>>& bklmMeasurementCreators,
229 const std::vector<std::shared_ptr<EKLMBaseMeasurementCreator>>& eklmMeasurementCreators,
230 const std::vector<std::shared_ptr<BaseMeasurementCreator>>& additionalMeasurementCreators)
233 svdMeasurementCreators,
234 cdcMeasurementCreators,
235 bklmMeasurementCreators,
236 eklmMeasurementCreators,
237 additionalMeasurementCreators);
258 const std::map<std::string, std::map<std::string, std::string>>& pxdMeasurementCreators,
259 const std::map<std::string, std::map<std::string, std::string>>& svdMeasurementCreators,
260 const std::map<std::string, std::map<std::string, std::string>>& cdcMeasurementCreators,
261 const std::map<std::string, std::map<std::string, std::string>>& bklmMeasurementCreators,
262 const std::map<std::string, std::map<std::string, std::string>>& eklmMeasurementCreators,
263 const std::map<std::string, std::map<std::string, std::string>>& additionalMeasurementCreators)
266 svdMeasurementCreators,
267 cdcMeasurementCreators,
268 bklmMeasurementCreators,
269 eklmMeasurementCreators,
270 additionalMeasurementCreators);
Provides a type-safe way to pass members of the chargedStableSet set.
Class for accessing objects in the database.
Algorithm class to translate the added detector hits (e.g.
void resetMeasurementCreatorsUsingFactories(const std::map< std::string, std::map< std::string, std::string >> &pxdMeasurementCreators, const std::map< std::string, std::map< std::string, std::string >> &svdMeasurementCreators, const std::map< std::string, std::map< std::string, std::string >> &cdcMeasurementCreators, const std::map< std::string, std::map< std::string, std::string >> &bklmMeasurementCreators, const std::map< std::string, std::map< std::string, std::string >> &eklmMeasurementCreators, const std::map< std::string, std::map< std::string, std::string >> &additionalMeasurementCreators)
If you want to use non-default settings for the store arrays, you can create your own instances of th...
void resetMeasurementCreators(const std::vector< std::shared_ptr< PXDBaseMeasurementCreator >> &pxdMeasurementCreators, const std::vector< std::shared_ptr< SVDBaseMeasurementCreator >> &svdMeasurementCreators, const std::vector< std::shared_ptr< CDCBaseMeasurementCreator >> &cdcMeasurementCreators, const std::vector< std::shared_ptr< BKLMBaseMeasurementCreator >> &bklmMeasurementCreators, const std::vector< std::shared_ptr< EKLMBaseMeasurementCreator >> &eklmMeasurementCreators, const std::vector< std::shared_ptr< BaseMeasurementCreator >> &additionalMeasurementCreators)
If you want to use non-default settings for the store arrays, you can create your own instances of th...
void resetMeasurementCreatorsToDefaultSettings()
Reset the internal measurement creator storage to the default settings.
This is the Reconstruction Event-Data Model Track.
Algorithm class to handle the fitting of RecoTrack objects.
DBObjPtr< DAFparameters > m_DAFparameters
DAF parameters Database OjbPtr.
TrackFitter(const std::string &storeArrayNameOfPXDHits="", const std::string &storeArrayNameOfSVDHits="", const std::string &storeArrayNameOfCDCHits="", const std::string &storeArrayNameOfBKLMHits="", const std::string &storeArrayNameOfEKLMHits="", const bool initializeCDCTranslators=true)
Create a new fitter instance.
static int createCorrectPDGCodeForChargedStable(const Const::ChargedStable &particleType, const RecoTrack &recoTrack)
Helper function to multiply the PDG code of a charged stable with the charge of the reco track (if ne...
static constexpr double s_defaultProbCut
Default probCut for the default DAF fitter.
void resetMeasurementCreatorsUsingFactories(const std::map< std::string, std::map< std::string, std::string >> &pxdMeasurementCreators, const std::map< std::string, std::map< std::string, std::string >> &svdMeasurementCreators, const std::map< std::string, std::map< std::string, std::string >> &cdcMeasurementCreators, const std::map< std::string, std::map< std::string, std::string >> &bklmMeasurementCreators, const std::map< std::string, std::map< std::string, std::string >> &eklmMeasurementCreators, const std::map< std::string, std::map< std::string, std::string >> &additionalMeasurementCreators)
If you want to use non-default settings for the store arrays, you can create your own instances of th...
void setgErrorIgnoreLevel(Int_t errorIgnoreLevel)
Set the gErrorIgnoreLevel for the fitter.
Int_t getgErrorIgnoreLevel()
Return the currently set gErrorIgnoreLevel for the fitter.
void resetMeasurementCreators(const std::vector< std::shared_ptr< PXDBaseMeasurementCreator >> &pxdMeasurementCreators, const std::vector< std::shared_ptr< SVDBaseMeasurementCreator >> &svdMeasurementCreators, const std::vector< std::shared_ptr< CDCBaseMeasurementCreator >> &cdcMeasurementCreators, const std::vector< std::shared_ptr< BKLMBaseMeasurementCreator >> &bklmMeasurementCreators, const std::vector< std::shared_ptr< EKLMBaseMeasurementCreator >> &eklmMeasurementCreators, const std::vector< std::shared_ptr< BaseMeasurementCreator >> &additionalMeasurementCreators)
If you want to use non-default settings for the store arrays, you can create your own instances of th...
bool fit(RecoTrack &recoTrack, genfit::AbsTrackRep *trackRepresentation) const
Fit a reco track with a given non-default track representation.
void resetMeasurementCreatorsToDefaultSettings()
Reset the internal measurement creator storage to the default settings.
static constexpr double s_defaultDeltaPValue
Default deltaPValue for the default DAF fitter.
void resetFitter(const std::shared_ptr< genfit::AbsFitter > &fitter)
Set the internal storage of the fitter to a provided one, if you want to use non-default settings.
MeasurementAdder m_measurementAdder
The measurement adder algorithm class.
void resetFitterToDefaultSettings()
Use the default settings of the fitter to fit the reco tracks.
Int_t m_gErrorIgnoreLevel
Control the output level of the ROOT functions used by the GenFit fitter. Default is increased from k...
static constexpr unsigned int s_defaultMaxFailedHits
Default maxFailedHits for the default DAF fitter.
std::shared_ptr< genfit::AbsFitter > m_fitter
The internal storage of the used fitting algorithms.
bool m_skipDirtyCheck
Flag to skip the dirty flag check which is needed when using non-default fitters.
bool fitWithoutCheck(RecoTrack &recoTrack, const genfit::AbsTrackRep &trackRepresentation) const
Helper function to do the fit.
Abstract base class for a track representation.
Abstract base class for different kinds of events.
Defines for I/O streams used for error and debug printing.