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();
99 for (
auto i = 0U;
i <
size;
i++) {
103 errors[err.
rawId].push_back(error);
107 formatter.unpackFEDErrors(errors,
111 tkerror_detidcollection,
112 usererror_detidcollection,
113 disabled_channelcollection,
116 const uint32_t dummydetid = 0xffffffff;
118 errorDetSet.
data = nodeterrors;
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
const edm::ESGetToken< SiPixelFedCablingMap, SiPixelFedCablingMapRcd > cablingToken_
const edm::EDPutTokenT< edm::DetSetVector< SiPixelRawDataError > > errorPutToken_
#define DEFINE_FWK_MODULE(type)
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)
bool getData(T &iHolder) const
const edm::EDPutTokenT< DetIdCollection > tkErrorPutToken_
std::unique_ptr< SiPixelFedCablingTree > cabling_
const edm::EDPutTokenT< DetIdCollection > userErrorPutToken_
bool get(ProductID const &oid, Handle< PROD > &result) const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::unique_ptr< SiPixelFedCablingTree > cablingTree() const
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
SiPixelDigiErrorsFromSoA(const edm::ParameterSet &iConfig)
T getParameter(std::string const &) const
~SiPixelDigiErrorsFromSoA() override=default
bool check(const edm::EventSetup &iSetup)
const std::vector< int > tkerrorlist_
const std::vector< int > usererrorlist_
tuple size
Write out results.
Pixel error – collection of errors and error information.
edm::ESWatcher< SiPixelFedCablingMapRcd > cablingWatcher_