CMS 3D CMS Logo

/data/git/CMSSW_5_3_11_patch5/src/RecoMuon/TrackerSeedGenerator/plugins/CombinedTSG.cc

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