Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef L1THPSPFTauFilter_h
0002 #define L1THPSPFTauFilter_h
0003 
0004 /** \class L1THPSPFTauFilter
0005  *
0006  *
0007  *  This class is an HLTFilter (-> EDFilter) implementing a very basic
0008  *  HLT trigger acting on HPSPFTau candidates
0009  *
0010  *
0011  *
0012  *  \author Sandeep Bhowmik
0013  *  \author Thiago Tomei
0014  */
0015 
0016 #include "HLTrigger/HLTcore/interface/HLTFilter.h"
0017 #include "DataFormats/L1TParticleFlow/interface/HPSPFTau.h"
0018 #include "DataFormats/L1TParticleFlow/interface/HPSPFTauFwd.h"
0019 
0020 //
0021 // class declaration
0022 //
0023 
0024 class L1THPSPFTauFilter : public HLTFilter {
0025 public:
0026   explicit L1THPSPFTauFilter(const edm::ParameterSet&);
0027   ~L1THPSPFTauFilter() override;
0028   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0029   bool hltFilter(edm::Event&,
0030                  const edm::EventSetup&,
0031                  trigger::TriggerFilterObjectWithRefs& filterproduct) const override;
0032 
0033 private:
0034   edm::InputTag l1HPSPFTauTag_;                              // input tag for L1 HPSPFTau product
0035   edm::EDGetTokenT<l1t::HPSPFTauCollection> hpspfTauToken_;  // token identifying product containing L1 HPSPFTaus
0036   double min_Pt_;                                            // min pt cut
0037   int min_N_;                                                // min number of candidates above pT cut
0038   double min_Eta_;                                           // min eta cut
0039   double max_Eta_;                                           // max eta cut
0040   double max_RelChargedIso_;                                 // max relative charged isolation
0041   double min_LeadTrackPt_;                                   // min leading track pT
0042   edm::ParameterSet scalings_;           // all scalings. An indirection level allows extra flexibility
0043   std::vector<double> barrelScalings_;   // barrel scalings
0044   std::vector<double> overlapScalings_;  // overlap scalings
0045   std::vector<double> endcapScalings_;   // endcap scalings
0046 
0047   double HPSPFTauOfflineEt(double Et, double Eta) const;
0048 };
0049 
0050 #endif  //L1THPSPFTauFilter_h