16 DetNames_ = pset.
getParameter<std::vector<std::string> >(
"DetectorType" );
20 for (
unsigned int detreq=0;detreq<DetNames_.size();detreq++)
35 scalersToken_=consumes<DcsStatusCollection>(scalersTag);
53 if (dcsStatus->empty())
57 edm::LogError(
"DetStatus") <<
"Error! dcsStatus has size 0, accept in any case" ;
62 unsigned int curr_dcs=(*dcsStatus)[0].ready();
64 std::cout <<
"curr_dcs = " << curr_dcs << std::endl;
66 accepted=((DetMap_ & curr_dcs)== DetMap_);
68 accepted=((DetMap_ & curr_dcs)!= 0);
73 std::cout <<
"DCSStatus filter: requested map: " << DetMap_ <<
" dcs in event: " <<curr_dcs <<
" filter: " << accepted << std::endl;
88 edm::LogError(
"DetStatus") <<
"Error! can't get the product: scalersRawToDigi, accept in any case" ;
92 if (! applyfilter_) accepted=
true;
DetStatus(const edm::ParameterSet &)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
EventAuxiliary const & eventAuxiliary() const override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
bool filter(edm::Event &, edm::EventSetup const &) override
static const char *const partitionName[]
static const int partitionList[]