Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:20:29

0001 #ifndef HLTPFEnergyFractionsFilter_h
0002 #define HLTPFEnergyFractionsFilter_h
0003 
0004 /** \class HLTPFEnergyFractionsFilter
0005  *
0006  *  \author Srimanobhas Phat
0007  *
0008  *  This filter is used to filter the PFJet collection using JetID.
0009  *  If you want to work with general PFJet collection, please use PFJetIDProducer instead.
0010  *
0011  *  This filter will reject event in 2 cases, 
0012  *   (1) No. of jets < NJet_ threshold. The default is 1 (You really need to be careful this setting).
0013  *   (2) One or more first NJet_ jets has PFEFs out of thresholds.
0014  *
0015  *  Just to warn you that, analyzers need to understand well their signals and percentage of loss if you apply this cut.
0016  *
0017  */
0018 
0019 #include "HLTrigger/HLTcore/interface/HLTFilter.h"
0020 
0021 #include "DataFormats/JetReco/interface/PFJet.h"
0022 #include "DataFormats/JetReco/interface/PFJetCollection.h"
0023 
0024 namespace edm {
0025   class ConfigurationDescriptions;
0026 }
0027 
0028 //
0029 // class declaration
0030 //
0031 
0032 class HLTPFEnergyFractionsFilter : public HLTFilter {
0033 public:
0034   explicit HLTPFEnergyFractionsFilter(const edm::ParameterSet&);
0035   ~HLTPFEnergyFractionsFilter() override;
0036   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0037   bool hltFilter(edm::Event&,
0038                  const edm::EventSetup&,
0039                  trigger::TriggerFilterObjectWithRefs& filterproduct) const override;
0040 
0041 private:
0042   edm::EDGetTokenT<reco::PFJetCollection> m_thePFJetToken;
0043   edm::InputTag inputPFJetTag_;  // input tag identifying pfjets
0044   unsigned int nJet_;            // No. of jet to check with this filter
0045   double min_CEEF_;
0046   double max_CEEF_;
0047   double min_NEEF_;
0048   double max_NEEF_;
0049   double min_CHEF_;
0050   double max_CHEF_;
0051   double min_NHEF_;
0052   double max_NHEF_;
0053   int triggerType_;
0054 };
0055 
0056 #endif  //HLTPFEnergyFractionsFilter_h