CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CombinedTSG.cc
Go to the documentation of this file.
3 
4 #include <map>
5 #include <vector>
6 
7 //constructor
9  theCategory = "CombinedTSG";
10 }
11 
12 //destructor
14  //
15 }
16 
17 void CombinedTSG::trackerSeeds(const TrackCand & muonTrackCand, const TrackingRegion& region, std::vector<TrajectorySeed> & result){
18  //run all the seed generators registered
19 
20  for (unsigned int iTSG=0; iTSG!=theTSGs.size();iTSG++){
21  if(theTSGs[iTSG]) {
22  std::vector<TrajectorySeed> tmpResult;
23  theTSGs[iTSG]->trackerSeeds(muonTrackCand,region,tmpResult);
24  //vector of seeds
25  result.insert(result.end(),tmpResult.begin(),tmpResult.end());
26  }
27  }
28 }
std::pair< const Trajectory *, reco::TrackRef > TrackCand
std::string theCategory
Definition: CombinedTSG.h:22
tuple result
Definition: query.py:137
std::vector< TrackerSeedGenerator * > theTSGs
Definition: CompositeTSG.h:39
CombinedTSG(const edm::ParameterSet &pset)
Definition: CombinedTSG.cc:8
void trackerSeeds(const TrackCand &, const TrackingRegion &, BTSeedCollection &)
provide the seeds from the TSGs: must be overloaded
Definition: CombinedTSG.cc:17