CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
MeasurementTrackerESProducer Class Reference
Inheritance diagram for MeasurementTrackerESProducer:
edm::ESProducer edm::ESProductResolverFactoryProducer edm::eventsetup::ESProductResolverProvider

Public Member Functions

 MeasurementTrackerESProducer (const edm::ParameterSet &p)
 
std::unique_ptr< MeasurementTrackerproduce (const CkfComponentsRecord &)
 
 ~MeasurementTrackerESProducer () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
 ESProducer (ESProducer &&)=delete
 
ESResolverIndex const * getTokenIndices (unsigned int iIndex) const
 
ESRecordIndex const * getTokenRecordIndices (unsigned int iIndex) const
 
bool hasMayConsumes () const noexcept
 
size_t numberOfTokenIndices (unsigned int iIndex) const
 
ESProduceroperator= (const ESProducer &)=delete
 
ESProduceroperator= (ESProducer &&)=delete
 
SerialTaskQueueChainqueue ()
 
template<typename Record >
std::optional< std::vector< ESResolverIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProductResolverFactoryProducer
 ESProductResolverFactoryProducer ()
 
 ESProductResolverFactoryProducer (const ESProductResolverFactoryProducer &)=delete
 
const ESProductResolverFactoryProduceroperator= (const ESProductResolverFactoryProducer &)=delete
 
 ~ESProductResolverFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::ESProductResolverProvider
