CMS 3D CMS Logo

Public Member Functions | Private Attributes

CombinedTSG Class Reference

#include <CombinedTSG.h>

Inheritance diagram for CombinedTSG:
CompositeTSG TrackerSeedGenerator

List of all members.

Public Member Functions

 CombinedTSG (const edm::ParameterSet &pset)
void trackerSeeds (const TrackCand &, const TrackingRegion &, BTSeedCollection &)
 provide the seeds from the TSGs: must be overloaded
 ~CombinedTSG ()

Private Attributes

std::string theCategory

Detailed Description

Description: CompositeTSG (TrackerSeedGenerator) which combines (with configurable duplicate removal) the output of different TSG.

Author:
Jean-Roch Vlimant, Alessandro Grelli

Definition at line 13 of file CombinedTSG.h.


Constructor & Destructor Documentation

CombinedTSG::CombinedTSG ( const edm::ParameterSet pset)

Definition at line 8 of file CombinedTSG.cc.

References theCategory.

                                                    : CompositeTSG(par) {
  theCategory = "CombinedTSG";
}
CombinedTSG::~CombinedTSG ( )

Definition at line 13 of file CombinedTSG.cc.

                         {
 //
}

Member Function Documentation

void CombinedTSG::trackerSeeds ( const TrackCand muonTrackCand,
const TrackingRegion region,
BTSeedCollection result 
) [virtual]

provide the seeds from the TSGs: must be overloaded

Implements CompositeTSG.

Definition at line 17 of file CombinedTSG.cc.

References CompositeTSG::theTSGs.

                                                                                                                               {
  //run all the seed generators registered

  for (unsigned int iTSG=0; iTSG!=theTSGs.size();iTSG++){
    if(theTSGs[iTSG]) {
      std::vector<TrajectorySeed>  tmpResult;
      theTSGs[iTSG]->trackerSeeds(muonTrackCand,region,tmpResult);
      //vector of seeds
      result.insert(result.end(),tmpResult.begin(),tmpResult.end());
    }
  }
}

Member Data Documentation

std::string CombinedTSG::theCategory [private]

Reimplemented from CompositeTSG.

Definition at line 22 of file CombinedTSG.h.

Referenced by CombinedTSG().