31 double Fit1D(
const std::shared_ptr<TH1>& h, std::vector<double>& par, std::vector<double>& par_err,
double p);
34 void AddParticle(
const ParticleFit& particle, uint
id) {
35 particles_.push_back(particle);
36 particles_id_.push_back(
id);
38 void SetHisto2D(std::shared_ptr<TH2> histo2D) { histo2D_ = std::move(histo2D); }
39 void SetRangeX(
double min,
double max) { minx_ = min, maxx_ = max; }
40 void SetRangeY(
double min,
double max) { miny_ = min, maxy_ = max; }
41 void SetOutputFileName(TString name) { outfilename_ = std::move(name); }
43 ParticleFit GetParticle(uint i)
const {
return particles_.at(i); };
45 return particles_.at(std::find(particles_id_.begin(), particles_id_.end(), i) - particles_id_.begin());
48 void SetChi2Max(
double chi2) { chi2_max_ = chi2; }
51 std::vector<ParticleFit> particles_;
52 std::vector<uint> particles_id_;
53 std::shared_ptr<TH2> histo2D_{
nullptr};
55 TString outfilename_{
"out.root"};
63 double chi2_max_{100.};
Class to store fit resuls for particle specie.
Definition ParticleFit.h:19