33 theL1MinPt(iConfig.getParameter<double>(
"L1MinPt")),
34 theL1MaxEta(iConfig.getParameter<double>(
"L1MaxEta")),
35 theL1MinQuality(iConfig.getParameter<unsigned
int>(
"L1MinQuality")) {
38 produces<L1MuonParticleCollection>();
47 desc.add<
double>(
"L1MinPt", -1.);
48 desc.add<
double>(
"L1MaxEta", 5.0);
49 desc.add<
unsigned int>(
"L1MinQuality", 0);
50 descriptions.
add(
"hltL1MuonSelector",
desc);
63 L1MuonParticleCollection::const_iterator
it;
66 for (
it = muColl->begin();
it != muColl->end(); ++
it, ++l1ParticleIndex) {
69 bool valid_charge =
false;
72 if (muonCand.
empty()) {
74 LogWarning(
metname) <<
"HLTL1MuonSelector: this should make sense only within MC tests" << endl;
83 float pt = (*it).pt();
84 float eta = (*it).eta();
86 float phi = (*it).phi();
87 int charge = (*it).charge();
91 bool barrel = !(*it).isForward();
std::remove_cv< typename std::remove_reference< argument_type >::type >::type key_type
const std::string metname
edm::EDGetTokenT< l1extra::L1MuonParticleCollection > muCollToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const unsigned theL1MinQuality
unsigned int quality() const
get quality
~HLTL1MuonSelector() override
Destructor.
bool charge_valid() const
is the charge valid ?
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
#define DEFINE_FWK_MODULE(type)
bool empty() const
is it an empty muon candidate?
HLTL1MuonSelector(const edm::ParameterSet &)
Constructor.
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Log< level::Warning, false > LogWarning
Geom::Theta< T > theta() const