#include <SiStripTrackerMapCreator.h>
Public Types | |
typedef dqm::harvesting::DQMStore | DQMStore |
typedef dqm::harvesting::MonitorElement | MonitorElement |
Public Member Functions | |
void | create (edm::ParameterSet const &tkmapPset, DQMStore &dqm_store, std::string const &htype, edm::EventSetup const &eSetup) |
void | createForOffline (edm::ParameterSet const &tkmapPset, DQMStore &dqm_store, std::string &htype, edm::EventSetup const &eSetup) |
void | createInfoFile (std::vector< std::string > const &map_names, TTree *tkinfo_tree, DQMStore &dqm_store) |
bool | readConfiguration () |
SiStripTrackerMapCreator (edm::EventSetup const &eSetup) | |
Private Member Functions | |
uint16_t | getDetectorFlag (uint32_t const det_id) |
uint16_t | getDetectorFlagAndComment (DQMStore *dqm_store, uint32_t det_id, TrackerTopology const *tTopo, std::ostringstream &comment) |
void | paintTkMapFromAlarm (uint32_t det_id, const TrackerTopology *tTopo, DQMStore &dqm_store, bool isBad, std::map< unsigned int, std::string > &badmodmap) |
void | paintTkMapFromHistogram (MonitorElement const *me, std::string const &map_type, std::vector< std::pair< float, uint32_t >> *topNmodVec) |
void | printBadModuleList (std::map< unsigned int, std::string > const &badmodmap, edm::EventSetup const &eSetup) |
void | printTopModules (std::vector< std::pair< float, uint32_t >> &topNmodVec, edm::EventSetup const &eSetup) |
void | setTkMapFromAlarm (DQMStore &dqm_store, edm::EventSetup const &eSetup) |
void | setTkMapFromHistogram (DQMStore &dqm_store, std::string const &htype, edm::EventSetup const &eSetup) |
void | setTkMapRange (std::string const &map_type) |
void | setTkMapRangeOffline () |
Private Attributes | |
DetId | cachedDetId_ {} |
int16_t | cachedLayer_ {} |
TkLayerMap::XYbin | cachedXYbin_ |
edm::ESHandle< SiStripDetCabling > | detCabling_ |
std::map< uint32_t, uint16_t > | detFlag_ |
edm::EventSetup const & | eSetup_ |
float | meanToMaxFactor_ {2.5} |
int | nDet_ |
uint32_t | numTopModules_ |
bool | ResidualsRMS_ |
std::string | sRunNumber |
std::string | ssqLabel_ |
std::string | stripTopLevelDir_ {} |
TkDetMap const * | tkDetMap_ |
float | tkMapMax_ |
float | tkMapMin_ |
std::string | tkMapName_ |
std::string | topModLabel_ |
bool | topModules_ |
std::unique_ptr< TrackerMap > | trackerMap_ { 0 } |
bool | useSSQuality_ |
Definition at line 24 of file SiStripTrackerMapCreator.h.
Definition at line 27 of file SiStripTrackerMapCreator.h.
Definition at line 26 of file SiStripTrackerMapCreator.h.
SiStripTrackerMapCreator::SiStripTrackerMapCreator | ( | edm::EventSetup const & | eSetup | ) |
Definition at line 23 of file SiStripTrackerMapCreator.cc.
References detCabling_, eSetup_, edm::EventSetup::get(), edm::ESHandle< T >::product(), and tkDetMap_.
void SiStripTrackerMapCreator::create | ( | edm::ParameterSet const & | tkmapPset, |
DQMStore & | dqm_store, | ||
std::string const & | htype, | ||
edm::EventSetup const & | eSetup | ||
) |
Definition at line 33 of file SiStripTrackerMapCreator.cc.
References detCabling_, SiStripDetCabling::fedCabling(), edm::EventSetup::get(), meanToMaxFactor_, nDet_, edm::ESHandle< T >::product(), setTkMapFromAlarm(), setTkMapFromHistogram(), setTkMapRange(), ssqLabel_, AlCaHLTBitMon_QueryRunRegistry::string, stripTopLevelDir_, tkMapMax_, tkMapMin_, trackerMap_, and useSSQuality_.
void SiStripTrackerMapCreator::createForOffline | ( | edm::ParameterSet const & | tkmapPset, |
DQMStore & | dqm_store, | ||
std::string & | htype, | ||
edm::EventSetup const & | eSetup | ||
) |
Definition at line 69 of file SiStripTrackerMapCreator.cc.
References dqm::dqmstoreimpl::DQMStore::cd(), gather_cfg::cout, detCabling_, SiStripDetCabling::fedCabling(), edm::EventSetup::get(), SiStripUtility::goToDir(), meanToMaxFactor_, numTopModules_, edm::ESHandle< T >::product(), dqm::dqmstoreimpl::DQMStore::pwd(), ResidualsRMS_, sistrip::runNumber_, setTkMapFromAlarm(), setTkMapFromHistogram(), setTkMapRangeOffline(), sRunNumber, contentValuesCheck::ss, ssqLabel_, AlCaHLTBitMon_QueryRunRegistry::string, stripTopLevelDir_, tkMapMax_, tkMapMin_, topModLabel_, topModules_, trackerMap_, and useSSQuality_.
void SiStripTrackerMapCreator::createInfoFile | ( | std::vector< std::string > const & | map_names, |
TTree * | tkinfo_tree, | ||
DQMStore & | dqm_store | ||
) |
Definition at line 437 of file SiStripTrackerMapCreator.cc.
References dqm::dqmstoreimpl::DQMStore::cd(), BTVHLTOfflineSource_cfi::dirname, eSetup_, edm::EventSetup::get(), getDetectorFlag(), TrackerGeometryUtils::getSiStripDetIds(), SiStripUtility::goToDir(), triggerObjects_cff::id, dqm::dqmstoreimpl::DQMStore::pwd(), AlCaHLTBitMon_QueryRunRegistry::string, and tkDetMap_.
|
inlineprivate |
Definition at line 60 of file SiStripTrackerMapCreator.h.
Referenced by createInfoFile().
|
private |
Definition at line 369 of file SiStripTrackerMapCreator.cc.
References dqm::dqmstoreimpl::DQMStore::cd(), SiStripCommissioningClient_cfg::conn, constexpr, detCabling_, dqm::dqmstoreimpl::DQMStore::dirExists(), RemoveAddSevLevel::flag, dqm::dqmstoreimpl::DQMStore::get(), SiStripUtility::getBadModuleStatus(), SiStripDetCabling::getConnections(), SiStripFolderOrganizer::getSubDetFolder(), MonitorElementData::INT, LogDebug, SiStripFolderOrganizer::setSiStripFolderName(), AlCaHLTBitMon_QueryRunRegistry::string, and stripTopLevelDir_.
Referenced by paintTkMapFromAlarm(), and printTopModules().
|
private |
Definition at line 235 of file SiStripTrackerMapCreator.cc.
References comment, detFlag_, RemoveAddSevLevel::flag, getDetectorFlagAndComment(), SiStripUtility::getDetectorStatusColor(), TrackerTopology::layer(), AlCaHLTBitMon_QueryRunRegistry::string, trackerMap_, and parallelization::uint.
Referenced by setTkMapFromAlarm().
|
private |
Definition at line 325 of file SiStripTrackerMapCreator.cc.
References funct::abs(), cachedDetId_, cachedLayer_, cachedXYbin_, dqm::impl::MonitorElement::getBinContent(), TkDetMap::getDetsForLayer(), TkDetMap::getLayerNum(), dqm::impl::MonitorElement::getName(), dqm::legacy::MonitorElement::getTProfile2D(), TkDetMap::getXY(), TkLayerMap::XYbin::ix, TkLayerMap::XYbin::iy, dqm::impl::MonitorElement::kind(), Skims_PA_cff::name, nDet_, ResidualsRMS_, mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, tkDetMap_, tkMapMax_, MonitorElementData::TPROFILE2D, and trackerMap_.
Referenced by setTkMapFromHistogram().
|
private |
Definition at line 507 of file SiStripTrackerMapCreator.cc.
References constexpr, edm::EventSetup::get(), edm::ESHandle< T >::product(), sRunNumber, SiStripDetId::subDetector(), SiStripDetId::TEC, TrackerTopology::tecSide(), SiStripDetId::TIB, SiStripDetId::TID, TrackerTopology::tidSide(), and SiStripDetId::TOB.
Referenced by setTkMapFromAlarm().
|
private |
Definition at line 595 of file SiStripTrackerMapCreator.cc.
References comment, RemoveAddSevLevel::flag, edm::EventSetup::get(), getDetectorFlagAndComment(), numTopModules_, edm::ESHandle< T >::product(), AlCaHLTBitMon_QueryRunRegistry::string, SiStripDetId::subDetector(), subdetector, SiStripDetId::TEC, TrackerTopology::tecSide(), SiStripDetId::TIB, SiStripDetId::TID, TrackerTopology::tidSide(), SiStripDetId::TOB, and topModLabel_.
Referenced by setTkMapFromHistogram().
bool SiStripTrackerMapCreator::readConfiguration | ( | ) |
|
private |
Definition at line 193 of file SiStripTrackerMapCreator.cc.
References detCabling_, eSetup_, edm::EventSetup::get(), SiStripDetCabling::getDetCabling(), SiStripQuality::IsModuleBad(), nDet_, paintTkMapFromAlarm(), printBadModuleList(), edm::ESHandle< T >::product(), ssqLabel_, tkMapMax_, tkMapMin_, trackerMap_, and useSSQuality_.
Referenced by create(), and createForOffline().
|
private |
Definition at line 266 of file SiStripTrackerMapCreator.cc.
References dqm::dqmstoreimpl::DQMStore::cd(), dqm::dqmstoreimpl::DQMStore::dirExists(), RefreshWebPage::dname, dqm::dqmstoreimpl::DQMStore::getContents(), dqm::dqmstoreimpl::DQMStore::getSubdirs(), SiStripUtility::goToDir(), Skims_PA_cff::name, nDet_, paintTkMapFromHistogram(), printTopModules(), dqm::dqmstoreimpl::DQMStore::pwd(), sd, AlCaHLTBitMon_QueryRunRegistry::string, tkMapMax_, tkMapMin_, and topModules_.
Referenced by create(), and createForOffline().
|
private |
Definition at line 643 of file SiStripTrackerMapCreator.cc.
References meanToMaxFactor_, nDet_, tkMapMax_, tkMapMin_, and trackerMap_.
Referenced by create().
|
private |
Definition at line 665 of file SiStripTrackerMapCreator.cc.
References meanToMaxFactor_, nDet_, tkMapMax_, and tkMapMin_.
Referenced by createForOffline().
|
private |
Definition at line 81 of file SiStripTrackerMapCreator.h.
Referenced by paintTkMapFromHistogram().
|
private |
Definition at line 82 of file SiStripTrackerMapCreator.h.
Referenced by paintTkMapFromHistogram().
|
private |
Definition at line 84 of file SiStripTrackerMapCreator.h.
Referenced by paintTkMapFromHistogram().
|
private |
Definition at line 80 of file SiStripTrackerMapCreator.h.
Referenced by create(), createForOffline(), getDetectorFlagAndComment(), setTkMapFromAlarm(), and SiStripTrackerMapCreator().
|
private |
Definition at line 83 of file SiStripTrackerMapCreator.h.
Referenced by paintTkMapFromAlarm().
|
private |
Definition at line 79 of file SiStripTrackerMapCreator.h.
Referenced by createInfoFile(), setTkMapFromAlarm(), and SiStripTrackerMapCreator().
|
private |
Definition at line 73 of file SiStripTrackerMapCreator.h.
Referenced by create(), createForOffline(), setTkMapRange(), and setTkMapRangeOffline().
|
private |
Definition at line 77 of file SiStripTrackerMapCreator.h.
Referenced by create(), paintTkMapFromHistogram(), setTkMapFromAlarm(), setTkMapFromHistogram(), setTkMapRange(), and setTkMapRangeOffline().
|
private |
Definition at line 86 of file SiStripTrackerMapCreator.h.
Referenced by createForOffline(), and printTopModules().
|
private |
Definition at line 75 of file SiStripTrackerMapCreator.h.
Referenced by createForOffline(), and paintTkMapFromHistogram().
|
private |
Definition at line 67 of file SiStripTrackerMapCreator.h.
Referenced by createForOffline(), and printBadModuleList().
|
private |
Definition at line 76 of file SiStripTrackerMapCreator.h.
Referenced by create(), createForOffline(), and setTkMapFromAlarm().
|
private |
Definition at line 69 of file SiStripTrackerMapCreator.h.
Referenced by create(), createForOffline(), and getDetectorFlagAndComment().
|
private |
Definition at line 78 of file SiStripTrackerMapCreator.h.
Referenced by createInfoFile(), paintTkMapFromHistogram(), and SiStripTrackerMapCreator().
|
private |
Definition at line 71 of file SiStripTrackerMapCreator.h.
Referenced by create(), createForOffline(), paintTkMapFromHistogram(), setTkMapFromAlarm(), setTkMapFromHistogram(), setTkMapRange(), and setTkMapRangeOffline().
|
private |
Definition at line 72 of file SiStripTrackerMapCreator.h.
Referenced by create(), createForOffline(), setTkMapFromAlarm(), setTkMapFromHistogram(), setTkMapRange(), and setTkMapRangeOffline().
|
private |
Definition at line 68 of file SiStripTrackerMapCreator.h.
|
private |
Definition at line 87 of file SiStripTrackerMapCreator.h.
Referenced by createForOffline(), and printTopModules().
|
private |
Definition at line 85 of file SiStripTrackerMapCreator.h.
Referenced by createForOffline(), and setTkMapFromHistogram().
|
private |
Definition at line 66 of file SiStripTrackerMapCreator.h.
Referenced by create(), createForOffline(), paintTkMapFromAlarm(), paintTkMapFromHistogram(), setTkMapFromAlarm(), and setTkMapRange().
|
private |
Definition at line 74 of file SiStripTrackerMapCreator.h.
Referenced by create(), createForOffline(), and setTkMapFromAlarm().