#include <SiStripFEDErrorsDQM.h>
Public Member Functions | |
SiStripFEDErrorsDQM (const edm::ParameterSet &iConfig) | |
~SiStripFEDErrorsDQM () | |
Public Member Functions inherited from edm::EDAnalyzer | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
EDAnalyzer () | |
ModuleDescription const & | moduleDescription () const |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Public Member Functions inherited from SiStripBaseServiceFromDQM< SiStripBadStrip > | |
virtual bool | checkForCompatibility (std::string ss) |
Check is the transfer is needed. More... | |
virtual void | getMetaDataString (std::stringstream &ss) |
Used to fill the logDB. More... | |
SiStripBaseServiceFromDQM (const edm::ParameterSet &) | |
virtual | ~SiStripBaseServiceFromDQM () |
Public Member Functions inherited from SiStripCondObjBuilderBase< SiStripBadStrip > | |
virtual void | getObj (SiStripBadStrip *&obj) |
virtual void | initialize () |
SiStripCondObjBuilderBase (const edm::ParameterSet &pset) | |
virtual | ~SiStripCondObjBuilderBase () |
Private Member Functions | |
void | addBadAPV (const FedChannelConnection &aConnection, const unsigned short aAPVNumber, const unsigned short aFlag, unsigned int &aCounter) |
void | addBadStrips (const FedChannelConnection &aConnection, const unsigned int aDetId, const unsigned short aApvNum, const unsigned short aFlag, unsigned int &aCounter) |
void | addErrors () |
Writes the errors to the db. More... | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob () |
virtual void | endJob () |
bool | readBadAPVs () |
void | readHistogram (MonitorElement *aMe, unsigned int &aCounter, const float aNorm, const unsigned int aFedId) |
void | setFlagBit (unsigned short &aFlag, const unsigned short aBit) |
void | updateCabling (const edm::EventSetup &eventSetup) |
Private Attributes | |
const SiStripFedCabling * | cabling_ |
uint32_t | cablingCacheId_ |
unsigned int | debug_ |
std::map< uint32_t, std::vector< unsigned int > > | detIdErrors_ |
edm::FileInPath | fp_ |
edm::ParameterSet | iConfig_ |
double | threshold_ |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
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 ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
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) |
Protected Member Functions inherited from SiStripBaseServiceFromDQM< SiStripBadStrip > | |
void | getModuleFolderList (std::vector< std::string > &mfolders) |
Fill the mfolders vector with the full list of directories for all the modules. More... | |
MonitorElement * | getModuleHistogram (const uint32_t detId, const std::string &name) |
uint32_t | getRunNumber () const |
Returns the run number from the cfg. More... | |
bool | goToDir (const std::string &name) |
Uses DQM utilities to access the requested dir. More... | |
void | openRequestedFile () |
Uses DQMStore to access the DQM file. More... | |
Protected Attributes inherited from SiStripBaseServiceFromDQM< SiStripBadStrip > | |
DQMStore * | dqmStore_ |
boost::shared_ptr < SiStripFolderOrganizer > | folderOrganizer_ |
edm::ParameterSet | iConfig_ |
Protected Attributes inherited from SiStripCondObjBuilderBase< SiStripBadStrip > | |
edm::ParameterSet | _pset |
SiStripBadStrip * | obj_ |
Definition at line 37 of file SiStripFEDErrorsDQM.h.
SiStripFEDErrorsDQM::SiStripFEDErrorsDQM | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 8 of file SiStripFEDErrorsDQM.cc.
References SiStripCondObjBuilderBase< SiStripBadStrip >::obj_.
SiStripFEDErrorsDQM::~SiStripFEDErrorsDQM | ( | ) |
Definition at line 20 of file SiStripFEDErrorsDQM.cc.
|
private |
Definition at line 338 of file SiStripFEDErrorsDQM.cc.
References addBadStrips(), FedChannelConnection::apvPairNumber(), FedChannelConnection::detId(), sistrip::invalid32_, and FedChannelConnection::isConnected().
Referenced by readHistogram().
|
private |
Definition at line 365 of file SiStripFEDErrorsDQM.cc.
References detIdErrors_, SiStripBadStrip::encode(), FedChannelConnection::fedCh(), FedChannelConnection::fedId(), LogTrace, and SiStripCondObjBuilderBase< SiStripBadStrip >::obj_.
Referenced by addBadAPV().
|
private |
Writes the errors to the db.
Definition at line 396 of file SiStripFEDErrorsDQM.cc.
References SiStripBadStrip::decode(), detIdErrors_, SiStripBadStrip::encode(), SiStripBadStrip::data::firstStrip, SiStripBadStrip::data::flag, SiStripCondObjBuilderBase< SiStripBadStrip >::obj_, SiStripBadStrip::put(), and setFlagBit().
Referenced by readBadAPVs().
|
privatevirtual |
Implements edm::EDAnalyzer.
Definition at line 25 of file SiStripFEDErrorsDQM.cc.
References cond::service::PoolDBOutputService::appendSinceTime(), cond::service::PoolDBOutputService::beginOfTime(), cond::service::PoolDBOutputService::createNewIOV(), cond::service::PoolDBOutputService::currentTime(), cond::service::PoolDBOutputService::endOfTime(), edm::Service< T >::isAvailable(), cond::service::PoolDBOutputService::isNewTagRequest(), SiStripCondObjBuilderBase< SiStripBadStrip >::obj_, readBadAPVs(), and updateCabling().
|
privatevirtual |
|
privatevirtual |
|
private |
Definition at line 69 of file SiStripFEDErrorsDQM.cc.
References addErrors(), cabling_, debug_, FedChannelConnection::detId(), SiStripBaseServiceFromDQM< SiStripBadStrip >::dqmStore_, sistrip::FED_ID_MAX, sistrip::FED_ID_MIN, SiStripFedCabling::fedConnections(), SiStripFedCabling::fedIds(), fp_, edm::FileInPath::fullPath(), SiStripBaseServiceFromDQM< SiStripBadStrip >::getRunNumber(), SiStripBaseServiceFromDQM< SiStripBadStrip >::goToDir(), sistrip::invalid32_, FedChannelConnection::isConnected(), LogTrace, FEDNumbering::MAXSiStripFEDID, FEDNumbering::MINSiStripFEDID, SiStripCondObjBuilderBase< SiStripBadStrip >::obj_, SiStripBaseServiceFromDQM< SiStripBadStrip >::openRequestedFile(), readHistogram(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by analyze().
|
private |
Definition at line 219 of file SiStripFEDErrorsDQM.cc.
References addBadAPV(), cabling_, debug_, sistrip::FEDCH_PER_FED, sistrip::FEDCH_PER_FEUNIT, SiStripFedCabling::fedConnection(), MonitorElement::getBinContent(), MonitorElement::getName(), MonitorElement::getNbinsX(), FedChannelConnection::isConnected(), LogTrace, FEDNumbering::MINSiStripFEDID, AlCaHLTBitMon_QueryRunRegistry::string, and threshold_.
Referenced by readBadAPVs().
|
private |
Definition at line 441 of file SiStripFEDErrorsDQM.cc.
Referenced by addErrors().
|
private |
Definition at line 58 of file SiStripFEDErrorsDQM.cc.
References cabling_, cablingCacheId_, edm::EventSetup::get(), and edm::ESHandle< class >::product().
Referenced by analyze().
|
private |
Definition at line 79 of file SiStripFEDErrorsDQM.h.
Referenced by readBadAPVs(), readHistogram(), and updateCabling().
|
private |
Definition at line 78 of file SiStripFEDErrorsDQM.h.
Referenced by updateCabling().
|
private |
Definition at line 82 of file SiStripFEDErrorsDQM.h.
Referenced by readBadAPVs(), and readHistogram().
|
private |
Definition at line 83 of file SiStripFEDErrorsDQM.h.
Referenced by addBadStrips(), and addErrors().
|
private |
Definition at line 76 of file SiStripFEDErrorsDQM.h.
Referenced by readBadAPVs().
|
private |
Definition at line 75 of file SiStripFEDErrorsDQM.h.
|
private |
Definition at line 81 of file SiStripFEDErrorsDQM.h.
Referenced by readHistogram().