33 theL1Source_(iConfig.getParameter<
InputTag>(
"InputObjects")),
34 theL1MinPt_(iConfig.getParameter<double>(
"L1MinPt")),
35 theL1MaxEta_(iConfig.getParameter<double>(
"L1MaxEta")),
36 theL1MinQuality_(iConfig.getParameter<unsigned
int>(
"L1MinQuality")),
37 centralBxOnly_( iConfig.getParameter<bool>(
"CentralBxOnly") ),
38 theL2CandTag_ (iConfig.getParameter<
edm::
InputTag > (
"L2CandTag")),
40 seedMapTag_( iConfig.getParameter<
InputTag >(
"SeedMapTag") ),
41 seedMapToken_(consumes<
SeedMap>(seedMapTag_))
45 produces<MuonBxCollection>();
57 desc.
add<
double>(
"L1MinPt",-1.);
58 desc.
add<
double>(
"L1MaxEta",5.0);
59 desc.
add<
unsigned int>(
"L1MinQuality",0);
63 desc.
add<
bool>(
"CentralBxOnly",
true);
64 descriptions.
add(
"hltL1MuonNoL2Selector",desc);
84 LogTrace(metname) <<
"Number of muons " << muColl->
size() << endl;
91 for (
auto it = muColl->
begin(ibx); it != muColl->
end(ibx); it++){
94 unsigned int quality = it->hwQual();
96 float eta = it->eta();
101 bool isTriggeredByL1=
false;
102 for (
auto const &
cand : *L2cands) {
105 for(
auto const &
seed : seeds){
107 if(
seed->l1tParticle()==l1muon) {
108 isTriggeredByL1 =
true;
112 if (isTriggeredByL1)
break;
115 if (!isTriggeredByL1) {
const_iterator end(int bx) const
void setComment(std::string const &value)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
unsigned size(int bx) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const std::string metname
HLTL1MuonNoL2Selector(const edm::ParameterSet &)
Constructor.
virtual void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< l1t::MuonBxCollection > muCollToken_
edm::EDGetTokenT< reco::RecoChargedCandidateCollection > theL2CandToken_
edm::InputTag theL1Source_
Abs< T >::type abs(const T &t)
ParameterDescriptionNode * addOptionalNode(ParameterDescriptionNode const &node, bool writeToCfi)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
const double theL1MaxEta_
BXVector< Muon > MuonBxCollection
std::vector< RecoChargedCandidate > RecoChargedCandidateCollection
collectin of RecoChargedCandidate objects
edm::EDGetTokenT< SeedMap > seedMapToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
~HLTL1MuonNoL2Selector()
Destructor.
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
const_iterator begin(int bx) const
const unsigned theL1MinQuality_