46 phase2TrackerCPEName =
"";
52 setWhatProduced(
this,myname);
57 std::unique_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();
140 if(phase2TrackerCPEName !=
""){
142 return std::make_unique<MeasurementTrackerImpl>(pset_,
148 geometricSearchTracker.
product(),
151 stripQualityDebugFlags,
155 pixelQualityDebugFlags,
158 return std::make_unique<MeasurementTrackerImpl>(pset_,
164 geometricSearchTracker.
product(),
167 stripQualityDebugFlags,
171 pixelQualityDebugFlags);
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::unique_ptr< MeasurementTracker > produce(const CkfComponentsRecord &)
T const * product() const
MeasurementTrackerESProducer(const edm::ParameterSet &p)