Common Filter Modules

Complete: 4

Purpose

Common filter modules are common analysis modules written using the Generic Filter mechanism, and are specialized for a number of different cases. Common selectors are located in the package:

  • CMS.PhysicsTools/RecoFilters

How to create new filters

The Generic Filter mechanism provides a way to easily create new selector modules for all RECO object types with a large variety of selection criteria. Filters of general utility can be requested to the Analysis Tools group and will be released as soon as it is compatible with the release schedule.

Track Filters

TrackCountFilter

TrackCountFilter filters an event if at least N tracks are present, N being a configurable parameter. An example of usage is the following, selecting events with at least three tracks:

module trackFilter = TrackCountFilter {
  InputTag src = ctfWithMaterialTracks
  uint32 minNumber = 3
}

PtMinTrackCountFilter

PtMinTrackCountFilter filters an event if at least N tracks having pt larger than a configurable threshold are present, N being a configurable parameter. An example of usage is the following, selecting events with at least three tracks with pt > 15 GeV/c:

module trackFilter = PtMinTrackCountFilter {
  InputTag src = ctfWithMaterialTracks
  uint32 minNumber = 3
  double ptMin = 15.0
}

Muon Filters

MuonCountFilter

MuonCountFilter filters an event if at least N muons are present, N being a configurable parameter. An example of usage is the following, selecting events with at least three muons:

module muonFilter = MuonCountFilter {
  InputTag src = globalMuons
  uint32 minNumber = 3
}

PtMinMuonCountFilter

PtMinMuonCountFilter filters an event if at least N muons having pt larger than a configurable threshold are present, N being a configurable parameter. An example of usage is the following, selecting events with at least three muons with pt > 15 GeV/c:

module muonFilter = PtMinMuonCountFilter {
  InputTag src = globalMuons
  uint32 minNumber = 3
  double ptMin = 15.0
}

MuonPairMassFilter

MuonPairMassFilter filters an event if at least N muons pairs are present, N being a configurable parameter, with invariant mass in a configurable range. An example of usage is the following, selecting events with at least three muons:

module muonPairFilter = MuonPairMassFilter {
  InputTag src = electrons
  uint32 minNumber = 3
  double rangeMin = 2.9
  double rangeMax = 3.2
}

Electron Filters

ElectronCountFilter

ElectronCountFilter filters an event if at least N electrons are present, N being a configurable parameter. An example of usage is the following, selecting events with at least three electrons:

module electronFilter = ElectronCountFilter {
  InputTag src = electrons
  uint32 minNumber = 3
}

Warning: from release 1_3_0 on, reco::PixelMatchGsfElectron is be the recommended electron collection, so this module should be relaced by an equivalent PixelMatchGsfElectronCountFilter, not implemented yet. As alternative, this filter module should be updated to use edm::View instead of reco::ElectronCollection.

ElectronPairMassFilter

ElectronPairMassFilter filters an event if at least N electron pairs are present, N being a configurable parameter, with invariant mass in a configurable range. An example of usage is the following, selecting events with at least three electrons:

module electronPairFilter = ElectronPairMassFilter {
  InputTag src = electrons
  uint32 minNumber = 3
  double rangeMin = 2.9
  double rangeMax = 3.2
}

Photon Filters

PhotonCountFilter

PhotonCountFilter filters an event if at least N photons are present, N being a configurable parameter. An example of usage is the following, selecting events with at least three photons:

module photonFilter = PhotonCountFilter {
  InputTag src = photons
  uint32 minNumber = 3
}

EtMinPhotonCountFilter

EtMinPhotonCountFilter filters an event if at least N photons, N being a configurable parameter, with Et above a configurable threshold range are present. An example of usage is the following, selecting events with at least three photons:

module photonFilter = EtMinPhotonCountFilter {
  InputTag src = photons
  uint32 minNumber = 3
  double etMin = 10
}

CaloJet Filters

CaloJetCountFilter

CaloJetCountFilter filters an event if at least N calorimetric jets are present, N being a configurable parameter. An example of usage is the following, selecting events with at least three calorimetric jets:

module jetFilter = CaloJetCountFilter {
  InputTag src = ktJets
  uint32 minNumber = 3
}

EtMinCaloJetCountFilter

EtMinCaloJetCountFilter filters an event if at least N calorimetric jets, N being a configurable parameter, with Et above a configurable threshold range are present. An example of usage is the following, selecting events with at least three calorimetric jets:

module jetFilter = EtMinCaloJetCountFilter {
  InputTag src = ktJets
  uint32 minNumber = 3
  double etMin = 20
}

EtaEtMinCaloJetCountFilter

EtaEtMinCaloJetCountFilter filters an event if at least N calorimetric jets, N being a configurable parameter, with Et above a configurable threshold, and within a configurable η range are present. An example of usage is the following, selecting events with at least three calorimetric jets:

module jetFilter = EtaEtMinCaloJetCountFilter {
  InputTag src = ktJets
  uint32 minNumber = 3
  double etMin = 20
  double etaMin = -2
  double etaMax = 2
}

Review Status

Editor/Reviewer and date Comments
LucaLista - 27 Mar 2007 Page author and last content editor

Responsible: LucaLista
Last reviewed by: Reviewer

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r5 - 2007-06-22 - CMSUserSupport



 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CMSPublic All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback