CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
SiPhase2RecHitMatcherESProducer Class Reference
Inheritance diagram for SiPhase2RecHitMatcherESProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

std::unique_ptr< VectorHitBuilderAlgorithmproduce (const TkPhase2OTCPERecord &)
 
 SiPhase2RecHitMatcherESProducer (const edm::ParameterSet &)
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
ESRecordIndex const * getTokenRecordIndices (unsigned int iIndex) const
 
bool hasMayConsumes () const noexcept
 
size_t numberOfTokenIndices (unsigned int iIndex) const
 
ESProducer const & operator= (const ESProducer &)=delete
 
SerialTaskQueueChainqueue ()
 
template<typename Record >
std::optional< std::vector< ESProxyIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
 ESProxyFactoryProducer (const ESProxyFactoryProducer &)=delete
 
const ESProxyFactoryProduceroperator= (const ESProxyFactoryProducer &)=delete
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
void createKeyedProxies (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
 DataProxyProvider ()
 
 DataProxyProvider (const DataProxyProvider &)=delete
 
const ComponentDescriptiondescription () const
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const DataProxyProvideroperator= (const DataProxyProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 

Private Attributes

edm::ESGetToken< ClusterParameterEstimator< Phase2TrackerCluster1D >, TkPhase2OTCPERecordcpeToken_
 
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecordgeometryToken_
 
std::string name_
 
edm::ParameterSet pset_
 
edm::ESGetToken< TrackerTopology, TrackerTopologyRcdtrackerTopoToken_
 

Additional Inherited Members

- Protected Types inherited from edm::ESProxyFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::DataProxyProvider
using KeyedProxiesVector = std::vector< std::pair< DataKey, std::shared_ptr< DataProxy > >>
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
auto setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
auto setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord >
auto setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
ESConsumesCollectorT< TRecord > setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={})
 
void usesResources (std::vector< std::string > const &)
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedProxiesVector registerProxies (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &key)
 

Detailed Description

Definition at line 15 of file SiPhase2RecHitMatcherESProducer.cc.

Constructor & Destructor Documentation

◆ SiPhase2RecHitMatcherESProducer()

SiPhase2RecHitMatcherESProducer::SiPhase2RecHitMatcherESProducer ( const edm::ParameterSet p)

Definition at line 29 of file SiPhase2RecHitMatcherESProducer.cc.

29  {
30  name_ = p.getParameter<std::string>("ComponentName");
31  if (!(name_ == "SiPhase2VectorHitMatcher")) {
32  throw cms::Exception("ConfigurationError") << "Configuration specifies unknown ComponentName .\n"
33  << "Currently only 'SiPhase2VectorHitMatcher' is supported\n";
34  }
35  pset_ = p;
36  auto cc = setWhatProduced(this, name_);
37  geometryToken_ = cc.consumes();
38  trackerTopoToken_ = cc.consumes();
39  cpeToken_ = cc.consumes(p.getParameter<edm::ESInputTag>("CPE"));
40 }

References cpeToken_, Exception, geometryToken_, name_, AlCaHLTBitMon_ParallelJobs::p, pset_, edm::ESProducer::setWhatProduced(), AlCaHLTBitMon_QueryRunRegistry::string, and trackerTopoToken_.

Member Function Documentation

◆ fillDescriptions()

void SiPhase2RecHitMatcherESProducer::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 52 of file SiPhase2RecHitMatcherESProducer.cc.

52  {
54  desc.add<std::string>("offlinestubs", "vectorHits");
55  desc.add<int>("maxVectorHits", 999999999);
56  desc.add<std::string>("Algorithm", "VectorHitBuilderAlgorithm");
57  desc.add<std::string>("ComponentName", "SiPhase2VectorHitMatcher");
58  desc.add<edm::ESInputTag>("CPE", edm::ESInputTag("", "Phase2StripCPE"));
59  desc.add<std::vector<double>>("BarrelCut",
60  {
61  0.0,
62  0.05,
63  0.06,
64  0.08,
65  0.09,
66  0.12,
67  0.2,
68  });
69  desc.add<std::string>("Phase2CPE_name", "Phase2StripCPE");
70  desc.add<std::string>("Clusters", "siPhase2Clusters");
71  desc.add<int>("maxVectorHitsInAStack", 999);
72  desc.add<std::vector<double>>("EndcapCut",
73  {
74  0.0,
75  0.1,
76  0.1,
77  0.1,
78  0.1,
79  0.1,
80  });
81  descriptions.add("siPhase2RecHitMatcher", desc);
82 }

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ produce()

std::unique_ptr< VectorHitBuilderAlgorithm > SiPhase2RecHitMatcherESProducer::produce ( const TkPhase2OTCPERecord iRecord)

Definition at line 42 of file SiPhase2RecHitMatcherESProducer.cc.

42  {
43  std::unique_ptr<VectorHitBuilderAlgorithm> matcher = std::make_unique<VectorHitBuilderAlgorithm>(
44  pset_,
45  &iRecord.get(geometryToken_),
47  &iRecord.get(cpeToken_));
48 
49  return matcher;
50 }

References cpeToken_, geometryToken_, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::get(), get, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), pset_, and trackerTopoToken_.

