00001 #include "RecoMuon/TrackerSeedGenerator/plugins/DualByEtaTSG.h" 00002 #include "FWCore/MessageLogger/interface/MessageLogger.h" 00003 00004 DualByEtaTSG::DualByEtaTSG(const edm::ParameterSet &pset) : SeparatingTSG(pset){ 00005 theCategory ="DualByEtaTSG"; 00006 theEtaSeparation = pset.getParameter<double>("etaSeparation"); 00007 if (nTSGs()!=2) 00008 {edm::LogError(theCategory)<<"not two seed generators provided";} 00009 } 00010 00011 unsigned int DualByEtaTSG::selectTSG(const TrackCand & muonTrackCand, const TrackingRegion& region) 00012 { 00013 LogDebug(theCategory)<<"|eta|=|"<<muonTrackCand.second->eta()<<"|" 00014 <<" compared to: "<<theEtaSeparation; 00015 return (fabs(muonTrackCand.second->eta()) < theEtaSeparation); 00016 } 00017