CMS 3D CMS Logo

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< MeasurementTrackerproduce (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, 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::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 37 of file MeasurementTrackerESProducer.cc.

Constructor & Destructor Documentation

◆ MeasurementTrackerESProducer()

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

Definition at line 121 of file MeasurementTrackerESProducer.cc.

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  stripCPEToken_ = c.consumes(edm::ESInputTag("", p.getParameter<std::string>("StripCPE")));
151  hitMatcherToken_ = c.consumes(edm::ESInputTag("", p.getParameter<std::string>("HitMatcher")));
152  trackerTopologyToken_ = c.consumes();
153  trackerGeomToken_ = c.consumes();
154  geometricSearchTrackerToken_ = c.consumes();
155 
156  //FIXME:: just temporary solution for phase2!
157  auto phase2 = p.getParameter<std::string>("Phase2StripCPE");
158  if (not phase2.empty()) {
159  usePhase2_ = true;
161  }
162 }

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

◆ ~MeasurementTrackerESProducer()

MeasurementTrackerESProducer::~MeasurementTrackerESProducer ( )
override

Definition at line 164 of file MeasurementTrackerESProducer.cc.

164 {}

Member Function Documentation

◆ fillDescriptions()

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

Definition at line 203 of file MeasurementTrackerESProducer.cc.

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

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

◆ produce()

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

Definition at line 166 of file MeasurementTrackerESProducer.cc.

166  {
167  // ========= SiPixelQuality related tasks =============
168  const SiPixelQuality *ptr_pixelQuality = nullptr;
169  const SiPixelFedCabling *ptr_pixelCabling = nullptr;
170 
171  if (pixelQualityFlags_ != 0) {
172  ptr_pixelQuality = &iRecord.get(pixelQualityToken_);
173  ptr_pixelCabling = &iRecord.get(pixelCablingToken_);
174  }
175 
176  // ========= SiStripQuality related tasks =============
177  const SiStripQuality *ptr_stripQuality = nullptr;
178  if (stripQualityFlags_ != 0) {
179  ptr_stripQuality = &iRecord.get(stripQualityToken_);
180  }
181 
182  const ClusterParameterEstimator<Phase2TrackerCluster1D> *ptr_phase2TrackerCPE = nullptr;
183  if (usePhase2_) {
184  ptr_phase2TrackerCPE = &iRecord.get(phase2TrackerCPEToken_);
185  }
186  return std::make_unique<MeasurementTrackerImpl>(badStripCuts_,
187  &iRecord.get(pixelCPEToken_),
188  &iRecord.get(stripCPEToken_),
189  &iRecord.get(hitMatcherToken_),
190  &iRecord.get(trackerTopologyToken_),
191  &iRecord.get(trackerGeomToken_),
193  ptr_stripQuality,
196  ptr_pixelQuality,
197  ptr_pixelCabling,
200  ptr_phase2TrackerCPE);
201 }

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

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.

StMeasurementConditionSet::BadStripCuts
Definition: TkMeasurementDetSet.h:48
edm::ESInputTag
Definition: ESInputTag.h:87
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
MeasurementTrackerESProducer::stripCPEToken_
edm::ESGetToken< StripClusterParameterEstimator, TkStripCPERecord > stripCPEToken_
Definition: MeasurementTrackerESProducer.cc:51
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
MeasurementTrackerESProducer::pixelQualityDebugFlags_
int pixelQualityDebugFlags_
Definition: MeasurementTrackerESProducer.cc:61
SiPixelFedCabling
Definition: SiPixelFedCabling.h:10
MeasurementTrackerESProducer::stripQualityFlags_
int stripQualityFlags_
Definition: MeasurementTrackerESProducer.cc:63
MeasurementTrackerESProducer::pixelCablingToken_
edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcd > pixelCablingToken_
Definition: MeasurementTrackerESProducer.cc:47
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
MeasurementTrackerESProducer::geometricSearchTrackerToken_
edm::ESGetToken< GeometricSearchTracker, TrackerRecoGeometryRecord > geometricSearchTrackerToken_
Definition: MeasurementTrackerESProducer.cc:55
MeasurementTrackerImpl::BadStripCutsDet::tib
StMeasurementConditionSet::BadStripCuts tib
Definition: MeasurementTrackerImpl.h:49
MeasurementTrackerESProducer::pixelQualityFlags_
int pixelQualityFlags_
Definition: MeasurementTrackerESProducer.cc:60
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:109
ClusterParameterEstimator< Phase2TrackerCluster1D >
MeasurementTrackerESProducer::trackerTopologyToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopologyToken_
Definition: MeasurementTrackerESProducer.cc:53
MeasurementTrackerESProducer::trackerGeomToken_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeomToken_
Definition: MeasurementTrackerESProducer.cc:54
edm::ParameterSet
Definition: ParameterSet.h:47
SiPixelQuality
Definition: SiPixelQuality.h:27
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
MeasurementTrackerESProducer::stripQualityToken_
edm::ESGetToken< SiStripQuality, SiStripQualityRcd > stripQualityToken_
Definition: MeasurementTrackerESProducer.cc:48
MeasurementTrackerImpl::BadStripCutsDet::tec
StMeasurementConditionSet::BadStripCuts tec
Definition: MeasurementTrackerImpl.h:52
MeasurementTrackerESProducer::badStripCuts_
MeasurementTrackerImpl::BadStripCutsDet badStripCuts_
Definition: MeasurementTrackerESProducer.cc:58
MeasurementTrackerESProducer::hitMatcherToken_
edm::ESGetToken< SiStripRecHitMatcher, TkStripCPERecord > hitMatcherToken_
Definition: MeasurementTrackerESProducer.cc:52
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PVValHelper::phase2
Definition: PVValidationHelpers.h:81
MeasurementTrackerImpl::BadStripCutsDet::tob
StMeasurementConditionSet::BadStripCuts tob
Definition: MeasurementTrackerImpl.h:50
MeasurementTrackerESProducer::phase2TrackerCPEToken_
edm::ESGetToken< ClusterParameterEstimator< Phase2TrackerCluster1D >, TkPhase2OTCPERecord > phase2TrackerCPEToken_
Definition: MeasurementTrackerESProducer.cc:56
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
MeasurementTrackerImpl::BadStripCutsDet::tid
StMeasurementConditionSet::BadStripCuts tid
Definition: MeasurementTrackerImpl.h:51
MeasurementTrackerESProducer::pixelCPEToken_
edm::ESGetToken< PixelClusterParameterEstimator, TkPixelCPERecord > pixelCPEToken_
Definition: MeasurementTrackerESProducer.cc:50
MeasurementTrackerESProducer::stripQualityDebugFlags_
int stripQualityDebugFlags_
Definition: MeasurementTrackerESProducer.cc:64
MeasurementTrackerESProducer::pixelQualityToken_
edm::ESGetToken< SiPixelQuality, SiPixelQualityRcd > pixelQualityToken_
Definition: MeasurementTrackerESProducer.cc:46
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
MeasurementTrackerESProducer::usePhase2_
bool usePhase2_
Definition: MeasurementTrackerESProducer.cc:66
MeasurementTrackerImpl::BadStrips
Definition: MeasurementTrackerImpl.h:43
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
SiStripQuality
Definition: SiStripQuality.h:32