CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
TrajSeedMatcher::Configuration Struct Reference

#include <TrajSeedMatcher.h>

Public Member Functions

 Configuration (const edm::ParameterSet &pset, edm::ConsumesCollector &&cc)
 

Public Attributes

const edm::ESGetToken< DetLayerGeometry, RecoGeometryRecorddetLayerGeomToken
 
const bool enableHitSkipping
 
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecordmagFieldToken
 
const std::vector< std::unique_ptr< MatchingCuts > > matchingCuts
 
const std::vector< unsigned int > minNrHits
 
const std::vector< int > minNrHitsValidLayerBins
 
const edm::ESGetToken< NavigationSchool, NavigationSchoolRecordnavSchoolToken
 
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecordparamMagFieldToken
 
const bool requireExactMatchCount
 
const bool useParamMagFieldIfDefined
 
const bool useRecoVertex
 

Detailed Description

Definition at line 124 of file TrajSeedMatcher.h.

Constructor & Destructor Documentation

◆ Configuration()

TrajSeedMatcher::Configuration::Configuration ( const edm::ParameterSet pset,
edm::ConsumesCollector &&  cc 
)

Definition at line 83 of file TrajSeedMatcher.cc.

84  : magFieldToken{cc.esConsumes()},
85  paramMagFieldToken{cc.esConsumes(pset.getParameter<edm::ESInputTag>("paramMagField"))},
86  navSchoolToken{cc.esConsumes(pset.getParameter<edm::ESInputTag>("navSchool"))},
87  detLayerGeomToken{cc.esConsumes(pset.getParameter<edm::ESInputTag>("detLayerGeom"))},
88  useRecoVertex{pset.getParameter<bool>("useRecoVertex")},
89  enableHitSkipping{pset.getParameter<bool>("enableHitSkipping")},
90  requireExactMatchCount{pset.getParameter<bool>("requireExactMatchCount")},
91  useParamMagFieldIfDefined{pset.getParameter<bool>("useParamMagFieldIfDefined")},
92  minNrHits{pset.getParameter<std::vector<unsigned int> >("minNrHits")},
93  minNrHitsValidLayerBins{pset.getParameter<std::vector<int> >("minNrHitsValidLayerBins")},
94  matchingCuts{makeMatchingCuts(pset.getParameter<std::vector<edm::ParameterSet> >("matchingCuts"))} {
95  if (minNrHitsValidLayerBins.size() + 1 != minNrHits.size()) {
96  throw cms::Exception("InvalidConfig")
97  << " TrajSeedMatcher::TrajSeedMatcher minNrHitsValidLayerBins should be 1 less than minNrHits when its "
98  << minNrHitsValidLayerBins.size() << " vs " << minNrHits.size();
99  }
100 }

Member Data Documentation

◆ detLayerGeomToken

const edm::ESGetToken<DetLayerGeometry, RecoGeometryRecord> TrajSeedMatcher::Configuration::detLayerGeomToken

Definition at line 130 of file TrajSeedMatcher.h.

◆ enableHitSkipping

const bool TrajSeedMatcher::Configuration::enableHitSkipping

Definition at line 133 of file TrajSeedMatcher.h.

Referenced by TrajSeedMatcher::processSeed().

◆ magFieldToken

const edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> TrajSeedMatcher::Configuration::magFieldToken

Definition at line 127 of file TrajSeedMatcher.h.

◆ matchingCuts

const std::vector<std::unique_ptr<MatchingCuts> > TrajSeedMatcher::Configuration::matchingCuts

Definition at line 145 of file TrajSeedMatcher.h.

Referenced by TrajSeedMatcher::processSeed().

◆ minNrHits

const std::vector<unsigned int> TrajSeedMatcher::Configuration::minNrHits

Definition at line 142 of file TrajSeedMatcher.h.

Referenced by TrajSeedMatcher::getNrHitsRequired().

◆ minNrHitsValidLayerBins

const std::vector<int> TrajSeedMatcher::Configuration::minNrHitsValidLayerBins

Definition at line 143 of file TrajSeedMatcher.h.

Referenced by TrajSeedMatcher::getNrHitsRequired().

◆ navSchoolToken

const edm::ESGetToken<NavigationSchool, NavigationSchoolRecord> TrajSeedMatcher::Configuration::navSchoolToken

Definition at line 129 of file TrajSeedMatcher.h.

◆ paramMagFieldToken

const edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> TrajSeedMatcher::Configuration::paramMagFieldToken

Definition at line 128 of file TrajSeedMatcher.h.

◆ requireExactMatchCount

const bool TrajSeedMatcher::Configuration::requireExactMatchCount

Definition at line 134 of file TrajSeedMatcher.h.

Referenced by TrajSeedMatcher::operator()().

◆ useParamMagFieldIfDefined

const bool TrajSeedMatcher::Configuration::useParamMagFieldIfDefined

Definition at line 135 of file TrajSeedMatcher.h.

Referenced by TrajSeedMatcher::ftsFromVertexToPoint().

◆ useRecoVertex

const bool TrajSeedMatcher::Configuration::useRecoVertex
edm::ESInputTag
Definition: ESInputTag.h:87
TrajSeedMatcher::Configuration::requireExactMatchCount
const bool requireExactMatchCount
Definition: TrajSeedMatcher.h:134
TrajSeedMatcher::Configuration::useRecoVertex
const bool useRecoVertex
Definition: TrajSeedMatcher.h:132
TrajSeedMatcher::Configuration::useParamMagFieldIfDefined
const bool useParamMagFieldIfDefined
Definition: TrajSeedMatcher.h:135
TrajSeedMatcher::Configuration::paramMagFieldToken
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > paramMagFieldToken
Definition: TrajSeedMatcher.h:128
TrajSeedMatcher::Configuration::matchingCuts
const std::vector< std::unique_ptr< MatchingCuts > > matchingCuts
Definition: TrajSeedMatcher.h:145
TrajSeedMatcher::Configuration::minNrHits
const std::vector< unsigned int > minNrHits
Definition: TrajSeedMatcher.h:142
TrajSeedMatcher::Configuration::magFieldToken
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken
Definition: TrajSeedMatcher.h:127
TrajSeedMatcher::Configuration::enableHitSkipping
const bool enableHitSkipping
Definition: TrajSeedMatcher.h:133
cc
TrajSeedMatcher::Configuration::minNrHitsValidLayerBins
const std::vector< int > minNrHitsValidLayerBins
Definition: TrajSeedMatcher.h:143
Exception
Definition: hltDiff.cc:246
TrajSeedMatcher::Configuration::navSchoolToken
const edm::ESGetToken< NavigationSchool, NavigationSchoolRecord > navSchoolToken
Definition: TrajSeedMatcher.h:129
TrajSeedMatcher::Configuration::detLayerGeomToken
const edm::ESGetToken< DetLayerGeometry, RecoGeometryRecord > detLayerGeomToken
Definition: TrajSeedMatcher.h:130
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27