46 phase2TrackerCPEName =
"";
52 setWhatProduced(
this,myname);
57 std::shared_ptr<MeasurementTracker>
65 int pixelQualityFlags = 0;
66 int pixelQualityDebugFlags = 0;
70 if (pset_.getParameter<
bool>(
"UsePixelModuleQualityDB")) {
72 if (pset_.getUntrackedParameter<
bool>(
"DebugPixelModuleQualityDB",
false)) {
76 if (pset_.getParameter<
bool>(
"UsePixelROCQualityDB")) {
78 if (pset_.getUntrackedParameter<
bool>(
"DebugPixelROCQualityDB",
false)) {
84 if (pixelQualityFlags != 0) {
86 ptr_pixelQuality = pixelQuality.
product();
88 ptr_pixelCabling = pixelCabling.
product();
93 int stripQualityFlags = 0;
94 int stripQualityDebugFlags = 0;
97 if (pset_.getParameter<
bool>(
"UseStripModuleQualityDB")) {
99 if (pset_.getUntrackedParameter<
bool>(
"DebugStripModuleQualityDB",
false)) {
103 if (pset_.getParameter<
bool>(
"UseStripAPVFiberQualityDB")) {
105 if (pset_.getUntrackedParameter<
bool>(
"DebugStripAPVFiberQualityDB",
false)) {
108 if (pset_.getParameter<
bool>(
"MaskBadAPVFibers")) {
112 if (pset_.getParameter<
bool>(
"UseStripStripQualityDB")) {
114 if (pset_.getUntrackedParameter<
bool>(
"DebugStripStripQualityDB",
false)) {
119 if (stripQualityFlags != 0) {
122 ptr_stripQuality = stripQuality.
product();
138 if(phase2TrackerCPEName !=
""){
140 _measurementTracker = std::make_shared<MeasurementTrackerImpl>(pset_,
145 geometricSearchTracker.
product(),
148 stripQualityDebugFlags,
152 pixelQualityDebugFlags,
155 _measurementTracker = std::make_shared<MeasurementTrackerImpl>(pset_,
160 geometricSearchTracker.
product(),
163 stripQualityDebugFlags,
167 pixelQualityDebugFlags);
169 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
const DepRecordT & getRecord() const
std::shared_ptr< MeasurementTracker > produce(const CkfComponentsRecord &)
virtual ~MeasurementTrackerESProducer()
T const * product() const
MeasurementTrackerESProducer(const edm::ParameterSet &p)