File indexing completed on 2024-04-06 12:27:15
0001 #include "RecoMuon/TrackerSeedGenerator/plugins/DualByEtaTSG.h"
0002 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0003
0004 DualByEtaTSG::DualByEtaTSG(const edm::ParameterSet& pset, edm::ConsumesCollector& IC) : SeparatingTSG(pset, IC) {
0005 theCategory = "DualByEtaTSG";
0006 theEtaSeparation = pset.getParameter<double>("etaSeparation");
0007 if (nTSGs() != 2) {
0008 edm::LogError(theCategory) << "not two seed generators provided";
0009 }
0010 }
0011
0012 unsigned int DualByEtaTSG::selectTSG(const TrackCand& muonTrackCand, const TrackingRegion& region) {
0013 LogDebug(theCategory) << "|eta|=|" << muonTrackCand.second->eta() << "|"
0014 << " compared to: " << theEtaSeparation;
0015 return (fabs(muonTrackCand.second->eta()) < theEtaSeparation);
0016 }