CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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,
19  const TrackingRegion& region,
20  const TrackerTopology* tTopo,
21  std::vector<TrajectorySeed>& result) {
22  //run all the seed generators registered
23 
24  for (unsigned int iTSG = 0; iTSG != theTSGs.size(); iTSG++) {
25  if (theTSGs[iTSG]) {
26  std::vector<TrajectorySeed> tmpResult;
27  theTSGs[iTSG]->trackerSeeds(muonTrackCand, region, tTopo, tmpResult);
28  //vector of seeds
29  result.insert(result.end(), tmpResult.begin(), tmpResult.end());
30  }
31  }
32 }
~CombinedTSG() override
Definition: CombinedTSG.cc:14
std::pair< const Trajectory *, reco::TrackRef > TrackCand
tuple result
Definition: mps_fire.py:311
std::string theCategory
Definition: CombinedTSG.h:25
std::vector< std::unique_ptr< TrackerSeedGenerator > > theTSGs
Definition: CompositeTSG.h:39
void trackerSeeds(const TrackCand &, const TrackingRegion &, const TrackerTopology *, BTSeedCollection &) override
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