13 verbose_ =
pset.getUntrackedParameter<
bool>(
"DebugOn",
false);
14 AndOr_ =
pset.getParameter<
bool>(
"AndOr");
15 applyfilter_ =
pset.getParameter<
bool>(
"ApplyFilter");
16 DetNames_ =
pset.getParameter<std::vector<std::string> >(
"DetectorType");
21 for (
unsigned int detreq = 0; detreq < DetNames_.size(); detreq++) {
27 requestedPartitions_.set(detlist,
true);
39 scalersToken_ = consumes<DcsStatusCollection>(
edm::InputTag(
"scalersRawToDigi"));
40 dcsRecordToken_ = consumes<DCSRecord>(
edm::InputTag(
"onlineMetaDataDigis"));
53 edm::LogInfo(
"DetStatus") <<
"Using FED#735 for reading DCS bits" << std::endl;
57 unsigned int curr_dcs = (dcsStatus)[0].ready();
63 accepted = ((DetMap_ & curr_dcs) == DetMap_);
65 accepted = ((DetMap_ & curr_dcs) != 0);
68 edm::LogInfo(
"DetStatus") <<
"DCSStatus filter: requested map: " << DetMap_ <<
" dcs in event: " << curr_dcs
69 <<
" filter: " <<
accepted <<
"( AndOr: " << AndOr_ <<
")" << std::endl;
88 edm::LogInfo(
"DetStatus") <<
"Using softFED#1022 for reading DCS bits" << std::endl;
92 if (requestedPartitions_.test(detlist)) {
102 edm::LogInfo(
"DetStatus") <<
"DCSStatus filter: " <<
accepted <<
"( AndOr: " << AndOr_ <<
")" << std::endl;
105 if ((
dcsRecord.highVoltageReady(detlist))) {
130 if (dcsStatus.
isValid() && !dcsStatus->empty()) {
131 accepted = checkForDCSStatus(*dcsStatus);
142 <<
"Error! can't get the product, neither DCSRecord, nor scalersRawToDigi: accept in any case!";