CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
MeasurementTrackerESProducer Class Reference

#include <MeasurementTrackerESProducer.h>

Inheritance diagram for MeasurementTrackerESProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

 MeasurementTrackerESProducer (const edm::ParameterSet &p)
 
boost::shared_ptr
< MeasurementTracker
produce (const CkfComponentsRecord &)
 
virtual ~MeasurementTrackerESProducer ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer ()
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
 DataProxyProvider ()
 
const ComponentDescriptiondescription () const
 
bool isUsingRecord (const EventSetupRecordKey &) const
 
const KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey) const
 
void resetProxies (const EventSetupRecordKey &iRecordType)
 
void resetProxiesIfTransient (const EventSetupRecordKey &iRecordType)
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider ()
 

Private Attributes

boost::shared_ptr
< MeasurementTracker
_measurementTracker
 
edm::ParameterSet pset_
 

Additional Inherited Members

- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair
< DataKey,
edm::propagate_const
< std::shared_ptr< DataProxy > > > > 
KeyedProxies
 
typedef std::vector
< EventSetupRecordKey
Keys
 
typedef std::map
< EventSetupRecordKey,
KeyedProxies
RecordProxies
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
void setWhatProduced (T *iThis, const es::Label &iLabel=es::Label())
 
template<typename T >
void setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
void setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
void setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label())
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string())
 
virtual void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList)
 override DataProxyProvider method More...
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
void eraseAll (const EventSetupRecordKey &iRecordKey)
 deletes all the Proxies in aStream More...
 
void invalidateProxies (const EventSetupRecordKey &iRecordKey)
 
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &)
 

Detailed Description

Definition at line 10 of file MeasurementTrackerESProducer.h.

Constructor & Destructor Documentation

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

Definition at line 37 of file MeasurementTrackerESProducer.cc.

References edm::ParameterSet::getParameter(), AlCaHLTBitMon_ParallelJobs::p, and AlCaHLTBitMon_QueryRunRegistry::string.

38 {
39  std::string myname = p.getParameter<std::string>("ComponentName");
40  pset_ = p;
41  setWhatProduced(this,myname);
42 }
T getParameter(std::string const &) const
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
MeasurementTrackerESProducer::~MeasurementTrackerESProducer ( )
virtual

Definition at line 44 of file MeasurementTrackerESProducer.cc.

44 {}

Member Function Documentation

boost::shared_ptr< MeasurementTracker > MeasurementTrackerESProducer::produce ( const CkfComponentsRecord iRecord)

Definition at line 47 of file MeasurementTrackerESProducer.cc.

References MeasurementTracker::BadAPVFibers, MeasurementTracker::BadModules, MeasurementTracker::BadROCs, MeasurementTracker::BadStrips, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), MeasurementTracker::MaskBad128StripBlocks, HLT_25ns10e33_v2_cff::pixelCPE, edm::ESHandle< class >::product(), and AlCaHLTBitMon_QueryRunRegistry::string.

