test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
12 
13  if (applySeedNumber)
14  edm::LogInfo("AlignmentSeedSelector")
15  << "apply seedNumber N<=" << minNSeeds;
16 
17 }
18 
19 // destructor -----------------------------------------------------------------
20 
22 {}
23 
24 
25 // do selection ---------------------------------------------------------------
26 
28 AlignmentSeedSelector::select(const Seeds& seeds, const edm::Event& evt) const
29 {
30  Seeds result = seeds;
31 
32  // apply minimum/maximum multiplicity requirement (if selected)
33  if (applySeedNumber) {
34  if (result.size()<(unsigned int)minNSeeds || result.size()>(unsigned int)maxNSeeds ) result.clear();
35  }
36 
37  return result;
38 
39 }
40 
41 // make basic cuts ------------------------------------------------------------
42 
43 /* AlignmentSeedSelector::Seeds
44 AlignmentSeedSelector::basicCuts(const Seeds& seeds) const
45 {
46  Seeds result;
47 
48 
49  return result;
50 }
51 
52 //-----------------------------------------------------------------------------
53 
54 AlignmentSeedSelector::Seeds
55 AlignmentSeedSelector::theNHighestPtSeeds(const Seeds& seeds) const
56 {
57 
58  Seeds result;
59 
60 
61  return result;
62 }
63 */
tuple cfg
Definition: looper.py:293
tuple result
Definition: mps_fire.py:83
AlignmentSeedSelector(const edm::ParameterSet &cfg)
constructor
Seeds select(const Seeds &seeds, const edm::Event &evt) const
select tracks
bool applySeedNumber
private data members
std::vector< const TrajectorySeed * > Seeds