SusyNtuple
SusyNtuple/TrilTrigLogic.h
00001 #ifdef FOO // dantrim July 5 2015 :: this class is obsolete, hide it from compiler
00002 
00003 #ifndef SusyNtuple_TrilTrigLogic_h
00004 #define SusyNtuple_TrilTrigLogic_h
00005 
00006 #include "TFile.h"
00007 
00008 #include "ReweightUtils/APWeightEntry.h"
00009 #include "ReweightUtils/APReweightND.h"
00010 #include "ReweightUtils/APEvtWeight.h"
00011 
00012 #include "SusyNt.h"
00013 #include "SusyNtuple/SusyDefs.h"
00014 #include "SusyNtuple/SusyNtObject.h"
00015 
00016 
00018 class TrilTrigLogic
00019 {
00020 
00021   public:
00022 
00023     TrilTrigLogic();
00024     ~TrilTrigLogic();
00025 
00027     void loadTriggerMaps();
00028     APReweightND* loadTrigWeighter(TFile* f, TString chain);
00029 
00031     bool passEventTrigger(const Susy::Event* evt);
00032 
00034     //bool passTriggerMatching(const LeptonVector& leptons, Event* evt);
00035     bool passTriggerMatching(const LeptonVector& leptons, const TauVector& taus, const Susy::Event* evt, 
00036                              bool useDilepTrigs=true);
00037     bool matchLepTrigger(const Susy::Lepton* lep, int trigMask, float ptMin, float etaMax, 
00038                          bool accOnly=false);
00039     bool matchTauTrigger(const Susy::Tau* tau, int trigMask, float ptMin, bool accOnly=false);
00040 
00041     //bool matchLepTrigger(const Susy::Lepton* lep, int trigMask, float ptThreshold=0, 
00042     //                     bool accOnly=false) { 
00043     //  return lep->Pt() > ptThreshold && (accOnly || lep->matchTrig(trigMask)); 
00044     //}
00045     //bool matchTauTrigger(const Susy::Tau* tau, int trigMask, float ptThreshold=0, 
00046     //                     bool accOnly=false){
00047     //  return tau->Pt() > ptThreshold && (accOnly || tau->matchTrig(trigMask));
00048     //}
00049 
00051     float getTriggerWeight(const LeptonVector& leptons, const Susy::Event* evt);
00052 
00054     void setAccOnly(bool doIt=true) { m_accOnly = doIt; }
00055 
00057     void setDebug(bool doIt=true) { m_dbg = doIt; }
00058 
00059   protected:
00060 
00061     bool                m_accOnly;      
00062 
00063     int                 m_dbg;          
00064 
00065 };
00066 
00067 #endif
00068 
00069 #endif
 All Classes Functions Variables Typedefs Enumerations Enumerator