5 #ifndef MILLEPEDETREES_H 6 #define MILLEPEDETREES_H 22 TH1*
Draw(
const char *
exp,
const char *
selection,
const char *hDef =
"", Option_t *opt =
"");
23 TH1*
CreateHist(
const char *exp,
const char *
select,
const char *hDef =
"", Option_t *opt =
"");
24 TH2*
CreateHist2D(
const char *expX,
const char *expY,
const char *select,
25 const char *hDef =
"", Option_t *opt =
"");
26 TProfile*
CreateHistProf(
const char *expX,
const char *expY,
const char *select,
27 const char *hDef =
"", Option_t *opt =
"");
28 TGraph*
CreateGraph(
const char *expX,
const char *expY,
const char *select, Option_t *
option=
"");
33 TString
Pos()
const {
return "Pos";}
40 TString
RPos(
const TString &tree)
const;
46 TString
Phi(
const TString &tree)
const;
49 TString
PhiSwaps(
double swapAround,
const TString &tree1,
const TString &tree2)
const;
50 TString
Theta(
const TString &tree)
const;
51 TString
Alpha(
const TString &tree,
bool betaMpiPpi)
const;
52 TString
Beta (
const TString &tree,
bool betaMpiPpi)
const;
53 TString
Gamma(
const TString &tree,
bool betaMpiPpi)
const;
56 TString
Par()
const {
return "Par";}
64 TString
DiffPar(
const TString &t1,
const TString &
t2, UInt_t iPar)
const {
67 TString
ParSi(
const TString &tree, UInt_t
ui)
const;
68 TString
XParSi(
const TString &tree)
const {
return ParSi(tree, 0);}
69 TString
YParSi(
const TString &tree)
const {
return ParSi(tree, 1);}
70 TString
ZParSi(
const TString &tree)
const {
return ParSi(tree, 2);}
71 TString
AlphaSi(
const TString &tree)
const {
return ParSi(tree, 3);}
72 TString
BetaSi(
const TString &tree)
const {
return ParSi(tree, 4);}
73 TString
GammaSi(
const TString &tree)
const {
return ParSi(tree, 5);}
76 TString
DelPos(UInt_t ui,
const TString &tree1,
const TString &tree2)
const;
77 TString
DelR(
const TString &tree1,
const TString &tree2)
const;
78 TString
DelRphi(
const TString &tree1,
const TString &tree2)
const;
80 TString
DelPhi(
const TString &tree1,
const TString &tree2)
const;
92 return Parenth(tree +
"HieraLevel==" +
Int(level));}
95 TString
Valid(UInt_t iParam)
const;
96 TString
Fixed(UInt_t iParam,
bool isFixed =
true)
const;
98 TString
Label(UInt_t iParam)
const;
99 TString
Cor(UInt_t iParam)
const;
100 TString
Diff(UInt_t iParam)
const;
101 TString
PreSi(UInt_t iParam)
const;
102 TString
ParSi(UInt_t iParam)
const;
103 TString
ParSiOk(UInt_t iParam)
const;
112 TString
DeformValue(UInt_t
i,
const TString &whichOne)
const;
116 TString
Dot()
const {
return ".";}
117 TString
Plu()
const {
return "+";}
118 TString
Min()
const {
return "-";}
119 TString
Mal()
const {
return "*";}
120 TString
Div()
const {
return "/";}
121 TString
AndL()
const {
return "&&";}
122 TString
OrL()
const {
return "||";}
124 TString
Int(Int_t i)
const {
return Form(
"%d", i);}
125 TString
Int(UInt_t ui)
const {
return Form(
"%u", ui);}
126 TString
Flt(Float_t
f)
const {
return Form(
"%f", f);}
128 TString
Bra()
const {
return "[";}
129 TString
Ket()
const {
return "]";}
133 TString
Paren()
const {
return "(";}
136 TString
Abs(
const char *
s)
const {
return Fun(
"TMath::Abs", s);}
138 TString
Fun(
const char *fun,
const char *
s)
const {
return fun +
Parenth(s);}
139 TString
Sqrt(
const char *
s)
const {
return Fun(
"sqrt", s);}
142 TString
ToMumMuRad(UInt_t iParam)
const {
return (iParam < 3 ?
"*10000" :
"*1000000");}
145 TString
Name(UInt_t iParam)
const;
146 TString
NamePede(UInt_t iParam)
const;
148 TString
DelName(UInt_t iParam)
const {
return "#Delta"+
Name(iParam);}
150 TString
Unit(UInt_t iParam)
const {
return (iParam < 3
152 : (iParam <
kNpar ?
" [#murad]" :
""));}
153 TString
UnitPede(UInt_t iParam)
const;
157 TString
Name(
const TString &pos)
const;
158 TString
NamePos(UInt_t iPos)
const;
159 TString
DelName(
const TString &pos)
const;
161 TString
Unit(
const TString &pos)
const;
163 TString
DeltaPos(
const TString &pos,
const TString &tree )
const;
183 TTree*
CreateTree(
const char *fileName,
const TString &treeNameAdd);
TString Cor(UInt_t iParam) const
TString HieraLev(Int_t level) const
TString Theta(const TString &tree) const
TString Fun(const char *fun, const char *s) const
TString NumDeformValues(const TString &whichOne) const
TString PhiSwaps(double swapAround, const TString &tree1, const TString &tree2) const
TString DelName(UInt_t iParam) const
TString ToMumMuRad(UInt_t iParam) const
TString ToMumMuRadPede(UInt_t iParam) const
bool SetBowsParameters(bool use=true)
bool SetUseSignedR(bool use=true)
TString OrgPos(const TString &pos) const
TString DeltaPos(const TString &pos, const TString &tree) const
TString ParSi(const TString &tree, UInt_t ui) const
TString AlignableTypeId() const
TString DelPhi(const TString &tree1, const TString &tree2) const
TString Flt(Float_t f) const
TString Par(UInt_t ui) const
TString ParSiOk(UInt_t iParam) const
TString DeformValue(UInt_t i, const TString &whichOne) const
TString Valid(UInt_t iParam) const
TString HieraLev(const TString &tree, Int_t level) const
TString PreSi(UInt_t iParam) const
TString XParSi(const TString &tree) const
TString Bracket(UInt_t ui) const
TString DiffPar(const TString &t1, const TString &t2, UInt_t iPar) const
TH2 * CreateHist2D(const char *expX, const char *expY, const char *select, const char *hDef="", Option_t *opt="")
TString NamePede(UInt_t iParam) const
TString Fixed(UInt_t iParam, bool isFixed=true) const
auto const T2 &decltype(t1.eta()) t2
TString Bracket(Int_t i) const
TString AnyFreePar() const
TString DelR(const TString &tree) const
TString NamePos(UInt_t iPos) const
TString DelRphi(const TString &tree) const
bool SetSurfDefDeltaBows(bool deltaBows)
TString Int(Int_t i) const
TString GammaSi(const TString &tree) const
TString Label(UInt_t iParam) const
TString DelPos(UInt_t ui, const TString &tree) const
TString RPos2(const TString &tree) const
TString ZParSi(const TString &tree) const
TString Bracket(const char *s) const
TTree * CreateTree(const char *fileName, const TString &treeNameAdd)
TString RPos(const TString &tree) const
TString Unit(UInt_t iParam) const
TString DelPos(UInt_t ui, const TString &tree1, const TString &tree2) const
TString Pos(UInt_t ui) const
TString UnitSurfDef(UInt_t iParam) const
TString Parenth(const char *s) const
TString UnitPede(UInt_t iParam) const
TString DelNameU(UInt_t iParam) const
TString DelR(const TString &tree1, const TString &tree2) const
TString BetaSi(const TString &tree) const
TString NameSurfDef(UInt_t iParam) const
TString DelPhi(const TString &tree) const
TString Abs(const char *s) const
TString Name(UInt_t iParam) const
TGraph * CreateGraph(const char *expX, const char *expY, const char *select, Option_t *option="")
TString Sqrt(const char *s) const
virtual ~MillePedeTrees()
TString Phi(const TString &tree) const
TH1 * Draw(const char *exp, const char *selection, const char *hDef="", Option_t *opt="")
TString YParSi(const TString &tree) const
TH1 * CreateHist(const char *exp, const char *select, const char *hDef="", Option_t *opt="")
TProfile * CreateHistProf(const char *expX, const char *expY, const char *select, const char *hDef="", Option_t *opt="")
TString Diff(UInt_t iParam) const
TString ToMumMuRadSurfDef(UInt_t iParam) const
TString AlphaSi(const TString &tree) const
TString DelRphi(const TString &tree1, const TString &tree2) const
TString Int(UInt_t ui) const
TString DelNameU(const TString &pos) const