|
|
Go to the documentation of this file.
61 storeAPVAddress_(
pset.getParameter<
bool>(
"StoreAPVAddress")),
62 storePayloadDigis_(
pset.getParameter<
bool>(
"StorePayloadDigis")),
63 storeReorderedDigis_(
pset.getParameter<
bool>(
"StoreReorderedDigis")),
64 storeModuleDigis_(
pset.getParameter<
bool>(
"StoreModuleDigis")),
65 discardDigisWithAPVAddressError_(
pset.getParameter<
bool>(
"DiscardDigisWithWrongAPVAddress")),
66 expectedHeaderBit_(
pset.getParameter<uint32_t>(
"ExpectedPositionOfFirstHeaderBit")) {
69 LogTrace(
"SiStripSpyDigiConverter") <<
"[sistrip::SpyDigiConverterModule::" << __func__ <<
"]"
70 <<
" Constructing object...";
74 produces<edm::DetSetVector<SiStripRawDigi> >(
"SpyPayload");
76 produces<edm::DetSetVector<SiStripRawDigi> >(
"SpyReordered");
78 produces<edm::DetSetVector<SiStripRawDigi> >(
"SpyVirginRaw");
81 produces<std::vector<uint32_t> >(
"APVAddress");
96 LogTrace(
"SiStripSpyDigiConverter") <<
"[sistrip::SpyDigiConverterModule::" << __func__ <<
"]"
97 <<
" Destructing object...";
108 static bool lFirstEvent =
true;
120 std::unique_ptr<std::vector<uint32_t> > pAPVAddresses(
new std::vector<uint32_t>);
122 std::unique_ptr<sistrip::SpyDigiConverter::DSVRawDigis> payloadDigis, reorderedDigis, moduleDigis;
127 uint16_t lFirstHeaderBit;
131 edm::LogWarning(
"") <<
" -- Majority position for firstHeaderBit in first event (" << lFirstHeaderBit
132 <<
") is not where expected: " << static_cast<uint16_t>(
expectedHeaderBit_) << std::endl;
155 event.put(
std::move(payloadDigis),
"SpyPayload");
157 event.put(
std::move(reorderedDigis),
"SpyReordered");
159 event.put(
std::move(moduleDigis),
"SpyVirginRaw");
161 event.put(
std::move(pAPVAddresses),
"APVAddress");
sistrip::SpyDigiConverterModule SiStripSpyDigiConverterModule
T const * product() const
const bool storeAPVAddress_
True = store APVE address for each channel.
sistrip::SpyUtilities::FrameQuality frameQuality_
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses,...
Log< level::Warning, false > LogWarning
static std::unique_ptr< DSVRawDigis > extractPayloadDigis(const DSVRawDigis *inputScopeDigis, std::vector< uint32_t > *pAPVAddresses, const bool discardDigisWithAPVAddrErr, const sistrip::SpyUtilities::FrameQuality &aQuality, const uint16_t expectedPos)
Extract frames from the scope digis.
void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< sistrip::SpyDigiConverter::DSVRawDigis > productToken_
#define DEFINE_FWK_MODULE(type)
static std::unique_ptr< DSVRawDigis > reorderDigis(const DSVRawDigis *inputPayloadDigis)
~SpyDigiConverterModule() override
const bool storePayloadDigis_
A plug-in module that takes the spy channel scope mode digis as input from the Event and creates EDPr...
const edm::InputTag productLabel_
SpyDigiConverterModule(const edm::ParameterSet &)
static std::unique_ptr< DSVRawDigis > mergeModuleChannels(const DSVRawDigis *inputPhysicalOrderChannelDigis, const SiStripFedCabling &cabling)
const bool storeReorderedDigis_
const bool storeModuleDigis_
const SiStripFedCabling * getCabling(const edm::EventSetup &)
Updates the cabling object from the DB.
const uint32_t expectedHeaderBit_
static void getMajorityHeader(const edm::DetSetVector< SiStripRawDigi > *aInputDigis, uint16_t &firstHeaderBit, bool printResult=true)
const bool discardDigisWithAPVAddressError_