1 TString MuDSTFile(TString production, TString trgsetupname)
3 if( production.Contains(
"P08ic") && trgsetupname.Contains(
"upsilon"))
4 return "/star/data06/embed/andrewar/MuDstReduced/P08ic_MuDst_st_upsilon.root";
7 int Quit(
char* prompt=
"Hit q or n to quit...")
11 cout << prompt << flush;
12 character = getc(stdin);
14 return ((character==
'q')||
23 void StringCuts(
char *o,
const char *s,
const char *s1)
27 strcat(o,
" {"); strcat(o,s1); strcat(o,
"}");
30 void StringCuts(
char *o,
const char *s,
const char *s1,
const char *s2)
34 strcat(o,
" ("); strcat(o,s1); strcat(o,
")");
35 strcat(o,
"&&("); strcat(o,s2); strcat(o,
")");
39 void StringCuts(
char *o,
const char *s,
const char *s1,
40 const char *s2,
const char *s3)
44 strcat(o,
"("); strcat(o,s1); strcat(o,
")");
45 strcat(o,
"&&("); strcat(o,s2); strcat(o,
")");
46 strcat(o,
"&&("); strcat(o,s3); strcat(o,
")");
50 void StringCuts(
char *o,
const char *s,
const char *s1,
const char *s2,
51 const char *s3,
const char *s4)
55 strcat(o,
"("); strcat(o,s1); strcat(o,
")");
56 strcat(o,
"&&("); strcat(o,s2); strcat(o,
")");
57 strcat(o,
"&&("); strcat(o,s3); strcat(o,
")");
58 strcat(o,
"&&("); strcat(o,s4); strcat(o,
")");
70 gStyle->SetCanvasColor(10);
71 gStyle->SetPadColor(10);
72 gStyle->SetPadTickX(1);
73 gStyle->SetPadTickY(1);
74 gStyle->SetFillColor(0);
75 gStyle->SetTitleColor(0);
76 gStyle->SetStatColor(0);
77 gStyle->SetHistFillColor(0);
78 gStyle->SetFrameFillColor(10);
79 gStyle->SetCanvasBorderMode(0);
80 gStyle->SetFrameBorderMode(0);
81 gStyle->SetPadBorderMode(0);
92 void keyLine(Float_t x, Float_t y,
const Char_t* tt,
93 Int_t color=1, Int_t style=1, Float_t tSize=0.04)
96 Float_t x1 = gPad->GetFrame()->GetX1();
97 Float_t x2 = gPad->GetFrame()->GetX2();
100 Float_t y1 = gPad->GetFrame()->GetY1();
101 Float_t y2 = gPad->GetFrame()->GetY2();
104 TLine *l =
new TLine(x,y,x+0.05*dx,y);
105 l->SetLineColor(color);
106 l->SetLineStyle(style);
108 TText *t =
new TText(x+0.06*dx,y,tt);
110 t->SetTextSize(tSize);
111 t->SetTextColor(color);
115 void keySymbol(Float_t x, Float_t y,
const Char_t* tt,
116 Int_t color=1, Int_t marker=1, Float_t tSize=0.04)
119 Float_t x1 = gPad->GetFrame()->GetX1();
120 Float_t x2 = gPad->GetFrame()->GetX2();
123 Float_t y1 = gPad->GetFrame()->GetY1();
124 Float_t y2 = gPad->GetFrame()->GetY2();
127 TMarker *l =
new TMarker(x+0.025*dx,y,marker);
128 l->SetMarkerColor(color);
130 TText *t =
new TText(x+0.06*dx,y,tt);
132 t->SetTextSize(tSize);
133 t->SetTextColor(color);