66 descriptions.
add(
"hltHcalNZSFilter",desc);
85 int nFEDs = 0 ;
int nNZSfed = 0 ;
int nZSfed = 0 ;
88 if ( fedData.
size() < 24 )
continue ;
94 int nZS = 0 ;
int nUS = 0 ;
int nSpigot = 0 ;
108 if ( nUS == nSpigot ) nNZSfed++ ;
111 if ( nUS > 0 )
LogWarning(
"HLTHcalNZSFilter") <<
"Mixture of ZS(" << nZS
112 <<
") and NZS(" << nUS
113 <<
") spigots in FED " <<
i ;
117 if ( (nNZSfed == nFEDs) && (nFEDs > 0) ) {
return true ; }
119 if ( nNZSfed > 0 )
LogWarning(
"HLTHcalNZSFilter") <<
"Mixture of ZS(" << nZSfed
120 <<
") and NZS(" << nNZSfed
121 <<
") FEDs in this event" ;
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< FEDRawDataCollection > dataInputToken_
bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
size_t size() const
Lenght of the data buffer in bytes.
bool isUnsuppressed() const
Is this event an unsuppresed event?
HLTHcalNZSFilter(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
static void makeHLTFilterDescription(edm::ParameterSetDescription &desc)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
int getFirmwareFlavor() const
Get the HTR firmware flavor.
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
~HLTHcalNZSFilter() override
edm::InputTag dataInputTag_