17 #define AnalyzeTree_cxx
22 #include <TLorentzVector.h>
53 TH1D* D1Prapidity =
new TH1D(
"D1Prapidity",
"Prapidity of Daughter 1",200, -10, 10);
54 TH1D* D1Pt =
new TH1D(
"D1Pt",
"Transverse Momentum of Daughter 1",100, 0, 2.);
55 TH1D* D2Prapidity =
new TH1D(
"D2Prapidity",
"Prapidity of Daughter 2",200, -10, 10);
56 TH1D* D2Pt =
new TH1D(
"D2Pt",
"Transverse Momentum of Daughter 2",100, 0, 2.);
57 TH1D* ParentRapidity =
new TH1D(
"ParentRapidity",
"Rapidity of Parent",200, -10, 10);
58 TH1D* ParentPt =
new TH1D(
"ParentPt",
"Transverse Momentum of Parent",100, 0, 2.);
59 TH1D* ParentMass =
new TH1D(
"ParentMass",
"Invariant Mass of Parent",100, 0, 5.);
62 Long64_t nentries =
fChain->GetEntriesFast();
64 Long64_t nbytes = 0, nb = 0;
65 for (Long64_t jentry=0; jentry<nentries;jentry++) {
67 if (ientry < 0)
break;
68 nb =
fChain->GetEntry(jentry); nbytes += nb;
75 ParentRapidity->Fill(
fsrap_ );
76 ParentPt->Fill(
fspt_ );
82 TFile *histofile =
new TFile(
"starlight_histos.root",
"recreate");
89 ParentRapidity->Write();