18 useOuterHitPosition_(iConfig.getParameter<bool>(
"useOuterHitPosition")),
19 xDiffMax_(iConfig.getParameter<double>(
"xDiffMax")),
20 yDiffMax_(iConfig.getParameter<double>(
"yDiffMax")),
21 zDiffMax_(iConfig.getParameter<double>(
"zDiffMax")),
22 dRDiffMax_(iConfig.getParameter<double>(
"dRDiffMax")){
23 LogTrace(
"Muon|RecoMuon|HLTMuonL2SelectorForL3IO")<<
"constructor called";
24 produces<reco::TrackCollection>();
42 std::auto_ptr<std::vector<reco::Track> >
result(
new std::vector<reco::Track>());
44 auto const& l2Tracks = *l2TrackCol.
product();
45 auto const& l3Tracks = *l3TrackCol.
product();
46 for (
auto&& l2 : l2Tracks){
48 for (
auto&& l3 : l3Tracks){
62 if (!l2found) result->push_back(l2);
72 desc.
add<
bool>(
"useOuterHitPosition",
true);
73 desc.
add<
double>(
"xDiffMax",0.5);
74 desc.
add<
double>(
"yDiffMax",0.5);
75 desc.
add<
double>(
"zDiffMax",9999.0);
76 desc.
add<
double>(
"dRDiffMax",0.01);
77 descriptions.
add(
"HLTMuonL2SelectorForL3IO",desc);
HLTMuonL2SelectorForL3IO(const edm::ParameterSet &)
constructor with config
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const std::string metname
std::vector< Track > TrackCollection
collection of Tracks
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
default values
const edm::EDGetTokenT< reco::TrackCollection > l3OISrc_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Abs< T >::type abs(const T &t)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
double deltaR(double eta1, double eta2, double phi1, double phi2)
T const * product() const
const edm::EDGetTokenT< reco::TrackCollection > l2Src_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const bool useOuterHitPosition_
virtual void produce(edm::Event &, const edm::EventSetup &)
select muons
virtual ~HLTMuonL2SelectorForL3IO()
destructor