Member Data Documentation

◆ cpeToken_

edm::ESGetToken<ClusterParameterEstimator<Phase2TrackerCluster1D>, TkPhase2OTCPERecord> SiPhase2RecHitMatcherESProducer::cpeToken_
private

Definition at line 26 of file SiPhase2RecHitMatcherESProducer.cc.

Referenced by produce(), and SiPhase2RecHitMatcherESProducer().

◆ geometryToken_

edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> SiPhase2RecHitMatcherESProducer::geometryToken_
private

Definition at line 24 of file SiPhase2RecHitMatcherESProducer.cc.

Referenced by produce(), and SiPhase2RecHitMatcherESProducer().

◆ name_

std::string SiPhase2RecHitMatcherESProducer::name_
private

Definition at line 22 of file SiPhase2RecHitMatcherESProducer.cc.

Referenced by SiPhase2RecHitMatcherESProducer().

◆ pset_

edm::ParameterSet SiPhase2RecHitMatcherESProducer::pset_
private

Definition at line 23 of file SiPhase2RecHitMatcherESProducer.cc.

Referenced by produce(), and SiPhase2RecHitMatcherESProducer().

◆ trackerTopoToken_

edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> SiPhase2RecHitMatcherESProducer::trackerTopoToken_
private

Definition at line 25 of file SiPhase2RecHitMatcherESProducer.cc.

Referenced by produce(), and SiPhase2RecHitMatcherESProducer().

edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT getRecord() const
Definition: DependentRecordImplementation.h:50
edm::ESInputTag
Definition: ESInputTag.h:87
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
SiPhase2RecHitMatcherESProducer::pset_
edm::ParameterSet pset_
Definition: SiPhase2RecHitMatcherESProducer.cc:23
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
TrackerDigiGeometryRecord
Definition: TrackerDigiGeometryRecord.h:15
SiPhase2RecHitMatcherESProducer::cpeToken_
edm::ESGetToken< ClusterParameterEstimator< Phase2TrackerCluster1D >, TkPhase2OTCPERecord > cpeToken_
Definition: SiPhase2RecHitMatcherESProducer.cc:26
SiPhase2RecHitMatcherESProducer::name_
std::string name_
Definition: SiPhase2RecHitMatcherESProducer.cc:22
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:103
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
get
#define get
cc
SiPhase2RecHitMatcherESProducer::geometryToken_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geometryToken_
Definition: SiPhase2RecHitMatcherESProducer.cc:24
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
SiPhase2RecHitMatcherESProducer::trackerTopoToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopoToken_
Definition: SiPhase2RecHitMatcherESProducer.cc:25
Exception
Definition: hltDiff.cc:246