Skip to content

Commit 7c37e48

Browse files
committed
add a couple correlation plots
1 parent 2d92a79 commit 7c37e48

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

src/Analysis.cxx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,15 @@ void Analysis::Prepare() {
527527
HS->DefineHist1D("DihPhiH", "#phi_{h}", "", NBINS, -TMath::Pi(), TMath::Pi());
528528
HS->DefineHist1D("DihPhiR", "#phi_{R}", "", NBINS, -TMath::Pi(), TMath::Pi());
529529
HS->DefineHist1D("DihPhiS", "#phi_{S}", "", NBINS, -TMath::Pi(), TMath::Pi());
530+
HS->DefineHist2D("DihPhiHvsPhiR", "#phi_{R}", "#phi_{h}", "", "",
531+
NBINS, -TMath::Pi(), TMath::Pi(),
532+
NBINS, -TMath::Pi(), TMath::Pi()
533+
);
534+
HS->DefineHist2D("DihThetaVsPh", "P_{h}", "#theta", "GeV", "",
535+
NBINS, 1e-2, 40,
536+
NBINS, 0, TMath::Pi(),
537+
true
538+
);
530539
}
531540
// -- jet kinematics
532541
#ifndef EXCLUDE_DELPHES
@@ -857,6 +866,8 @@ void Analysis::FillHistosDihadrons() {
857866
H->FillHist1D("DihPhiH", dih->PhiH, wTrack);
858867
H->FillHist1D("DihPhiR", dih->PhiR, wTrack);
859868
H->FillHist1D("DihPhiS", dih->PhiS, wTrack);
869+
H->FillHist2D("DihPhiHvsPhiR", dih->PhiR, dih->PhiH, wTrack);
870+
H->FillHist2D("DihThetaVsPh", dih->Ph, dih->Theta, wTrack);
860871
});
861872
HD->ExecuteOps(true);
862873
}

src/Dihadrons.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ Dihadron::Dihadron(TLorentzVector vecHad1, TLorentzVector vecHad2, Kinematics *K
2929
Z = vecP.Dot(vecPh) / vecP.Dot(vecQ);
3030
for(int h=0; h<2; h++)
3131
hadZ[h] = vecP.Dot(vecH[h]) / vecP.Dot(vecQ);
32+
Ph = vecPh.Vect().Mag();
3233
PhPerp = Kinematics::Reject(IvecPh.Vect(),IvecQ.Vect()).Mag();
33-
Zeta = 2 * vecR.Dot(vecP) / vecPh.Dot(vecP);
34+
Zeta = 2 * vecR.Dot(vecP) / vecPh.Dot(vecP);
3435

3536
// PhiH
3637
PhiH = Kinematics::PlaneAngle(

src/Dihadrons.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Dihadron {
1111
Dihadron() {};
1212
Dihadron(TLorentzVector vecHad1, TLorentzVector vecHad2, Kinematics *K);
1313
~Dihadron() {};
14-
Double_t Mh, MX, Z, PhPerp, Theta, PhiH, PhiR, PhiS, Zeta;
14+
Double_t Mh, MX, Z, Ph, PhPerp, Theta, PhiH, PhiR, PhiS, Zeta;
1515
Double_t hadZ[2];
1616
private:
1717
ClassDef(Dihadron,1);

0 commit comments

Comments
 (0)