void createKeyedResolvers (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
const ComponentDescriptiondescription () const
 
 ESProductResolverProvider ()
 
 ESProductResolverProvider (const ESProductResolverProvider &)=delete
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedResolverskeyedResolvers (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const ESProductResolverProvideroperator= (const ESProductResolverProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~ESProductResolverProvider () noexcept(false)
 

Static Public Member Functions

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

Private Attributes

MeasurementTrackerImpl::BadStripCutsDet badStripCuts_
 
edm::ESGetToken< GeometricSearchTracker, TrackerRecoGeometryRecordgeometricSearchTrackerToken_
 
edm::ESGetToken< SiStripRecHitMatcher, TkStripCPERecordhitMatcherToken_
 
edm::ESGetToken< ClusterParameterEstimator< Phase2TrackerCluster1D >, TkPhase2OTCPERecordphase2TrackerCPEToken_
 
edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcdpixelCablingToken_
 
edm::ESGetToken< PixelClusterParameterEstimator, TkPixelCPERecordpixelCPEToken_
 
int pixelQualityDebugFlags_
 
int pixelQualityFlags_
 
edm::ESGetToken< SiPixelQuality, SiPixelQualityRcdpixelQualityToken_
 
edm::ESGetToken< StripClusterParameterEstimator, TkStripCPERecordstripCPEToken_
 
int stripQualityDebugFlags_
 
int stripQualityFlags_
 
edm::ESGetToken< SiStripQuality, SiStripQualityRcdstripQualityToken_
 
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecordtrackerGeomToken_
 
edm::ESGetToken< TrackerTopology, TrackerTopologyRcdtrackerTopologyToken_
 
bool usePhase2_ = false
 

Additional Inherited Members

- Protected Types inherited from edm::ESProductResolverFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::ESProductResolverProvider
using KeyedResolversVector = std::vector< std::pair< DataKey, std::shared_ptr< ESProductResolver > >>
 
- Protected Member Functions inherited from edm::ESProducer
ESConsumesInfoconsumesInfoPushBackNew ()
 
unsigned int consumesInfoSize () const
 
template<typename CallbackT , typename TList , typename TRecord >
void registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>> iCallback, const TList *, const TRecord *iRecord, const es::Label &iLabel)
 
template<typename CallbackT , typename TRecord >
void registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>>, const eventsetup::produce::Null *, const TRecord *, const es::Label &)
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const char *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 TDecorator >
auto setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename TFunc >
auto setWhatProduced (TFunc &&func, const es::Label &iLabel={})
 
template<typename TReturn , typename TRecord , typename TFunc , typename TDecorator >
ESConsumesCollectorT< TRecord > setWhatProduced (TFunc &&func, TDecorator &&iDec, const es::Label &iLabel={})
 
void usesResources (std::vector< std::string > const &)
 
- Protected Member Functions inherited from edm::ESProductResolverFactoryProducer
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::ESProductResolverFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedResolversVector registerResolvers (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::ESProductResolverProvider
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &key)
 

Detailed Description

Definition at line 37 of file MeasurementTrackerESProducer.cc.

Constructor & Destructor Documentation

◆ MeasurementTrackerESProducer()

MeasurementTrackerESProducer::MeasurementTrackerESProducer ( const edm::ParameterSet p)

Definition at line 121 of file MeasurementTrackerESProducer.cc.

References MeasurementTrackerImpl::BadStrips, HltBtagPostValidation_cff::c, AlCaHLTBitMon_ParallelJobs::p, muonDTDigis_cfi::pset, and AlCaHLTBitMon_QueryRunRegistry::string.

121  {
122  std::string myname = p.getParameter<std::string>("ComponentName");
123 
124  auto c = setWhatProduced(this, myname);
125 
126  std::tie(pixelQualityFlags_, pixelQualityDebugFlags_) = pixelFlags(p);
127  if (pixelQualityFlags_ != 0) {
128  pixelQualityToken_ = c.consumes();
129  }
130 
131  std::tie(stripQualityFlags_, stripQualityDebugFlags_) = stripFlags(p);
132  if (stripQualityFlags_ != 0) {
133  stripQualityToken_ = c.consumes(edm::ESInputTag("", p.getParameter<std::string>("SiStripQualityLabel")));
135  auto makeBadStripCuts = [](edm::ParameterSet const &pset) {
136  return StMeasurementConditionSet::BadStripCuts(pset.getParameter<uint32_t>("maxBad"),
137  pset.getParameter<uint32_t>("maxConsecutiveBad"));
138  };
139 
140  auto cutPset = p.getParameter<edm::ParameterSet>("badStripCuts");
141  badStripCuts_.tib = makeBadStripCuts(cutPset.getParameter<edm::ParameterSet>("TIB"));
142  badStripCuts_.tob = makeBadStripCuts(cutPset.getParameter<edm::ParameterSet>("TOB"));
143  badStripCuts_.tid = makeBadStripCuts(cutPset.getParameter<edm::ParameterSet>("TID"));
144  badStripCuts_.tec = makeBadStripCuts(cutPset.getParameter<edm::ParameterSet>("TEC"));
145  }
146  }
147 
148  pixelCPEToken_ = c.consumes(edm::ESInputTag("", p.getParameter<std::string>("PixelCPE")));
149  hitMatcherToken_ = c.consumes(edm::ESInputTag("", p.getParameter<std::string>("HitMatcher")));
150  trackerTopologyToken_ = c.consumes();
151  trackerGeomToken_ = c.consumes();
152  geometricSearchTrackerToken_ = c.consumes();
153 
154  //FIXME:: just temporary solution for phase2!
155  auto phase2 = p.getParameter<std::string>("Phase2StripCPE");
156  if (not phase2.empty()) {
157  usePhase2_ = true;
159  } else {
160  stripCPEToken_ = c.consumes(edm::ESInputTag("", p.getParameter<std::string>("StripCPE")));
161  if (pixelQualityFlags_ != 0) {
162  pixelCablingToken_ = c.consumes();
163  }
164  }
165 }
edm::ESGetToken< StripClusterParameterEstimator, TkStripCPERecord > stripCPEToken_
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:166
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeomToken_
edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcd > pixelCablingToken_
StMeasurementConditionSet::BadStripCuts tib
edm::ESGetToken< GeometricSearchTracker, TrackerRecoGeometryRecord > geometricSearchTrackerToken_
edm::ESGetToken< SiStripQuality, SiStripQualityRcd > stripQualityToken_
edm::ESGetToken< SiStripRecHitMatcher, TkStripCPERecord > hitMatcherToken_
StMeasurementConditionSet::BadStripCuts tec
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopologyToken_
StMeasurementConditionSet::BadStripCuts tob
MeasurementTrackerImpl::BadStripCutsDet badStripCuts_
StMeasurementConditionSet::BadStripCuts tid
edm::ESGetToken< ClusterParameterEstimator< Phase2TrackerCluster1D >, TkPhase2OTCPERecord > phase2TrackerCPEToken_
edm::ESGetToken< SiPixelQuality, SiPixelQualityRcd > pixelQualityToken_
edm::ESGetToken< PixelClusterParameterEstimator, TkPixelCPERecord > pixelCPEToken_

◆ ~MeasurementTrackerESProducer()

MeasurementTrackerESProducer::~MeasurementTrackerESProducer ( )
override

Definition at line 167 of file MeasurementTrackerESProducer.cc.

167 {}

Member Function Documentation

◆ fillDescriptions()

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

Definition at line 211 of file MeasurementTrackerESProducer.cc.

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

