1 #ifndef St_pidCorrectionC_h
2 #define St_pidCorrectionC_h
5 #include "tables/St_pidCorrection_Table.h"
6 #include "StEvent/StPidParticleDefinition.h"
12 kUndef = kUndefinedMethodId,
13 kI70 = kTruncatedMeanId,
14 kI70U = kEnsembleTruncatedMeanId,
15 kFit = kLikelihoodFitId,
16 kFitU = kWeightedTruncatedMeanId,
17 kdNdx = kOtherMethodId,
18 kdNdxU = kOtherMethodId2,
19 kBTof, kETof, kMtd, kBEmc, kTotal
22 pidCorrection_st *Struct(Int_t i = 0)
const {
return ((St_pidCorrection*) Table())->GetTable()+i;}
23 UInt_t getNumRows()
const {
return GetNRows();}
24 Int_t idx(Int_t i = 0)
const {
return Struct(i)->idx;}
25 Int_t nrows(Int_t i = 0)
const {
return Struct(i)->nrows;}
26 Int_t type(Int_t i = 0)
const {
return Struct(i)->type;}
27 Int_t var(Int_t i = 0)
const {
return Struct(i)->var;}
28 Int_t particle(Int_t i = 0)
const {
return Struct(i)->particle;}
31 Int_t charge(Int_t i = 0)
const {
return Struct(i)->charge;}
32 Int_t pull(Int_t i = 0)
const {
return Struct(i)->pull;}
33 Int_t det(Int_t i = 0)
const {
return Struct(i)->det;}
35 Int_t npar(Int_t i = 0)
const {
return Struct(i)->npar;}
36 Double_t OffSet(Int_t i = 0)
const {
return Struct(i)->OffSet;}
37 Double_t min(Int_t i = 0)
const {
return Struct(i)->min;}
38 Double_t max(Int_t i = 0)
const {
return Struct(i)->max;}
39 Double_t* a(Int_t i = 0)
const {
return Struct(i)->a;}
40 Char_t* comment(Int_t i = 0)
const {
return Struct(i)->comment;}
41 Double_t CalcCorrection(Int_t i, Double_t x, Double_t z = 0, Int_t NparMax = -1)
const;
42 Double_t SumSeries(pidCorrection_st *cor, Double_t x, Double_t z = 0, Int_t NparMax = -1)
const;
43 Double_t Correction(Double_t X, Int_t part = kPidPion, Int_t det = kFit, Int_t charge = 0, Int_t pull = 0, Int_t varT = 0);
44 static Double_t func(Double_t *x, Double_t *p);
45 TF1* Func(Int_t part = kPidPion, Int_t det = kFit, Int_t charge = 0, Int_t pull = 0, Int_t varT = 0);
46 Int_t IsActiveChair()
const;
52 ClassDefChair(St_pidCorrection, pidCorrection_st )