CMS 3D CMS Logo

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

Public Member Functions

 MeasurementTrackerESProducer (const edm::ParameterSet &p)
 
std::unique_ptr
< MeasurementTracker
produce (const CkfComponentsRecord &)
 
 ~MeasurementTrackerESProducer () override
 
- 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

MeasurementTrackerImpl::BadStripCutsDet badStripCuts_
 
edm::ESGetToken
< GeometricSearchTracker,
TrackerRecoGeometryRecord
geometricSearchTrackerToken_
 
edm::ESGetToken
< SiStripRecHitMatcher,
TkStripCPERecord
hitMatcherToken_
 
edm::ESGetToken
< ClusterParameterEstimator
< Phase2TrackerCluster1D >
, TkPhase2OTCPERecord
phase2TrackerCPEToken_
 
edm::ESGetToken
< SiPixelFedCablingMap,
SiPixelFedCablingMapRcd
pixelCablingToken_
 
edm::ESGetToken
< PixelClusterParameterEstimator,
TkPixelCPERecord
pixelCPEToken_
 
int pixelQualityDebugFlags_
 
int pixelQualityFlags_
 
edm::ESGetToken
< SiPixelQuality,
SiPixelQualityRcd
pixelQualityToken_
 
edm::ESGetToken
< StripClusterParameterEstimator,
TkStripCPERecord
stripCPEToken_
 
int stripQualityDebugFlags_
 
int stripQualityFlags_
 
edm::ESGetToken
< SiStripQuality,
SiStripQualityRcd
stripQualityToken_
 
edm::ESGetToken
< TrackerGeometry,
TrackerDigiGeometryRecord
trackerGeomToken_
 
edm::ESGetToken
< TrackerTopology,
TrackerTopologyRcd
trackerTopologyToken_
 
bool usePhase2_ = false
 

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 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 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 37 of file MeasurementTrackerESProducer.cc.

Constructor & Destructor Documentation

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

Definition at line 121 of file MeasurementTrackerESProducer.cc.

References MeasurementTrackerImpl::BadStrips, c, edm::ParameterSet::getParameter(), PVValHelper::phase2, pixelQualityToken_(), TrackValidation_cff::pset, AlCaHLTBitMon_QueryRunRegistry::string, and trackerTopologyToken_().

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  pixelCablingToken_ = c.consumes();
130  }
131 
132  std::tie(stripQualityFlags_, stripQualityDebugFlags_) = stripFlags(p);
133  if (stripQualityFlags_ != 0) {
134  stripQualityToken_ = c.consumes(edm::ESInputTag("", p.getParameter<std::string>("SiStripQualityLabel")));
136  auto makeBadStripCuts = [](edm::ParameterSet const &pset) {
137  return StMeasurementConditionSet::BadStripCuts(pset.getParameter<uint32_t>("maxBad"),
138  pset.getParameter<uint32_t>("maxConsecutiveBad"));
139  };
140 
141  auto cutPset = p.getParameter<edm::ParameterSet>("badStripCuts");
142  badStripCuts_.tib = makeBadStripCuts(cutPset.getParameter<edm::ParameterSet>("TIB"));
143  badStripCuts_.tob = makeBadStripCuts(cutPset.getParameter<edm::ParameterSet>("TOB"));
144  badStripCuts_.tid = makeBadStripCuts(cutPset.getParameter<edm::ParameterSet>("TID"));
145  badStripCuts_.tec = makeBadStripCuts(cutPset.getParameter<edm::ParameterSet>("TEC"));
146  }
147  }
148 
149  pixelCPEToken_ = c.consumes(edm::ESInputTag("", p.getParameter<std::string>("PixelCPE")));
150  hitMatcherToken_ = c.consumes(edm::ESInputTag("", p.getParameter<std::string>("HitMatcher")));
151  trackerTopologyToken_ = c.consumes();
152  trackerGeomToken_ = c.consumes();
153  geometricSearchTrackerToken_ = c.consumes();
154 
155  //FIXME:: just temporary solution for phase2!
156  auto phase2 = p.getParameter<std::string>("Phase2StripCPE");
157  if (not phase2.empty()) {
158  usePhase2_ = true;
159  phase2TrackerCPEToken_ = c.consumes(edm::ESInputTag("", phase2));
160  } else {
161  stripCPEToken_ = c.consumes(edm::ESInputTag("", p.getParameter<std::string>("StripCPE")));
162  }
163 }
edm::ESGetToken< StripClusterParameterEstimator, TkStripCPERecord > stripCPEToken_
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
const edm::EventSetup & c
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_
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
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 ( )
override

Definition at line 165 of file MeasurementTrackerESProducer.cc.

165 {}

Member Function Documentation

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

Definition at line 207 of file MeasurementTrackerESProducer.cc.

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

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

Definition at line 167 of file MeasurementTrackerESProducer.cc.

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

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

Member Data Documentation

MeasurementTrackerImpl::BadStripCutsDet MeasurementTrackerESProducer::badStripCuts_
private

Definition at line 58 of file MeasurementTrackerESProducer.cc.

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

Definition at line 55 of file MeasurementTrackerESProducer.cc.

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

Definition at line 52 of file MeasurementTrackerESProducer.cc.

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

Definition at line 56 of file MeasurementTrackerESProducer.cc.

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

Definition at line 47 of file MeasurementTrackerESProducer.cc.

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

Definition at line 50 of file MeasurementTrackerESProducer.cc.

int MeasurementTrackerESProducer::pixelQualityDebugFlags_
private

Definition at line 61 of file MeasurementTrackerESProducer.cc.

int MeasurementTrackerESProducer::pixelQualityFlags_
private

Definition at line 60 of file MeasurementTrackerESProducer.cc.

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

Definition at line 46 of file MeasurementTrackerESProducer.cc.

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

Definition at line 51 of file MeasurementTrackerESProducer.cc.

int MeasurementTrackerESProducer::stripQualityDebugFlags_
private

Definition at line 64 of file MeasurementTrackerESProducer.cc.

int MeasurementTrackerESProducer::stripQualityFlags_
private

Definition at line 63 of file MeasurementTrackerESProducer.cc.

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

Definition at line 48 of file MeasurementTrackerESProducer.cc.

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

Definition at line 54 of file MeasurementTrackerESProducer.cc.

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

Definition at line 53 of file MeasurementTrackerESProducer.cc.

bool MeasurementTrackerESProducer::usePhase2_ = false
private

Definition at line 66 of file MeasurementTrackerESProducer.cc.