40 setWhatProduced(
this,myname);
45 boost::shared_ptr<MeasurementTracker>
51 bool regional = pset_.getParameter<
bool>(
"Regional");
53 bool onDemand = pset_.getParameter<
bool>(
"OnDemand");
55 if (onDemand != regional)
throw cms::Exception(
"Configuration") <<
"Currently OnDemand and Regional must have the same values.\n";
60 int pixelQualityFlags = 0;
61 int pixelQualityDebugFlags = 0;
65 if (pset_.getParameter<
bool>(
"UsePixelModuleQualityDB")) {
67 if (pset_.getUntrackedParameter<
bool>(
"DebugPixelModuleQualityDB",
false)) {
71 if (pset_.getParameter<
bool>(
"UsePixelROCQualityDB")) {
73 if (pset_.getUntrackedParameter<
bool>(
"DebugPixelROCQualityDB",
false)) {
79 if (pixelQualityFlags != 0) {
81 ptr_pixelQuality = pixelQuality.
product();
83 ptr_pixelCabling = pixelCabling.
product();
88 int stripQualityFlags = 0;
89 int stripQualityDebugFlags = 0;
92 if (pset_.getParameter<
bool>(
"UseStripModuleQualityDB")) {
94 if (pset_.getUntrackedParameter<
bool>(
"DebugStripModuleQualityDB",
false)) {
98 if (pset_.getParameter<
bool>(
"UseStripAPVFiberQualityDB")) {
100 if (pset_.getUntrackedParameter<
bool>(
"DebugStripAPVFiberQualityDB",
false)) {
103 if (pset_.existsAs<
bool>(
"MaskBadAPVFibers") && pset_.getParameter<
bool>(
"MaskBadAPVFibers")) {
107 if (pset_.getParameter<
bool>(
"UseStripStripQualityDB")) {
109 if (pset_.getUntrackedParameter<
bool>(
"DebugStripStripQualityDB",
false)) {
114 if (stripQualityFlags != 0) {
117 ptr_stripQuality = stripQuality.
product();
139 geometricSearchTracker.
product(),
142 stripQualityDebugFlags,
146 pixelQualityDebugFlags,
154 ptr_stripRegionCabling = rcabling.
product();
161 geometricSearchTracker.
product(),
164 stripQualityDebugFlags,
168 pixelQualityDebugFlags,
169 ptr_stripRegionCabling,
173 return _measurementTracker;
T getParameter(std::string const &) const
tuple OnDemandMeasurementTracker
const DepRecordT & getRecord() const
boost::shared_ptr< MeasurementTracker > produce(const CkfComponentsRecord &)
T const * product() const
virtual ~MeasurementTrackerESProducer()
MeasurementTrackerESProducer(const edm::ParameterSet &p)