18 template <
typename T,
typename U>
21 std::vector<T>
copy(input.begin(), input.end());
33 single_channel_thresh(iConfig.getParameter<unsigned>(
"SINGLE_CHANNEL_THRESH") ),
34 channel_count_thresh( iConfig.getParameter<unsigned>(
"CHANNEL_COUNT_THRESH") )
49 unsigned int sig_ctr = 0;
60 std::vector<uint16_t>::const_iterator ifed =
las_fed_ids.begin();
64 LogDebug(
"LaserAlignmentEventFilter") <<
"Examining FED " << *ifed;
76 if (not
buffer.doChecks(
true)) {
77 edm::LogWarning(
"LaserAlignmentEventFilter") <<
"FED Buffer check fails for FED ID " << *ifed <<
".";
85 std::vector<FedChannelConnection>::const_iterator iconn = conns.begin();
86 for ( ; iconn != conns.end(); iconn++ ) {
88 LogDebug(
"LaserAlignmentEventFilter")
89 <<
" Found LAS signal module in FED " 92 << iconn->detId() <<
"\n" 93 <<
"buffer.channel(iconn->fedCh()).size(): " <<
buffer.channel(iconn->fedCh()).length();
99 LogDebug(
"LaserAlignmentEventFilter") <<
"Event identified as LAS";
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const std::vector< uint16_t > las_fed_ids
~LaserAlignmentEventFilter() override
size_t size() const
Lenght of the data buffer in bytes.
static std::string const input
#define DEFINE_FWK_MODULE(type)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
std::vector< T > copy_and_sort_vector(std::vector< U > const &input)
const edm::EDGetTokenT< FEDRawDataCollection > FED_collection_token
const std::vector< uint32_t > las_signal_ids
bool filter(edm::StreamID, edm::Event &, edm::EventSetup const &) const override
LaserAlignmentEventFilter(const edm::ParameterSet &)
ConnsConstIterRange fedConnections(uint16_t fed_id) const
const uint16_t single_channel_thresh
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
const uint16_t channel_count_thresh