43 std::unique_ptr<SiPixelFedCablingTree>
cabling_;
54 fmtErrorsGetToken_{consumes<SiPixelFormatterErrors>(iConfig.getParameter<
edm::InputTag>(
"fmtErrorsSoASrc"))},
55 errorPutToken_{produces<edm::DetSetVector<SiPixelRawDataError>>()},
56 tkErrorPutToken_{produces<DetIdCollection>()},
57 userErrorPutToken_{produces<DetIdCollection>(
"UserErrorModules")},
58 disabledChannelPutToken_{produces<edmNew::DetSetVector<PixelFEDChannel>>()},
59 tkerrorlist_(iConfig.getParameter<std::vector<int>>(
"ErrorList")),
60 usererrorlist_(iConfig.getParameter<std::vector<int>>(
"UserErrorList")),
61 usePhase1_(iConfig.getParameter<
bool>(
"UsePhase1")) {}
68 desc.add<
std::string>(
"CablingMapLabel",
"")->setComment(
"CablingMap label");
69 desc.add<
bool>(
"UsePhase1",
false)->setComment(
"## Use phase1");
70 desc.add<std::vector<int>>(
"ErrorList", std::vector<int>{29})
71 ->setComment(
"## ErrorList: list of error codes used by tracking to invalidate modules");
72 desc.add<std::vector<int>>(
"UserErrorList", std::vector<int>{40})
73 ->setComment(
"## UserErrorList: list of error codes used by Pixel experts for investigation");
97 auto errors = formatterErrors;
101 uint32_t
size = digiErrors.view().metadata().size();
104 if (
err.errorType != 0) {
111 formatter.unpackFEDErrors(
errors,
115 tkerror_detidcollection,
116 usererror_detidcollection,
117 disabled_channelcollection,
120 const uint32_t dummydetid = 0xffffffff;
122 errorDetSet.
data = nodeterrors;
std::unique_ptr< SiPixelFedCablingTree > cabling_
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
T getParameter(std::string const &) const
std::unique_ptr< SiPixelFedCablingTree > cablingTree() const
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
const std::vector< int > usererrorlist_
edm::ESWatcher< SiPixelFedCablingMapRcd > cablingWatcher_
#define DEFINE_FWK_MODULE(type)
const edm::EDGetTokenT< SiPixelFormatterErrors > fmtErrorsGetToken_
const edm::EDGetTokenT< SiPixelDigiErrorsHost > digiErrorsSoAGetToken_
const edm::EDPutTokenT< DetIdCollection > userErrorPutToken_
const edm::EDPutTokenT< edm::DetSetVector< SiPixelRawDataError > > errorPutToken_
const edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcd > cablingToken_
SiPixelDigiErrorsFromSoAAlpaka(const edm::ParameterSet &iConfig)
bool check(const edm::EventSetup &iSetup)
const std::vector< int > tkerrorlist_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
~SiPixelDigiErrorsFromSoAAlpaka() override=default
const edm::EDPutTokenT< DetIdCollection > tkErrorPutToken_
const edm::EDPutTokenT< edmNew::DetSetVector< PixelFEDChannel > > disabledChannelPutToken_
Pixel error – collection of errors and error information.