8 #ifndef PHOTOELECTRICCLUSTERTOOLS_H_
9 #define PHOTOELECTRICCLUSTERTOOLS_H_
15 #include <CLHEP/Vector/TwoVector.h>
19 #include <EVENT/TrackerPulse.h>
20 #include <IMPL/TrackerHitImpl.h>
23 #include <gear/TPCParameters.h>
24 #include <gearimpl/GlobalPadIndex.h>
27 #include <Minuit2/FCNBase.h>
39 CLHEP::Hep2Vector
calculateSeed(
const std::set<lcio::TrackerPulse*> &pulses,
const gear::TPCParameters& tpc_parameters, IMPL::TrackerHitImpl *seed_photodot = 0);
57 bool doLikelihoodFit(
const lcio::TrackerHit &seed, lcio::TrackerHitImpl* fit_result,
double sigma,
bool fitSigma =
false);
69 virtual double operator()(
const std::vector<double>& x)
const;
71 virtual double Up()
const;
75 const lcio::TrackerHit &_photodot_data;
CLHEP::Hep2Vector calculateSeed(const std::set< lcio::TrackerPulse * > &pulses, const gear::TPCParameters &tpc_parameters, IMPL::TrackerHitImpl *seed_photodot=0)
The given TrackerPulse set is used to sum up all positions with the charge of the pulse as weight...
bool doLikelihoodFit(const lcio::TrackerHit &seed, lcio::TrackerHitImpl *fit_result, double sigma, bool fitSigma=false)
Perform the Likelihood fit using the PhotodotLikelihood class.
This helper class is used to calculate the likelihood function while fitting photodots.
Definition: PhotoelectricClusterTools.h:62