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.
4 
5 #include <map>
6 #include <vector>
7 
8 //constructor
10  theCategory = "CombinedTSG";
11 }
12 
13 //destructor
15  //
16 }
17 
18 void CombinedTSG::trackerSeeds(const TrackCand & muonTrackCand, const TrackingRegion& region, const TrackerTopology *tTopo,
19  std::vector<TrajectorySeed> & result){
20  //run all the seed generators registered
21 
22  for (unsigned int iTSG=0; iTSG!=theTSGs.size();iTSG++){
23  if(theTSGs[iTSG]) {
24  std::vector<TrajectorySeed> tmpResult;
25  theTSGs[iTSG]->trackerSeeds(muonTrackCand,region,tTopo,tmpResult);
26  //vector of seeds
27  result.insert(result.end(),tmpResult.begin(),tmpResult.end());
28  }
29  }
30 }
std::pair< const Trajectory *, reco::TrackRef > TrackCand
tuple result
Definition: mps_fire.py:84
std::string theCategory
Definition: CombinedTSG.h:25
std::vector< TrackerSeedGenerator * > theTSGs
Definition: CompositeTSG.h:41
void trackerSeeds(const TrackCand &, const TrackingRegion &, const TrackerTopology *, BTSeedCollection &)
provide the seeds from the TSGs: must be overloaded
Definition: CombinedTSG.cc:18
CombinedTSG(const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
Definition: CombinedTSG.cc:9