Skip to content

Commit

Permalink
add possibility to avoid matching to the L1 firing L1 seed
Browse files Browse the repository at this point in the history
  • Loading branch information
sarafiorendi committed Jun 21, 2017
1 parent 94667db commit 75570f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions HLTrigger/Muon/interface/HLTMuonL2FromL1TPreFilter.h
Expand Up @@ -84,6 +84,10 @@ class HLTMuonL2FromL1TPreFilter : public HLTFilter {

/// pt uncertainty margin (in number of sigmas)
double nSigmaPt_;

/// require the matching with the L1 firing the L1 filter
bool matchPreviousCand_;

};

#endif //HLTMuonL2FromL1TPreFilter_h
6 changes: 4 additions & 2 deletions HLTrigger/Muon/src/HLTMuonL2FromL1TPreFilter.cc
Expand Up @@ -44,7 +44,8 @@ HLTMuonL2FromL1TPreFilter::HLTMuonL2FromL1TPreFilter(const edm::ParameterSet& iC
maxDz_( iConfig.getParameter<double>("MaxDz") ),
min_DxySig_(iConfig.getParameter<double> ("MinDxySig")),
minPt_( iConfig.getParameter<double>("MinPt") ),
nSigmaPt_( iConfig.getParameter<double>("NSigmaPt") )
nSigmaPt_( iConfig.getParameter<double>("NSigmaPt") ),
matchPreviousCand_( iConfig.getParameter<bool>("MatchToPreviousCand") )
{
using namespace std;

Expand Down Expand Up @@ -125,6 +126,7 @@ HLTMuonL2FromL1TPreFilter::fillDescriptions(edm::ConfigurationDescriptions& desc
desc.add<double>("MinDxySig",-1.0);
desc.add<double>("MinPt",0.0);
desc.add<double>("NSigmaPt",0.0);
desc.add<bool>("MatchToPreviousCand",true);
descriptions.add("hltMuonL2FromL1TPreFilter",desc);
}

Expand Down Expand Up @@ -169,7 +171,7 @@ bool HLTMuonL2FromL1TPreFilter::hltFilter(edm::Event& iEvent, const edm::EventSe
TrackRef mu = cand->get<TrackRef>();

// check if this muon passed previous level
if(!mapL2ToL1.isTriggeredByL1(mu)) continue;
if(matchPreviousCand_ && !mapL2ToL1.isTriggeredByL1(mu)) continue;

// eta cut
if(std::abs(mu->eta()) > maxEta_) continue;
Expand Down

0 comments on commit 75570f1

Please sign in to comment.