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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
#ifndef HLTMuonL1Filter_h
#define HLTMuonL1Filter_h
/** \class HLTMuonL1Filter
*
*
* This class is an HLTFilter (-> EDFilter) implementing a
* filter on L1 GMT input
*
* \author J. Alcaraz
*
*/
#include "HLTrigger/HLTcore/interface/HLTFilter.h"
#include "DataFormats/L1Trigger/interface/L1MuonParticle.h"
#include "DataFormats/L1Trigger/interface/L1MuonParticleFwd.h"
// CSCTF
#include "DataFormats/L1CSCTrackFinder/interface/L1CSCTrackCollection.h"
#include "L1Trigger/CSCTrackFinder/interface/CSCTrackFinderDataTypes.h"
#include "CondFormats/L1TObjects/interface/L1MuTriggerScales.h"
#include "CondFormats/DataRecord/interface/L1MuTriggerScalesRcd.h"
namespace edm {
class ConfigurationDescriptions;
}
class HLTMuonL1Filter : public HLTFilter {
public:
explicit HLTMuonL1Filter(const edm::ParameterSet&);
~HLTMuonL1Filter() override;
static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
bool hltFilter(edm::Event&,
const edm::EventSetup&,
trigger::TriggerFilterObjectWithRefs& filterproduct) const override;
private:
edm::ESGetToken<L1MuTriggerScales, L1MuTriggerScalesRcd> const l1MuTriggerScalesRcdToken_;
/// 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_;
/// max Eta cut
double maxEta_;
/// pT threshold
double minPt_;
/// 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
int qualityBitMask_;
/// required number of passing candidates to pass the filter
int minN_;
/// should we exclude single-segment CSC trigger objects from our counting?
bool excludeSingleSegmentCSC_;
/// checks if the passed L1MuExtraParticle is a single segment CSC
bool isSingleSegmentCSC(const l1extra::L1MuonParticleRef& muon,
L1CSCTrackCollection const& csctfTracks,
L1MuTriggerScales const& scales) const;
/// input tag identifying the product containing CSCTF tracks
edm::InputTag csctfTag_;
edm::EDGetTokenT<L1CSCTrackCollection> csctfToken_;
};
#endif //HLTMuonL1Filter_h
|