1 void combinePIDTable(){
5 eTableName +=
"PiPIDTable.root";
8 allTableName +=
"PIDTableP02gd.root";
12 cpCMD +=eTableName.Data();
14 cpCMD +=allTableName.Data();
18 gSystem->Exec(cpCMD.Data());
24 TObjString* productionTag =
new TObjString(
"P02gd");
26 TFile* table =
new TFile (allTableName.Data(),
"UPDATE");
29 TFile* piFile =
new TFile(
"PiPIDTable.root",
"R");
32 TVectorD* piAmp = (TVectorD *) piFile->Get(
"PiAmp");
33 TVectorD* piCenter = (TVectorD *) piFile->Get(
"PiCenter");
34 TVectorD* piSigma = (TVectorD *) piFile->Get(
"PiSigma");
36 TFile* eFile =
new TFile(
"EPIDTable.root",
"R");
39 TVectorD* eAmp = (TVectorD *) eFile->Get(
"EAmp");
40 TVectorD* eCenter = (TVectorD *) eFile->Get(
"ECenter");
41 TVectorD* eSigma = (TVectorD *) eFile->Get(
"ESigma");
44 TFile* kFile =
new TFile(
"KPIDTable.root",
"R");
47 TVectorD* kAmp = (TVectorD *) kFile->Get(
"KAmp");
48 TVectorD* kCenter = (TVectorD *) kFile->Get(
"KCenter");
49 TVectorD* kSigma = (TVectorD *) kFile->Get(
"KSigma");
51 TFile* pFile =
new TFile(
"PPIDTable.root",
"R");
54 TVectorD* pAmp = (TVectorD *) pFile->Get(
"PAmp");
55 TVectorD* pCenter = (TVectorD *) pFile->Get(
"PCenter");
56 TVectorD* pSigma = (TVectorD *) pFile->Get(
"PSigma");
61 piAmp->Write(
"piAmp",TObject::kOverwrite | TObject::kSingleKey);
62 piCenter->Write(
"piCenter",TObject::kOverwrite | TObject::kSingleKey);
63 piSigma->Write(
"piSigma",TObject::kOverwrite | TObject::kSingleKey);
65 kAmp->Write(
"kAmp",TObject::kOverwrite | TObject::kSingleKey);
66 kCenter->Write(
"kCenter",TObject::kOverwrite | TObject::kSingleKey);
67 kSigma->Write(
"kSigma",TObject::kOverwrite | TObject::kSingleKey);
69 pAmp->Write(
"pAmp",TObject::kOverwrite | TObject::kSingleKey);
70 pCenter->Write(
"pCenter",TObject::kOverwrite | TObject::kSingleKey);
71 pSigma->Write(
"pSigma",TObject::kOverwrite | TObject::kSingleKey);
74 eAmp->Write(
"eAmp",TObject::kOverwrite | TObject::kSingleKey);
75 eCenter->Write(
"eCenter",TObject::kOverwrite | TObject::kSingleKey);
76 eSigma->Write(
"eSigma",TObject::kOverwrite | TObject::kSingleKey);
78 productionTag->Write(
"productionTag",TObject::kOverwrite | TObject::kSingleKey);