46 phase2TrackerCPEName =
"";
52 setWhatProduced(
this,myname);
57 std::shared_ptr<MeasurementTracker>
64 int pixelQualityFlags = 0;
65 int pixelQualityDebugFlags = 0;
69 if (pset_.getParameter<
bool>(
"UsePixelModuleQualityDB")) {
71 if (pset_.getUntrackedParameter<
bool>(
"DebugPixelModuleQualityDB",
false)) {
75 if (pset_.getParameter<
bool>(
"UsePixelROCQualityDB")) {
77 if (pset_.getUntrackedParameter<
bool>(
"DebugPixelROCQualityDB",
false)) {
83 if (pixelQualityFlags != 0) {
85 ptr_pixelQuality = pixelQuality.
product();
87 ptr_pixelCabling = pixelCabling.
product();
92 int stripQualityFlags = 0;
93 int stripQualityDebugFlags = 0;
96 if (pset_.getParameter<
bool>(
"UseStripModuleQualityDB")) {
98 if (pset_.getUntrackedParameter<
bool>(
"DebugStripModuleQualityDB",
false)) {
102 if (pset_.getParameter<
bool>(
"UseStripAPVFiberQualityDB")) {
104 if (pset_.getUntrackedParameter<
bool>(
"DebugStripAPVFiberQualityDB",
false)) {
107 if (pset_.getParameter<
bool>(
"MaskBadAPVFibers")) {
111 if (pset_.getParameter<
bool>(
"UseStripStripQualityDB")) {
113 if (pset_.getUntrackedParameter<
bool>(
"DebugStripStripQualityDB",
false)) {
118 if (stripQualityFlags != 0) {
121 ptr_stripQuality = stripQuality.
product();
139 if(phase2TrackerCPEName !=
""){
141 _measurementTracker = std::make_shared<MeasurementTrackerImpl>(pset_,
147 geometricSearchTracker.
product(),
150 stripQualityDebugFlags,
154 pixelQualityDebugFlags,
157 _measurementTracker = std::make_shared<MeasurementTrackerImpl>(pset_,
163 geometricSearchTracker.
product(),
166 stripQualityDebugFlags,
170 pixelQualityDebugFlags);
172 return _measurementTracker;
T getParameter(std::string const &) const
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
~MeasurementTrackerESProducer() override
const DepRecordT & getRecord() const
std::shared_ptr< MeasurementTracker > produce(const CkfComponentsRecord &)
T const * product() const
MeasurementTrackerESProducer(const edm::ParameterSet &p)