ra4_draw  4bd0201e3d922d42bd545d4b045ed44db33454a4
functions.hpp
Go to the documentation of this file.
1 #ifndef H_FUNCTIONS
2 #define H_FUNCTIONS
3 
4 #include <cstddef>
5 
6 #include "core/named_func.hpp"
7 
8 namespace Functions{
9  extern const NamedFunc n_isr_match;
10  extern const NamedFunc njets_weights_ttisr;
11  extern const NamedFunc njets_weights_visr;
12  extern const NamedFunc min_dphi_lep_met;
13  extern const NamedFunc max_dphi_lep_met;
14  extern const NamedFunc min_dphi_lep_jet;
15  extern const NamedFunc max_dphi_lep_jet;
16  extern const NamedFunc min_dphi_met_jet;
17  extern const NamedFunc max_dphi_met_jet;
18  extern const NamedFunc min_dr_lep_jet;
19  extern const NamedFunc max_dr_lep_jet;
20 
21  bool IsGoodJet(const Baby &b, std::size_t ijet);
22  bool IsGoodElectron(const Baby &b, std::size_t iel);
23  bool IsGoodMuon(const Baby &b, std::size_t imu);
24  bool IsGoodTrack(const Baby &b, std::size_t itk);
25 
26  NamedFunc::ScalarType NJetsWeights_ttISR(const Baby &b, bool use_baby_nisr);
28  int NISRMatch(const Baby &b);
29 
30  void DileptonAngles(const Baby &b,
33 }
34 
35 #endif
const NamedFunc min_dphi_lep_met
const NamedFunc njets_weights_ttisr
const NamedFunc min_dr_lep_jet
int NISRMatch(const Baby &b)
Definition: functions.cpp:238
const NamedFunc max_dphi_lep_jet
Abstract base class for access to ntuple variables.
Definition: baby.hpp:16
const NamedFunc njets_weights_visr
Combines a callable function taking a Baby and returning a scalar or vector with its string represent...
Definition: named_func.hpp:13
bool IsGoodMuon(const Baby &b, std::size_t imu)
double ScalarType
Definition: named_func.hpp:15
const NamedFunc max_dr_lep_jet
NamedFunc::ScalarType NJetsWeights_ttISR(const Baby &b, bool use_baby_nisr)
Definition: functions.cpp:201
const NamedFunc min_dphi_lep_jet
const NamedFunc n_isr_match
const NamedFunc min_dphi_met_jet
const NamedFunc max_dphi_met_jet
bool IsGoodJet(const Baby &b, std::size_t ijet)
bool IsGoodElectron(const Baby &b, std::size_t iel)
bool IsGoodTrack(const Baby &b, std::size_t itk)
void DileptonAngles(const Baby &b, NamedFunc::ScalarType &eta1, NamedFunc::ScalarType &phi1, NamedFunc::ScalarType &eta2, NamedFunc::ScalarType &phi2)
Definition: functions.cpp:259
const NamedFunc max_dphi_lep_met
NamedFunc::ScalarType NJetsWeights_vISR(const Baby &b)
Definition: functions.cpp:219