10 #include "DataFormats/PatCandidates/interface/Electron.h" 11 #include "FWCore/MessageLogger/interface/MessageLogger.h" 12 #include <fastjet/PseudoJet.hh> 15 typedef std::vector<const reco::Candidate*>
vCands;
16 typedef reco::Candidate::LorentzVector
LVector;
18 #define ERROR(x) do{throw cms::Exception("babymaker") << "In " << __FILE__ << " at line " << __LINE__ << " (in function " << __func__ << "): " << x << std::endl;}while(false) 19 #define DBG(x) do{edm::LogError("babymaker") << "In " << __FILE__ << " at line " << __LINE__ << " (in function " << __func__ << "): " << x << std::endl;}while(false) 24 bool contains(
const std::string &
s,
const std::string &pat);
27 float dPhi(
float phi1,
float phi2);
28 float dR(
float phi1,
float phi2,
float eta1,
float eta2);
29 bool greaterPt(
const reco::Candidate *a,
const reco::Candidate *b);
30 bool greaterM(
const fastjet::PseudoJet &a,
const fastjet::PseudoJet &b);
31 float getMT(
float pt1,
float phi1,
float pt2,
float phi2);
32 float getMT(
float m1,
float pt1,
float phi1,
33 float m2,
float pt2,
float phi2);
34 float getMT2(
float pt1,
float phi1,
float pt2,
float phi2,
float met,
float met_phi);
35 float getMT2(
float m1,
float pt1,
float phi1,
36 float m2,
float pt2,
float phi2,
37 float met,
float met_phi);
39 TString
roundNumber(
double num,
int decimals,
double denom=1.);
bool greaterM(const fastjet::PseudoJet &a, const fastjet::PseudoJet &b)
TString addCommas(double num)
std::vector< const reco::Candidate * > vCands
bool contains(const std::string &s, const std::string &pat)
TString roundNumber(double num, int decimals, double denom=1.)
float getMT(float pt1, float phi1, float pt2, float phi2)
float dR(float phi1, float phi2, float eta1, float eta2)
bool greaterPt(const reco::Candidate *a, const reco::Candidate *b)
float sumMass(const LVector &a, const LVector &b)
reco::Candidate::LorentzVector LVector
std::string execute(const std::string &cmd)
float dPhi(float phi1, float phi2)
float getMT2(float pt1, float phi1, float pt2, float phi2, float met, float met_phi)
float sumPt(const LVector &a, const LVector &b)