1 void makeTPlots(
const Char_t *tag =
""){
2 TString FileN(gDirectory->GetName());
3 gInterpreter->ProcessLine(
".L Chain.C");
4 TChain *theChain = Chain();
6 const Char_t *T = gSystem->Which(gROOT->GetMacroPath(),
"T.C");
7 macro += T;
delete [] T;
9 gInterpreter->ProcessLine(macro);
13 TString Out = gSystem->DirName(FileN); cout << Out;
14 TString Dir = gSystem->DirName(Out);
16 if (Out.BeginsWith(
"/")) Out = Out.Data()+1;
18 TString Out = gSystem->BaseName(FileN);
19 Out.ReplaceAll(
".root",
"");
21 Out.ReplaceAll(
"/",
"_");
24 Out +=
"Plots"; Out += tag;
26 if (Tag.Contains(
"G14G",TString::kIgnoreCase) ||
27 Tag.Contains(
"G24G",TString::kIgnoreCase) ||
28 Tag.Contains(
"G34G",TString::kIgnoreCase) ||
29 Tag.Contains(
"G44G",TString::kIgnoreCase)) {
30 t.SetuMinMax(2.5, 2.9);
35 if (Tag.Contains(
"G15G",TString::kIgnoreCase)) {
36 t.SetuMinMax(2.0, 2.5);
41 if (Tag.Contains(
"G21G",TString::kIgnoreCase)) {
44 if (Tag.Contains(
"G22G",TString::kIgnoreCase)) {
47 if (Tag.Contains(
"NoW",TString::kIgnoreCase)) {
50 if (Tag.Contains(
"BL",TString::kIgnoreCase)) {
51 t.SetLaddersInGlobal(kTRUE);
53 if (Tag.Contains(
"ssd",TString::kIgnoreCase)) {
56 if (Tag.Contains(
"svt",TString::kIgnoreCase)) {
59 if (Tag.Contains(
"east",TString::kIgnoreCase)) {
60 if (Tag.Contains(
"fareast",TString::kIgnoreCase)) t.SetEastWest(3);
61 else t.SetEastWest(1);
63 if (Tag.Contains(
"west",TString::kIgnoreCase)) {
64 if (Tag.Contains(
"farwest",TString::kIgnoreCase)) t.SetEastWest(4);
65 else t.SetEastWest(2);
68 if (Tag.Contains(
"global",TString::kIgnoreCase)) {
71 if (Tag.Contains(
"local",TString::kIgnoreCase)) {
74 if (Tag.Contains(
"dEdx",TString::kIgnoreCase)) {
75 t.SetdEdxCut(4.e-6,40.);
79 t.SetMinNoFitPoints(25);
81 Out += Form(
"rCut%3.1fcm",t.GetRCut());
83 cout <<
" ===> " << Out << endl;
84 t.SetOutFileName(Out);