HLTMuonPFIsoFilter

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
#ifndef HLTMuonPFIsoFilter_h
#define HLTMuonPFIsoFilter_h

/** \class HLTMuonPFIsoFilter
 *
 *
 *  This class is an HLTFilter (-> EDFilter) implementing
 *  the isolation filtering for HLT muons
 *
 *
 */

#include "HLTrigger/HLTcore/interface/HLTFilter.h"
#include "DataFormats/RecoCandidate/interface/RecoChargedCandidateFwd.h"
#include "RecoMuon/MuonIsolation/interface/MuIsoBaseIsolator.h"
#include "RecoMuon/MuonIsolation/interface/MuonIsolatorFactory.h"
#include "DataFormats/RecoCandidate/interface/IsoDepositFwd.h"

namespace edm {
  class ConfigurationDescriptions;
}

class HLTMuonPFIsoFilter : public HLTFilter {
public:
  explicit HLTMuonPFIsoFilter(const edm::ParameterSet &);
  ~HLTMuonPFIsoFilter() override;
  static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
  bool hltFilter(edm::Event &,
                 const edm::EventSetup &,
                 trigger::TriggerFilterObjectWithRefs &filterproduct) const override;

private:
  static bool triggerdByPreviousLevel(const reco::RecoChargedCandidateRef &,
                                      const std::vector<reco::RecoChargedCandidateRef> &);

  edm::InputTag candTag_;                                             // input tag identifying muon container
  edm::EDGetTokenT<reco::RecoChargedCandidateCollection> candToken_;  // token identifying muon container
  edm::InputTag previousCandTag_;  // input tag identifying product contains muons passing the previous level
  edm::EDGetTokenT<trigger::TriggerFilterObjectWithRefs>
      previousCandToken_;              // token identifying product contains muons passing the previous level
  std::vector<edm::InputTag> depTag_;  // input tags identifying deposit maps
  std::vector<edm::EDGetTokenT<edm::ValueMap<double> > > depToken_;  // tokens identifying deposit maps
  edm::InputTag rhoTag_;                                             // input tag identifying rho container
  edm::EDGetTokenT<double> rhoToken_;                                // token identifying rho container

  double maxIso_;     // max PF iso deposit allowed
  int min_N_;         // minimum number of muons to fire the trigger
  bool onlyCharged_;  // if true, only consider the charged component for isolation
  bool doRho_;        // if true, apply deltaBeta correction
  double effArea_;    // value for effective area for rho correction
};

#endif  //HLTMuonPFIsoFilter_h