211  {
213 
214  desc.add<std::string>("ComponentName", "");
215 
216  desc.add<std::string>("PixelCPE", "PixelCPEGeneric");
217  desc.add<std::string>("StripCPE", "StripCPEfromTrackAngle");
218  desc.add<std::string>("HitMatcher", "StandardMatcher");
219 
220  desc.add<std::string>("Phase2StripCPE", "")->setComment("empty string used to turn off Phase 2");
221 
222  desc.add<std::string>("SiStripQualityLabel", "");
223  desc.add<bool>("UseStripModuleQualityDB", true);
224  desc.addUntracked<bool>("DebugStripModuleQualityDB", false)->setComment("Dump out info on module status");
225  desc.add<bool>("UseStripAPVFiberQualityDB", true)->setComment("Read APV and Fiber status from SiStripQuality");
226  desc.addUntracked<bool>("DebugStripAPVFiberQualityDB", false)->setComment("Dump out info on module status");
227  desc.add<bool>("MaskBadAPVFibers", true)
228  ->setComment(
229  "if set to true, clusters with barycenter on bad APV and Fibers are ignored. (UseStripAPVFiberQualityDB must "
230  "also be true for this to work)");
231 
232  desc.add<bool>("UseStripStripQualityDB", true)->setComment("read Strip status from SiStripQuality");
233  desc.addUntracked<bool>("DebugStripStripQualityDB", false)->setComment("dump out info on module status");
234 
235  {
236  //used by MeasurementTrackerImpl
237  edm::ParameterSetDescription badStripCutsDesc;
238  badStripCutsDesc.add<uint32_t>("maxBad", 4);
239  badStripCutsDesc.add<uint32_t>("maxConsecutiveBad", 2);
240 
242  mtiDesc.add<edm::ParameterSetDescription>("TIB", badStripCutsDesc);
243  mtiDesc.add<edm::ParameterSetDescription>("TOB", badStripCutsDesc);
244  mtiDesc.add<edm::ParameterSetDescription>("TID", badStripCutsDesc);
245  mtiDesc.add<edm::ParameterSetDescription>("TEC", badStripCutsDesc);
246 
247  desc.addOptional<edm::ParameterSetDescription>("badStripCuts", mtiDesc);
248  }
249 
250  desc.add<bool>("UsePixelModuleQualityDB", true)->setComment("Use DB info at the module level (that is, detid level)");
251  desc.addUntracked<bool>("DebugPixelModuleQualityDB", false)->setComment("dump out info on module status");
252  desc.add<bool>("UsePixelROCQualityDB", true)->setComment("Use DB info at the ROC level");
253  desc.addUntracked<bool>("DebugPixelROCQualityDB", false)->setComment("dump out info om module status ");
254 
255  descriptions.add("_MeasurementTrackerESProducer_default", desc);
256 }
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)

◆ produce()

std::unique_ptr< MeasurementTracker > MeasurementTrackerESProducer::produce ( const CkfComponentsRecord iRecord)

Definition at line 169 of file MeasurementTrackerESProducer.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::get().

169  {
170  // ========= SiPixelQuality related tasks =============
171  const SiPixelQuality *ptr_pixelQuality = nullptr;
172  const SiPixelFedCabling *ptr_pixelCabling = nullptr;
173 
174  if (pixelQualityFlags_ != 0) {
175  ptr_pixelQuality = &iRecord.get(pixelQualityToken_);
176  if (!usePhase2_) {
177  ptr_pixelCabling = &iRecord.get(pixelCablingToken_);
178  }
179  }
180 
181  // ========= SiStripQuality related tasks =============
182  const SiStripQuality *ptr_stripQuality = nullptr;
183  if (stripQualityFlags_ != 0) {
184  ptr_stripQuality = &iRecord.get(stripQualityToken_);
185  }
186 
187  const ClusterParameterEstimator<Phase2TrackerCluster1D> *ptr_phase2TrackerCPE = nullptr;
188  const StripClusterParameterEstimator *ptr_SiStripTrackerCPE = nullptr;
189  if (usePhase2_) {
190  ptr_phase2TrackerCPE = &iRecord.get(phase2TrackerCPEToken_);
191  } else {
192  ptr_SiStripTrackerCPE = &iRecord.get(stripCPEToken_);
193  }
194  return std::make_unique<MeasurementTrackerImpl>(badStripCuts_,
195  &iRecord.get(pixelCPEToken_),
196  ptr_SiStripTrackerCPE,
197  &iRecord.get(hitMatcherToken_),
198  &iRecord.get(trackerTopologyToken_),
199  &iRecord.get(trackerGeomToken_),
201  ptr_stripQuality,
204  ptr_pixelQuality,
205  ptr_pixelCabling,
208  ptr_phase2TrackerCPE);
209 }
edm::ESGetToken< StripClusterParameterEstimator, TkStripCPERecord > stripCPEToken_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeomToken_
edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcd > pixelCablingToken_
edm::ESGetToken< GeometricSearchTracker, TrackerRecoGeometryRecord > geometricSearchTrackerToken_
edm::ESGetToken< SiStripQuality, SiStripQualityRcd > stripQualityToken_
edm::ESGetToken< SiStripRecHitMatcher, TkStripCPERecord > hitMatcherToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopologyToken_
MeasurementTrackerImpl::BadStripCutsDet badStripCuts_
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
edm::ESGetToken< ClusterParameterEstimator< Phase2TrackerCluster1D >, TkPhase2OTCPERecord > phase2TrackerCPEToken_
edm::ESGetToken< SiPixelQuality, SiPixelQualityRcd > pixelQualityToken_
edm::ESGetToken< PixelClusterParameterEstimator, TkPixelCPERecord > pixelCPEToken_

