Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #include "RecoMuon/TrackerSeedGenerator/plugins/CombinedTSG.h"
0002 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0003 #include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
0004 
0005 #include <map>
0006 #include <vector>
0007 
0008 //constructor
0009 CombinedTSG::CombinedTSG(const edm::ParameterSet& par, edm::ConsumesCollector& iC) : CompositeTSG(par, iC) {
0010   theCategory = "CombinedTSG";
0011 }
0012 
0013 //destructor
0014 CombinedTSG::~CombinedTSG() {
0015   //
0016 }
0017 
0018 void CombinedTSG::trackerSeeds(const TrackCand& muonTrackCand,
0019                                const TrackingRegion& region,
0020                                const TrackerTopology* tTopo,
0021                                std::vector<TrajectorySeed>& result) {
0022   //run all the seed generators registered
0023 
0024   for (unsigned int iTSG = 0; iTSG != theTSGs.size(); iTSG++) {
0025     if (theTSGs[iTSG]) {
0026       std::vector<TrajectorySeed> tmpResult;
0027       theTSGs[iTSG]->trackerSeeds(muonTrackCand, region, tTopo, tmpResult);
0028       //vector of seeds
0029       result.insert(result.end(), tmpResult.begin(), tmpResult.end());
0030     }
0031   }
0032 }