CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/Alignment/CommonAlignmentProducer/src/AlignmentSeedSelector.cc

Go to the documentation of this file.
00001 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00002 
00003 #include "Alignment/CommonAlignmentProducer/interface/AlignmentSeedSelector.h"
00004 
00005 // constructor ----------------------------------------------------------------
00006 
00007 AlignmentSeedSelector::AlignmentSeedSelector(const edm::ParameterSet & cfg) :
00008   applySeedNumber( cfg.getParameter<bool>( "applySeedNumber" ) ),
00009   minNSeeds ( cfg.getParameter<int>( "minNSeeds" ) ),
00010   maxNSeeds ( cfg.getParameter<int>( "maxNSeeds" ) )
00011 {
00012 
00013   if (applySeedNumber)
00014         edm::LogInfo("AlignmentSeedSelector") 
00015           << "apply seedNumber N<=" << minNSeeds;
00016 
00017 }
00018 
00019 // destructor -----------------------------------------------------------------
00020 
00021 AlignmentSeedSelector::~AlignmentSeedSelector()
00022 {}
00023 
00024 
00025 // do selection ---------------------------------------------------------------
00026 
00027 AlignmentSeedSelector::Seeds 
00028 AlignmentSeedSelector::select(const Seeds& seeds, const edm::Event& evt) const 
00029 {
00030   Seeds result = seeds;
00031 
00032   // apply minimum/maximum multiplicity requirement (if selected)
00033   if (applySeedNumber) {
00034     if (result.size()<(unsigned int)minNSeeds || result.size()>(unsigned int)maxNSeeds ) result.clear();
00035   }
00036 
00037   return result;
00038 
00039 }
00040 
00041 // make basic cuts ------------------------------------------------------------
00042 
00043 /* AlignmentSeedSelector::Seeds 
00044 AlignmentSeedSelector::basicCuts(const Seeds& seeds) const 
00045 {
00046   Seeds result;
00047 
00048   
00049   return result;
00050 }
00051 
00052 //-----------------------------------------------------------------------------
00053 
00054 AlignmentSeedSelector::Seeds 
00055 AlignmentSeedSelector::theNHighestPtSeeds(const Seeds& seeds) const
00056 {
00057  
00058   Seeds result;
00059 
00060 
00061   return result;
00062 }
00063 */