|
|
Plug-in module that performs Raw data to digi conversion for pixel subdetector
Definition at line 51 of file SiPixelRawToDigi.cc.
◆ SiPixelRawToDigi()
◆ ~SiPixelRawToDigi()
SiPixelRawToDigi::~SiPixelRawToDigi |
( |
| ) |
|
|
override |
◆ fillDescriptions()
Definition at line 142 of file SiPixelRawToDigi.cc.
144 desc.add<
bool>(
"IncludeErrors",
true);
145 desc.add<
bool>(
"UseQualityInfo",
false);
147 desc.add<std::vector<int>>(
"ErrorList", std::vector<int>{29})
148 ->setComment(
"## ErrorList: list of error codes used by tracking to invalidate modules");
151 desc.add<std::vector<int>>(
"UserErrorList", std::vector<int>{40})
152 ->setComment(
"## UserErrorList: list of error codes used by Pixel experts for investigation");
157 psd0.
addOptional<std::vector<edm::InputTag>>(
"inputs");
162 ->setComment(
"## Empty Regions PSet means complete unpacking");
164 desc.add<
bool>(
"UsePilotBlade",
false)->setComment(
"## Use pilot blades");
165 desc.add<
bool>(
"UsePhase1",
false)->setComment(
"## Use phase1");
166 desc.add<
std::string>(
"CablingMapLabel",
"")->setComment(
"CablingMap label");
167 descriptions.
add(
"siPixelRawToDigi",
desc);
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::addOptional(), submitPVResolutionJobs::desc, HLT_FULL_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ produce()
get data, convert to digis attach againe to Event
Definition at line 173 of file SiPixelRawToDigi.cc.
174 const uint32_t dummydetid = 0xffffffff;
190 edm::LogError(
"SiPixelQualityNotPresent") <<
"Configured to use SiPixelQuality, but SiPixelQuality not present";
212 bool errorsInEvent =
false;
223 for (
auto aFed =
fedIds_.begin(); aFed !=
fedIds_.end(); ++aFed) {
232 LogDebug(
"SiPixelRawToDigi") <<
"PRODUCE DIGI FOR FED:" <<
fedId;
248 tkerror_detidcollection,
249 usererror_detidcollection,
250 disabled_channelcollection,
257 errorDetSet.
data = nodeterrors;
260 LogDebug(
"SiPixelRawToDigi") <<
"Error words were stored in this event";
References badPixelInfo_, cabling_, cablingMapToken_, SiPixelFedCablingMap::cablingTree(), edm::ESWatcher< T >::check(), universalConfigTemplate::collection, edm::DetSet< T >::data, disabledChannelPutToken_, errorPutToken_, debug_messages_cfi::errors, ev, FEDRawDataCollection::FEDData(), l1tstage2_dqm_sourceclient-live_cfg::fedId, SiPixelFedCablingMap::fedIds(), fedIds_, l1t_dqm_sourceclient-live_cfg::fedRawData, fedRawDataCollectionToken_, postprocess-scan-build::formatter, edm::EventSetup::getHandle(), includeErrors_, LogDebug, PixelUnpackingRegions::mayUnpackFED(), PixelUnpackingRegions::modulesToUnpack(), eostools::move(), PixelUnpackingRegions::nBarrelModules(), PixelUnpackingRegions::nFEDs(), PixelUnpackingRegions::nForwardModules(), PixelUnpackingRegions::nModules(), edm::ESHandle< T >::product(), qualityWatcher_, recordWatcher_, regions_, PixelUnpackingRegions::run(), siPixelDigiCollectionToken_, siPixelQualityToken_, tkerrorlist_, tkErrorPutToken_, usePhase1_, usePilotBlade_, useQuality_, usererrorlist_, and userErrorPutToken_.
◆ badPixelInfo_
◆ cabling_
◆ cablingMapToken_
◆ config_
◆ disabledChannelPutToken_
◆ errorPutToken_
◆ fedIds_
std::vector<unsigned int> SiPixelRawToDigi::fedIds_ |
|
private |
◆ fedRawDataCollectionToken_
◆ includeErrors_
const bool SiPixelRawToDigi::includeErrors_ |
|
private |
◆ qualityWatcher_
◆ recordWatcher_
◆ regions_
◆ siPixelDigiCollectionToken_
◆ siPixelQualityToken_
◆ tkerrorlist_
const std::vector<int> SiPixelRawToDigi::tkerrorlist_ |
|
private |
◆ tkErrorPutToken_
◆ usePhase1_
const bool SiPixelRawToDigi::usePhase1_ |
|
private |
◆ usePilotBlade_
const bool SiPixelRawToDigi::usePilotBlade_ |
|
private |
◆ useQuality_
const bool SiPixelRawToDigi::useQuality_ |
|
private |
◆ usererrorlist_
const std::vector<int> SiPixelRawToDigi::usererrorlist_ |
|
private |
◆ userErrorPutToken_
bool check(const edm::EventSetup &iSetup)
T const * product() const
PixelUnpackingRegions * regions_
unsigned int nModules() const
unsigned int nFEDs() const
various informational accessors:
std::vector< unsigned int > fedIds_
bool mayUnpackFED(unsigned int fed_n) const
check whether a FED has to be unpacked
const SiPixelQuality * badPixelInfo_
Log< level::Info, false > LogInfo
ParameterDescriptionBase * addOptional(U const &iLabel, T const &value)
const bool usePilotBlade_
const std::vector< int > tkerrorlist_
std::unique_ptr< SiPixelFedCablingTree > cabling_
edm::ESWatcher< SiPixelQualityRcd > qualityWatcher_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const edm::EDGetTokenT< FEDRawDataCollection > fedRawDataCollectionToken_
edm::ESWatcher< SiPixelFedCablingMapRcd > recordWatcher_
edm::ESGetToken< SiPixelQuality, SiPixelQualityRcd > siPixelQualityToken_
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
std::unique_ptr< SiPixelFedCablingTree > cablingTree() const
std::vector< std::string > getParameterNames() const
edm::EDPutTokenT< edm::DetSetVector< SiPixelRawDataError > > errorPutToken_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
const std::vector< int > usererrorlist_
Log< level::Error, false > LogError
const std::set< unsigned int > * modulesToUnpack() const
full set of module ids to unpack
const edm::EDPutTokenT< edm::DetSetVector< PixelDigi > > siPixelDigiCollectionToken_
edm::ParameterSet config_
const bool includeErrors_
T getParameter(std::string const &) const
unsigned int nForwardModules() const
edm::EDPutTokenT< edmNew::DetSetVector< PixelFEDChannel > > disabledChannelPutToken_
edm::EDPutTokenT< DetIdCollection > tkErrorPutToken_
void run(const edm::Event &e, const edm::EventSetup &es)
has to be run during each event
const edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcd > cablingMapToken_
edm::EDPutTokenT< DetIdCollection > userErrorPutToken_
std::vector< unsigned int > fedIds() const
unsigned int nBarrelModules() const