Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:49:44

0001 #ifndef HLTHemiDPhiFilter_h
0002 #define HLTHemiDPhiFilter_h
0003 
0004 #include "HLTrigger/HLTcore/interface/HLTFilter.h"
0005 #include <vector>
0006 #include "TVector3.h"
0007 #include "TLorentzVector.h"
0008 
0009 namespace edm {
0010   class ConfigurationDescriptions;
0011 }
0012 
0013 //
0014 // class declaration
0015 //
0016 
0017 class HLTHemiDPhiFilter : public HLTFilter {
0018 public:
0019   explicit HLTHemiDPhiFilter(const edm::ParameterSet&);
0020   ~HLTHemiDPhiFilter() override;
0021   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0022   bool hltFilter(edm::Event&,
0023                  const edm::EventSetup&,
0024                  trigger::TriggerFilterObjectWithRefs& filterproduct) const override;
0025 
0026 private:
0027   edm::EDGetTokenT<std::vector<math::XYZTLorentzVector>> m_theHemiToken;
0028   static double deltaPhi(double, double);  //helper function
0029 
0030   edm::InputTag inputTag_;  // input tag identifying product
0031   double min_dphi_;         // minimum dphi value
0032   bool accept_NJ_;          // accept or reject events with high NJ
0033 };
0034 
0035 #endif  //HLTHemiDPhiFilter_h