Skip to content

add unsmeared MET variables to skims #411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions interface/smallTree_HHbtag.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,11 @@ struct smallTree
m_METx = 0. ;
m_METy = 0. ;

m_met_raw_phi = -1. ;
m_met_raw_et = -1. ;
m_METx_raw = 0. ;
m_METy_raw = 0. ;

m_metnomu_phi = -1.;
m_metnomu_et = -1.;
m_METnoMux = 0.;
Expand Down Expand Up @@ -1483,6 +1488,11 @@ struct smallTree
m_smallT->Branch ("METx", &m_METx, "METx/F") ;
m_smallT->Branch ("METy", &m_METy, "METy/F") ;

m_smallT->Branch ("met_raw_phi", &m_met_raw_phi, "met_raw_phi/F") ;
m_smallT->Branch ("met_raw_et", &m_met_raw_et, "met_raw_et/F") ;
m_smallT->Branch ("METx_raw", &m_METx_raw, "METx_raw/F") ;
m_smallT->Branch ("METy_raw", &m_METy_raw, "METy_raw/F") ;

m_smallT->Branch ("metnomu_phi", &m_metnomu_phi, "metnomu_phi/F");
m_smallT->Branch ("metnomu_et", &m_metnomu_et, "metnomu_et/F" );
m_smallT->Branch ("METnoMux", &m_METnoMux, "METnoMux/F" );
Expand Down Expand Up @@ -2589,6 +2599,11 @@ struct smallTree
Float_t m_METx ;
Float_t m_METy ;

Float_t m_met_raw_phi ;
Float_t m_met_raw_et ;
Float_t m_METx_raw ;
Float_t m_METy_raw ;

Float_t m_metnomu_phi;
Float_t m_metnomu_et;
Float_t m_METnoMux;
Expand Down
7 changes: 7 additions & 0 deletions test/skimNtuple_HHbtag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1600,6 +1600,13 @@ int main (int argc, char** argv)
tlv_MET.SetPxPyPzE(met_phi_corr.first, met_phi_corr.second,
0, std::hypot(met_phi_corr.first, met_phi_corr.second));
TVector2 vMET(tlv_MET.Px(), tlv_MET.Py());

theSmallTree.m_met_raw_phi = TVector2::Phi_mpi_pi(vMET.Phi());
theSmallTree.m_met_raw_et = vMET.Mod();
theSmallTree.m_METx_raw = vMET.Px();
theSmallTree.m_METy_raw = vMET.Py();


TVector2 vMUON(0., 0.);
if (pairType==0) {
// single muon in evt, vetoing events with 3rd lepton
Expand Down