26 #include "/sphenix/user/hjheng/TrackletAna/analysis/plot/sPHENIXStyle/sPhenixStyle.C"
43 outTree->Branch(
"event", &vtxdata.
event);
44 outTree->Branch(
"NClusLayer1", &vtxdata.
NClusLayer1);
47 outTree->Branch(
"NTruthVtx", &vtxdata.
NTruthVtx);
48 outTree->Branch(
"TruthPV_x", &vtxdata.
TruthPV_x);
49 outTree->Branch(
"TruthPV_y", &vtxdata.
TruthPV_y);
50 outTree->Branch(
"TruthPV_z", &vtxdata.
TruthPV_z);
56 outTree->Branch(
"PV_x", &vtxdata.
PV_x);
57 outTree->Branch(
"PV_y", &vtxdata.
PV_y);
58 outTree->Branch(
"PV_z", &vtxdata.
PV_z);
63 std::map<int, vector<float>> EvtVtx_map;
65 TFile *
f =
new TFile(vtxfname,
"READ");
66 TTree *
t = (TTree *)f->Get(
"minitree");
68 float PV_x, PV_y, PV_z;
69 t->SetBranchAddress(
"event", &event);
70 t->SetBranchAddress(
"PV_x", &PV_x);
71 t->SetBranchAddress(
"PV_y", &PV_y);
72 t->SetBranchAddress(
"PV_z", &PV_z);
73 for (
int ev = 0; ev < t->GetEntriesFast(); ev++)
76 EvtVtx_map[
event] = {PV_x, PV_y, PV_z};