CMS 3D CMS Logo

AlignmentSeedSelector.cc
Go to the documentation of this file.
2 
4 
5 // constructor ----------------------------------------------------------------
6 
8  : applySeedNumber(cfg.getParameter<bool>("applySeedNumber")),
9  minNSeeds(cfg.getParameter<int>("minNSeeds")),
10  maxNSeeds(cfg.getParameter<int>("maxNSeeds")) {
11  if (applySeedNumber)
12  edm::LogInfo("AlignmentSeedSelector") << "apply seedNumber N<=" << minNSeeds;
13 }
14 
15 // destructor -----------------------------------------------------------------
16 
18 
19 // do selection ---------------------------------------------------------------
20 
22  Seeds result = seeds;
23 
24  // apply minimum/maximum multiplicity requirement (if selected)
25  if (applySeedNumber) {
26  if (result.size() < (unsigned int)minNSeeds || result.size() > (unsigned int)maxNSeeds)
27  result.clear();
28  }
29 
30  return result;
31 }
32 
33 // make basic cuts ------------------------------------------------------------
34 
35 /* AlignmentSeedSelector::Seeds
36 AlignmentSeedSelector::basicCuts(const Seeds& seeds) const
37 {
38  Seeds result;
39 
40 
41  return result;
42 }
43 
44 //-----------------------------------------------------------------------------
45 
46 AlignmentSeedSelector::Seeds
47 AlignmentSeedSelector::theNHighestPtSeeds(const Seeds& seeds) const
48 {
49 
50  Seeds result;
51 
52 
53  return result;
54 }
55 */
AlignmentSeedSelector(const edm::ParameterSet &cfg)
constructor
Seeds select(const Seeds &seeds, const edm::Event &evt) const
select tracks
Log< level::Info, false > LogInfo
bool applySeedNumber
private data members
std::vector< const TrajectorySeed * > Seeds