SusyNtuple
|
00001 #ifndef RecoTruthClassification_h 00002 #define RecoTruthClassification_h 00003 00004 //------------------------------------------ 00005 // Classify reco lepton based on truth 00006 // 00007 // author: Anyes Taffard 00008 //------------------------------------------ 00009 00010 enum type{ 00011 PROMPT, 00012 CONV, 00013 HF, 00014 LF, 00015 ELEC, 00016 MUON, 00017 QJET, 00018 GJET, 00019 UK 00020 }; 00021 00023 bool isRealLepton(int Origin, int Type, int mcMatchPdgId, bool isTau = false); 00024 00026 bool isConvLepton(int Origin, int Type, int mcMatchPdgId, bool isTau = false); 00027 00029 bool isFakeLepton(int Origin, int Type, int mcMatchPdgId, bool isTau = false); 00030 00032 bool isHFLepton(int Origin, int Type, int mcMatchPdgId, bool isTau = false); 00033 00035 bool isLFLepton(int Origin, int Type, int mcMatchPdgId, bool isTau = false); 00036 00038 bool isJFLepton(int Origin, int Type, int mcMatchPdgId, bool isTau = false); 00039 00041 bool isUKLepton(int Origin, int Type, int mcMatchPdgId, bool isTau = false); 00042 00044 int fakeType(int Origin, int Type, int mcMatchPdgId, bool isTau = false); 00045 00047 bool isPromptElectron(int type, int origin); 00048 00049 00050 #endif