Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:26:13

0001 #include "RecoMuon/TrackerSeedGenerator/plugins/SeparatingTSG.h"
0002 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0003 #include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
0004 
0005 SeparatingTSG::SeparatingTSG(const edm::ParameterSet& pset, edm::ConsumesCollector& IC) : CompositeTSG(pset, IC) {}
0006 
0007 SeparatingTSG::~SeparatingTSG() {}
0008 
0009 void SeparatingTSG::trackerSeeds(const TrackCand& muonTrackCand,
0010                                  const TrackingRegion& region,
0011                                  const TrackerTopology* tTopo,
0012                                  std::vector<TrajectorySeed>& result) {
0013   unsigned int sel = selectTSG(muonTrackCand, region);
0014   LogDebug(theCategory) << "choosing: " << theNames[sel] << ", at index [" << sel << "]";
0015   if (theTSGs[sel]) {
0016     std::vector<TrajectorySeed> tmpResult;
0017     theTSGs[sel]->trackerSeeds(muonTrackCand, region, tTopo, tmpResult);
0018     result.insert(result.end(), tmpResult.begin(), tmpResult.end());
0019   }
0020 }