00001 #include "RecoMuon/TrackerSeedGenerator/plugins/CombinedTSG.h" 00002 #include "FWCore/MessageLogger/interface/MessageLogger.h" 00003 #include "DataFormats/TrackerCommon/interface/TrackerTopology.h" 00004 00005 #include <map> 00006 #include <vector> 00007 00008 //constructor 00009 CombinedTSG::CombinedTSG(const edm::ParameterSet & par) : CompositeTSG(par) { 00010 theCategory = "CombinedTSG"; 00011 } 00012 00013 //destructor 00014 CombinedTSG::~CombinedTSG(){ 00015 // 00016 } 00017 00018 void CombinedTSG::trackerSeeds(const TrackCand & muonTrackCand, const TrackingRegion& region, const TrackerTopology *tTopo, 00019 std::vector<TrajectorySeed> & result){ 00020 //run all the seed generators registered 00021 00022 for (unsigned int iTSG=0; iTSG!=theTSGs.size();iTSG++){ 00023 if(theTSGs[iTSG]) { 00024 std::vector<TrajectorySeed> tmpResult; 00025 theTSGs[iTSG]->trackerSeeds(muonTrackCand,region,tTopo,tmpResult); 00026 //vector of seeds 00027 result.insert(result.end(),tmpResult.begin(),tmpResult.end()); 00028 } 00029 } 00030 }