|
| SiPixelBadModuleByHandBuilder (const edm::ParameterSet &) |
|
| ~SiPixelBadModuleByHandBuilder () override |
|
| ConditionDBWriter (const edm::ParameterSet &iConfig) |
|
| ~ConditionDBWriter () override |
|
| EDAnalyzer ()=default |
|
| EDAnalyzer (const EDAnalyzer &)=delete |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
const EDAnalyzer & | operator= (const EDAnalyzer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsInputProcessBlocks () const final |
|
bool | wantsProcessBlocks () const final |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~EDAnalyzerBase () override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ESResolverIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESResolverIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
|
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (edm::Transition iTrans) const |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProductResolverIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDAnalyzerBase | ModuleType |
|
typedef ProductLabels | Labels |
|
static void | fillPSetDescription (edm::ParameterSetDescription &desc) |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
void | setDoStore (const bool doStore) |
| When set to false the payload will not be written to the db. More...
|
|
void | storeOnDbNow () |
|
cond::Time_t | timeOfLastIOV () |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
|
ConsumesCollector | consumesCollector () |
| Use a ConsumesCollector to gather consumes information from helper functions. More...
|
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
void | resetItemsToGetFrom (BranchType iType) |
|
std::unique_ptr< SiPixelQuality > SiPixelBadModuleByHandBuilder::getNewObject |
( |
| ) |
|
|
overrideprivatevirtual |
Implements ConditionDBWriter< SiPixelQuality >.
Definition at line 54 of file SiPixelBadModuleByHandBuilder.cc.
References BadModuleList_, SiPixelQuality::disabledModuleType::BadRocs, hcalRecHitTable_cff::detId, SiPixelQuality::disabledModuleType::DetID, SiPixelQuality::disabledModuleType::errorType, PixelBarrelName::getDetId(), PixelEndcapName::getDetId(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, Skims_PA_cff::name, getGTfromDQMFile::obj, printdebug_, PixelMapPlotter::roc, ROCListFile_, AlCaHLTBitMon_QueryRunRegistry::string, and tTopo_.
55 auto obj = std::make_unique<SiPixelQuality>();
59 edm::LogInfo(
"SiPixelBadModuleByHandBuilder") <<
" BadModule " << *
it <<
" \t" << std::endl;
65 BadModule.
DetID =
it->getParameter<uint32_t>(
"detid");
69 <<
"now looking at detid " << BadModule.
DetID <<
", string " << errorstring << std::endl;
89 if (errorstring ==
"whole") {
93 else if (errorstring ==
"tbmA") {
97 else if (errorstring ==
"tbmB") {
101 else if (errorstring ==
"none") {
104 std::vector<uint32_t> BadRocList =
it->getParameter<std::vector<uint32_t> >(
"badroclist");
106 for (std::vector<uint32_t>::iterator iter = BadRocList.begin(); iter != BadRocList.end(); ++iter) {
107 badrocs += 1 << *iter;
113 edm::LogError(
"SiPixelQuality") <<
"trying to fill error type " << errorstring <<
", which is not defined!";
114 obj->addDisabledModule(BadModule);
119 std::map<uint32_t, uint32_t> disabledModules;
122 while (std::getline(aFile, aLine)) {
125 sscanf(aLine.c_str(),
"%s %d",
name, &
roc);
127 if (
name[0] ==
'B') {
134 std::map<uint32_t, uint32_t>::iterator
it = disabledModules.find(
detId);
135 if (
it == disabledModules.end())
136 it = disabledModules.insert(disabledModules.begin(), std::make_pair(
detId, 0));
137 it->second |= 1 <<
roc;
141 for (
const auto&
it : disabledModules) {
144 if (
it.second == 65535) {
148 else if (
it.second == 255) {
152 else if (
it.second == 65280) {
161 obj->addDisabledModule(BadModule);
164 <<
"New module added: " <<
tTopo_->print(BadModule.
DetID) <<
", errorType: " << BadModule.
errorType 165 <<
", BadRocs: " << std::bitset<16>(
it.second) << std::endl;
Log< level::Info, true > LogVerbatim
Log< level::Error, false > LogError
const std::string ROCListFile_
Parameters BadModuleList_
Log< level::Info, false > LogInfo
std::unique_ptr< TrackerTopology > tTopo_