45 : writePayload_(iConfig.getUntrackedParameter<
bool>(
"writePayload",
true)),
46 fp_(iConfig.getUntrackedParameter<
edm::FileInPath>(
"file",
48 printdebug_(iConfig.getUntrackedParameter<uint32_t>(
"printDebug",
std::numeric_limits<unsigned
int>::
max())),
57 unsigned int count{0};
60 const auto& DetInfos =
reader.getAllData();
65 for (
const auto&
it : DetInfos) {
66 const auto& nAPVs =
it.second.nApvs;
72 std::vector<bool> badChannels;
78 badChannels[
strip] =
true;
84 const auto& theNoise =
noise.getNoise(
strip, detNoiseRange);
85 if (!badChannels[
strip]) {
91 <<
" detid: " <<
it.first <<
" strip: " <<
strip <<
" noise:" << theNoise;
96 obj.setData(theNoise, theSiStripVector);
99 if (!
obj.put(
it.first, theSiStripVector))
117 edm::LogError(
"SiStripNoisesBuilder") <<
"Service is unavailable, will not write any output";
127 "Given a certain Global Tag, checks that the all the unmasked strips, do have a noise within the payload range");
128 desc.addUntracked<
bool>(
"writePayload",
true);
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
const edm::ESGetToken< SiStripNoises, SiStripNoisesRcd > noiseToken_
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
std::string fullPath() const
const edm::FileInPath fp_
cond::Time_t beginOfTime() const
std::vector< unsigned int >::const_iterator ContainerIterator
std::vector< uint16_t > InputVector
Log< level::Error, false > LogError
const uint32_t printdebug_
~SiStripNoisesAndBadCompsChecker() override=default
void createOneIOV(const T &payload, cond::Time_t firstSinceTime, const std::string &recordName)
const edm::ESGetToken< SiStripBadStrip, SiStripBadChannelRcd > deadChannelToken_
void appendOneIOV(const T &payload, cond::Time_t sinceTime, const std::string &recordName)
const std::string k_Record_
bool isNewTagRequest(const std::string &recordName)
cond::Time_t currentTime() const
#define DEFINE_FWK_MODULE(type)
SiStripDetInfo read(std::string filePath)
Log< level::Warning, true > LogPrint
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Log< level::Info, false > LogInfo
const std::string k_Name_
SiStripNoisesAndBadCompsChecker(const edm::ParameterSet &iConfig)
static const std::string kSharedResource
void analyze(const edm::Event &, const edm::EventSetup &) override
static const uint16_t STRIPS_PER_APV
std::pair< ContainerIterator, ContainerIterator > Range
static constexpr char const *const kDefaultFile
std::pair< ContainerIterator, ContainerIterator > Range