HLTMuonL1RegionalFilter

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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
#ifndef HLTMuonL1RegionalFilter_h
#define HLTMuonL1RegionalFilter_h

/** \class HLTMuonL1RegionalFilter
 *
 *
 *  This filter cuts on MinPt and Quality in specified eta regions
 *
 *
 *  \author Cristina Botta, Zoltan Gecse
 *
 */

#include "HLTrigger/HLTcore/interface/HLTFilter.h"
namespace edm {
  class ConfigurationDescriptions;
}

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

private:
  /// input tag identifying the product containing muons
  edm::InputTag candTag_;
  edm::EDGetTokenT<l1extra::L1MuonParticleCollection> candToken_;

  /// input tag identifying the product containing refs to muons passing the previous level
  edm::InputTag previousCandTag_;
  edm::EDGetTokenT<trigger::TriggerFilterObjectWithRefs> previousCandToken_;

  /// the vector of eta region boundaries; note: # of boundaries = # of regions + 1
  std::vector<double> etaBoundaries_;

  /// the vector of MinPt values, one for eta each region
  std::vector<double> minPts_;

  /// Quality codes:
  ///
  /// 0  .. no muon
  /// 1  .. beam halo muon (CSC)
  /// 2  .. very low quality level 1 (e.g. ignore in single and di-muon trigger)
  /// 3  .. very low quality level 2 (e.g. ignore in single muon trigger use in di-muon trigger)
  /// 4  .. very low quality level 3 (e.g. ignore in di-muon trigger, use in single-muon trigger)
  /// 5  .. unmatched RPC
  /// 6  .. unmatched DT or CSC
  /// 7  .. matched DT-RPC or CSC-RPC
  ///
  /// attention: try not to rely on quality codes in analysis: they may change again
  ///
  /// Quality bit mask:
  ///
  /// the eight lowest order or least significant bits correspond to the qulity codes above;
  /// if a bit is 1, that code is accepted, otherwise not;
  /// example: 11101000 accepts qualities 3, 5, 6, 7
  ///
  /// the vector of quality bit masks, one for each eta region
  std::vector<int> qualityBitMasks_;

  /// required number of passing candidates to pass the filter
  int minN_;
};

#endif  //HLTMuonL1RegionalFilter_h