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.

References gpuPixelDoublets::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 }
const edm::ESGetToken< NavigationSchool, NavigationSchoolRecord > navSchoolToken
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > paramMagFieldToken
const std::vector< std::unique_ptr< MatchingCuts > > matchingCuts
const std::vector< int > minNrHitsValidLayerBins
const edm::ESGetToken< DetLayerGeometry, RecoGeometryRecord > detLayerGeomToken
const std::vector< unsigned int > minNrHits
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken

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