4 #ifndef __KVIDZAFROMZGRID_H
5 #define __KVIDZAFROMZGRID_H
7 #include "KVIDZAGrid.h"
9 #include "KVUniqueNameList.h"
10 #include "KVIdentificationResult.h"
79 void check_pidranges_and_massfits();
96 int is_inside(
double pid)
const;
138 return (fPIDRange || fTables.
GetEntries()) && !fIgnoreMassID;
189 interval(
int zz,
int aa,
double pid,
double pidmin = -1.,
double pidmax = -1.)
201 if (pid > fPIDMin && pid < fPIDmax)
return kTRUE;
207 return (fPIDmax < pid);
212 return (fPIDMin > pid);
248 if (fPIDMin > 0 && fPIDmax > 0) {
249 if (pid >= fPIDMin && pid <= fPIDmax)
return true;
303 void add(
int aa,
double pid,
double pidmin = -1.,
double pidmax = -1.);
#define ClassDefOverride(name, id)
char * Form(const char *fmt,...)
virtual void SetOnlyZId(Bool_t yes=kTRUE)
Hybrid charge & mass identification grid.
const KVList * GetIntervalSets() const
bool MassIdentificationFromMultiGaussFit(KVMultiGaussIsotopeFit *, KVIdentificationResult *) const
void Initialize() override
KVMultiGaussIsotopeFit * GetMultiGaussFit(int z) const
interval_set * GetIntervalSet(int zint) const
void WriteToAsciiFile(std::ofstream &gridfile) override
void Identify(Double_t x, Double_t y, KVIdentificationResult *) const override
Bool_t HasMassIDCapability() const override
virtual double DeduceAfromPID(KVIdentificationResult *idr) const
void AddIntervalSet(interval_set *)
add an interval set to the grid, updating the corresponding parameters
TH1 * LinearizeHistoToPID(const TH2 *hdata, int nbins=100) const override
void SetOnlyZId(Bool_t=kTRUE) override
void RemoveIntervalSet(int zint)
Remove interval set for given Z from grid.
void ReadFromAsciiFile(std::ifstream &gridfile) override
void Copy(TObject &obj) const override
Identification grid with lines corresponding to different nuclear isotopes (KVIDZALine)
Full result of one attempted particle identification.
Extended TList class which owns its objects by default.
Function for fitting PID mass spectra.
Strings used to represent a set of ranges of values.
void Copy(TObject &obj) const override
Int_t GetSize() const override
Optimised list in which named objects can only be placed once.
virtual Int_t GetEntries() const
void Copy(TObject &named) const override
virtual void SetName(const char *name)
TString GetListOfMasses()
bool is_inside(double pid)
bool is_above(double pid)
void add(int aa, double pid, double pidmin=-1., double pidmax=-1.)
double eval(KVIdentificationResult *idr)
interval_set(int zz, int type)
void Copy(TObject &o) const override
bool is_right_of(double pid)
bool is_left_of(double pid)
void SetPIDmin(double pidmin)
void Copy(TObject &o) const override
void SetPIDmax(double pidmax)
bool is_inside(double pid)