Member Data Documentation

◆ badStripCuts_

MeasurementTrackerImpl::BadStripCutsDet MeasurementTrackerESProducer::badStripCuts_
private

Definition at line 58 of file MeasurementTrackerESProducer.cc.

◆ geometricSearchTrackerToken_

edm::ESGetToken<GeometricSearchTracker, TrackerRecoGeometryRecord> MeasurementTrackerESProducer::geometricSearchTrackerToken_
private

Definition at line 55 of file MeasurementTrackerESProducer.cc.

◆ hitMatcherToken_

edm::ESGetToken<SiStripRecHitMatcher, TkStripCPERecord> MeasurementTrackerESProducer::hitMatcherToken_
private

Definition at line 52 of file MeasurementTrackerESProducer.cc.

◆ phase2TrackerCPEToken_

edm::ESGetToken<ClusterParameterEstimator<Phase2TrackerCluster1D>, TkPhase2OTCPERecord> MeasurementTrackerESProducer::phase2TrackerCPEToken_
private

Definition at line 56 of file MeasurementTrackerESProducer.cc.

◆ pixelCablingToken_

edm::ESGetToken<SiPixelFedCablingMap, SiPixelFedCablingMapRcd> MeasurementTrackerESProducer::pixelCablingToken_
private

Definition at line 47 of file MeasurementTrackerESProducer.cc.

◆ pixelCPEToken_

edm::ESGetToken<PixelClusterParameterEstimator, TkPixelCPERecord> MeasurementTrackerESProducer::pixelCPEToken_
private

Definition at line 50 of file MeasurementTrackerESProducer.cc.

◆ pixelQualityDebugFlags_

int MeasurementTrackerESProducer::pixelQualityDebugFlags_
private

Definition at line 61 of file MeasurementTrackerESProducer.cc.

◆ pixelQualityFlags_

int MeasurementTrackerESProducer::pixelQualityFlags_
private

Definition at line 60 of file MeasurementTrackerESProducer.cc.

◆ pixelQualityToken_

edm::ESGetToken<SiPixelQuality, SiPixelQualityRcd> MeasurementTrackerESProducer::pixelQualityToken_
private

Definition at line 46 of file MeasurementTrackerESProducer.cc.

◆ stripCPEToken_

edm::ESGetToken<StripClusterParameterEstimator, TkStripCPERecord> MeasurementTrackerESProducer::stripCPEToken_
private

Definition at line 51 of file MeasurementTrackerESProducer.cc.

◆ stripQualityDebugFlags_

int MeasurementTrackerESProducer::stripQualityDebugFlags_
private

Definition at line 64 of file MeasurementTrackerESProducer.cc.

◆ stripQualityFlags_

int MeasurementTrackerESProducer::stripQualityFlags_
private

Definition at line 63 of file MeasurementTrackerESProducer.cc.

◆ stripQualityToken_

edm::ESGetToken<SiStripQuality, SiStripQualityRcd> MeasurementTrackerESProducer::stripQualityToken_
private

Definition at line 48 of file MeasurementTrackerESProducer.cc.

◆ trackerGeomToken_

edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> MeasurementTrackerESProducer::trackerGeomToken_
private

Definition at line 54 of file MeasurementTrackerESProducer.cc.

◆ trackerTopologyToken_

edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> MeasurementTrackerESProducer::trackerTopologyToken_
private

Definition at line 53 of file MeasurementTrackerESProducer.cc.

◆ usePhase2_

bool MeasurementTrackerESProducer::usePhase2_ = false
private

Definition at line 66 of file MeasurementTrackerESProducer.cc.