34 theL1MinPt(iConfig.getParameter<double>(
"L1MinPt")),
35 theL1MaxEta(iConfig.getParameter<double>(
"L1MaxEta")),
36 theL1MinQuality(iConfig.getParameter<unsigned
int>(
"L1MinQuality"))
40 produces<L1MuonParticleCollection>();
50 desc.
add<
double>(
"L1MinPt",-1.);
51 desc.
add<
double>(
"L1MaxEta",5.0);
52 desc.
add<
unsigned int>(
"L1MinQuality",0);
53 descriptions.
add(
"hltL1MuonSelector",desc);
65 LogTrace(metname) <<
"Number of muons " << muColl->size() << endl;
67 L1MuonParticleCollection::const_iterator it;
70 for(it = muColl->begin(); it != muColl->end(); ++it,++l1ParticleIndex) {
74 bool valid_charge =
false;;
76 if ( muonCand.
empty() ) {
77 LogWarning(metname) <<
"HLTL1MuonSelector: WARNING, no L1MuGMTCand! " << endl;
78 LogWarning(metname) <<
"HLTL1MuonSelector: this should make sense only within MC tests" << endl;
88 float pt = (*it).pt();
89 float eta = (*it).eta();
91 float phi = (*it).phi();
92 int charge = (*it).charge();
94 if (!valid_charge) charge = 0;
95 bool barrel = !(*it).isForward();
99 LogTrace(metname) <<
"L1 Muon Found";
100 LogTrace(metname) <<
"Pt = " << pt <<
" GeV/c";
102 LogTrace(metname) <<
"theta = " << theta <<
" rad";
103 LogTrace(metname) <<
"phi = " << phi <<
" rad";
std::remove_cv< typename std::remove_reference< argument_type >::type >::type key_type
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const std::string metname
edm::EDGetTokenT< l1extra::L1MuonParticleCollection > muCollToken_
Geom::Theta< T > theta() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
const unsigned theL1MinQuality
bool empty() const
is it an empty muon candidate?
bool charge_valid() const
is the charge valid ?
ParameterDescriptionBase * add(U const &iLabel, T const &value)
HLTL1MuonSelector(const edm::ParameterSet &)
Constructor.
unsigned int quality() const
get quality
~HLTL1MuonSelector()
Destructor.
void add(std::string const &label, ParameterSetDescription const &psetDescription)