48 {
49  std::string pixelCPEName = pset_.getParameter<std::string>("PixelCPE");
50  std::string stripCPEName = pset_.getParameter<std::string>("StripCPE");
51  std::string matcherName = pset_.getParameter<std::string>("HitMatcher");
52 
53  // ========= SiPixelQuality related tasks =============
54  const SiPixelQuality *ptr_pixelQuality = 0;
55  const SiPixelFedCabling *ptr_pixelCabling = 0;
56  int pixelQualityFlags = 0;
57  int pixelQualityDebugFlags = 0;
58  edm::ESHandle<SiPixelQuality> pixelQuality;
60 
61  if (pset_.getParameter<bool>("UsePixelModuleQualityDB")) {
62  pixelQualityFlags += MeasurementTracker::BadModules;
63  if (pset_.getUntrackedParameter<bool>("DebugPixelModuleQualityDB", false)) {
64  pixelQualityDebugFlags += MeasurementTracker::BadModules;
65  }
66  }
67  if (pset_.getParameter<bool>("UsePixelROCQualityDB")) {
68  pixelQualityFlags += MeasurementTracker::BadROCs;
69  if (pset_.getUntrackedParameter<bool>("DebugPixelROCQualityDB", false)) {
70  pixelQualityDebugFlags += MeasurementTracker::BadROCs;
71  }
72  }
73 
74 
75  if (pixelQualityFlags != 0) {
76  iRecord.getRecord<SiPixelQualityRcd>().get(pixelQuality);
77  ptr_pixelQuality = pixelQuality.product();
78  iRecord.getRecord<SiPixelFedCablingMapRcd>().get(pixelCabling);
79  ptr_pixelCabling = pixelCabling.product();
80  }
81 
82  // ========= SiStripQuality related tasks =============
83  const SiStripQuality *ptr_stripQuality = 0;
84  int stripQualityFlags = 0;
85  int stripQualityDebugFlags = 0;
86  edm::ESHandle<SiStripQuality> stripQuality;
87 
88  if (pset_.getParameter<bool>("UseStripModuleQualityDB")) {
89  stripQualityFlags += MeasurementTracker::BadModules;
90  if (pset_.getUntrackedParameter<bool>("DebugStripModuleQualityDB", false)) {
91  stripQualityDebugFlags += MeasurementTracker::BadModules;
92  }
93  }
94  if (pset_.getParameter<bool>("UseStripAPVFiberQualityDB")) {
95  stripQualityFlags += MeasurementTracker::BadAPVFibers;
96  if (pset_.getUntrackedParameter<bool>("DebugStripAPVFiberQualityDB", false)) {
97  stripQualityDebugFlags += MeasurementTracker::BadAPVFibers;
98  }
99  if (pset_.getParameter<bool>("MaskBadAPVFibers")) {
100  stripQualityFlags += MeasurementTracker::MaskBad128StripBlocks;
101  }
102  }
103  if (pset_.getParameter<bool>("UseStripStripQualityDB")) {
104  stripQualityFlags += MeasurementTracker::BadStrips;
105  if (pset_.getUntrackedParameter<bool>("DebugStripStripQualityDB", false)) {
106  stripQualityDebugFlags += MeasurementTracker::BadStrips;
107  }
108  }
109 
110  if (stripQualityFlags != 0) {
111  std::string siStripQualityLabel = pset_.getParameter<std::string>("SiStripQualityLabel");
112  iRecord.getRecord<SiStripQualityRcd>().get(siStripQualityLabel, stripQuality);
113  ptr_stripQuality = stripQuality.product();
114  }
115 
119  edm::ESHandle<TrackerGeometry> trackerGeom;
120  edm::ESHandle<GeometricSearchTracker> geometricSearchTracker;
121 
122 
123  iRecord.getRecord<TkPixelCPERecord>().get(pixelCPEName,pixelCPE);
124  iRecord.getRecord<TkStripCPERecord>().get(stripCPEName,stripCPE);
125  iRecord.getRecord<TkStripCPERecord>().get(matcherName,hitMatcher);
126  iRecord.getRecord<TrackerDigiGeometryRecord>().get(trackerGeom);
127  iRecord.getRecord<TrackerRecoGeometryRecord>().get(geometricSearchTracker);
128 
129  _measurementTracker = boost::shared_ptr<MeasurementTracker>(new MeasurementTrackerImpl(pset_,
130  pixelCPE.product(),
131  stripCPE.product(),
132  hitMatcher.product(),
133  trackerGeom.product(),
134  geometricSearchTracker.product(),
135  ptr_stripQuality,
136  stripQualityFlags,
137  stripQualityDebugFlags,
138  ptr_pixelQuality,
139  ptr_pixelCabling,
140  pixelQualityFlags,
141  pixelQualityDebugFlags) );
142  return _measurementTracker;
143 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
boost::shared_ptr< MeasurementTracker > _measurementTracker
T const * product() const
Definition: ESHandle.h:86

Member Data Documentation

boost::shared_ptr<MeasurementTracker> MeasurementTrackerESProducer::_measurementTracker
private

Definition at line 16 of file MeasurementTrackerESProducer.h.

edm::ParameterSet MeasurementTrackerESProducer::pset_
private

Definition at line 17 of file MeasurementTrackerESProducer.h.