42 std::unique_ptr<SiPixelFedCablingTree>
cabling_;
53 errorPutToken_{produces<edm::DetSetVector<SiPixelRawDataError>>()},
54 tkErrorPutToken_{produces<DetIdCollection>()},
55 userErrorPutToken_{produces<DetIdCollection>(
"UserErrorModules")},
56 disabledChannelPutToken_{produces<edmNew::DetSetVector<PixelFEDChannel>>()},
57 tkerrorlist_(iConfig.getParameter<std::vector<int>>(
"ErrorList")),
58 usererrorlist_(iConfig.getParameter<std::vector<int>>(
"UserErrorList")),
59 usePhase1_(iConfig.getParameter<
bool>(
"UsePhase1")) {}
65 desc.add<
std::string>(
"CablingMapLabel",
"")->setComment(
"CablingMap label");
66 desc.add<
bool>(
"UsePhase1",
false)->setComment(
"## Use phase1");
67 desc.add<std::vector<int>>(
"ErrorList", std::vector<int>{29})
68 ->setComment(
"## ErrorList: list of error codes used by tracking to invalidate modules");
69 desc.add<std::vector<int>>(
"UserErrorList", std::vector<int>{40})
70 ->setComment(
"## UserErrorList: list of error codes used by Pixel experts for investigation");
94 assert(formatterErrors !=
nullptr);
95 auto errors = *formatterErrors;
98 auto size = digiErrors.size();
101 if (
err.errorType != 0) {
111 tkerror_detidcollection,
112 usererror_detidcollection,
113 disabled_channelcollection,
116 const uint32_t dummydetid = 0xffffffff;
118 errorDetSet.
data = nodeterrors;
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
T getParameter(std::string const &) const
std::unique_ptr< SiPixelFedCablingTree > cablingTree() const
const edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcd > cablingToken_
const edm::EDPutTokenT< edm::DetSetVector< SiPixelRawDataError > > errorPutToken_
const edm::EDPutTokenT< edmNew::DetSetVector< PixelFEDChannel > > disabledChannelPutToken_
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
const edm::EDGetTokenT< SiPixelErrorsSoA > digiErrorSoAGetToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDPutTokenT< DetIdCollection > tkErrorPutToken_
std::unique_ptr< SiPixelFedCablingTree > cabling_
const edm::EDPutTokenT< DetIdCollection > userErrorPutToken_
#define DEFINE_FWK_MODULE(type)
bool getData(T &iHolder) const
SiPixelDigiErrorsFromSoA(const edm::ParameterSet &iConfig)
~SiPixelDigiErrorsFromSoA() override=default
bool check(const edm::EventSetup &iSetup)
const std::vector< int > tkerrorlist_
const std::vector< int > usererrorlist_
Pixel error – collection of errors and error information.
edm::ESWatcher< SiPixelFedCablingMapRcd > cablingWatcher_