39 period_( config.getParameter<unsigned
int>(
"period") ),
40 fedId_( config.getParameter<
int>(
"fedId") ),
41 invert_( config.getParameter<
bool>(
"invert") ),
43 useTCDS_( config.getParameter<
bool>(
"useTCDSEventNumber") and fedId_ == 1024)
59 desc.
add<
unsigned int>(
"period",4096);
60 desc.
add<
bool>(
"invert",
true);
61 desc.
add<
int>(
"fedId",812);
62 desc.
add<
bool>(
"useTCDSEventNumber",
false);
63 descriptions.
add(
"hltL1NumberFilter",desc);
80 if (data.
data() and data.
size() > 0) {
84 counter =
record.getTriggerCount();
93 LogWarning(
"HLTL1NumberFilter")<<
"No valid data for FED "<<
fedId_<<
" used by HLTL1NumberFilter";
const int fedId_
FED from which to get lv1ID number.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const bool useTCDS_
if useTCDS=true, use 64-bit Event Number from TCDS record (FED 1024) word 11
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
size_t size() const
Lenght of the data buffer in bytes.
Class to contain information from TCDS FED.
#define DEFINE_FWK_MODULE(type)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
const unsigned int period_
accept the event if its event number is a multiple of period_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
bool filter(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const edm::EDGetTokenT< FEDRawDataCollection > inputToken_
raw data
char data[epos_bytes_allocation]
static std::atomic< unsigned int > counter
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
HLTL1NumberFilter(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
~HLTL1NumberFilter() override
const bool invert_
if invert_=true, invert that event accept decision