#include <SiStripTrackerMapCreator.h>
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, std::vector< uint32_t > const &detidList) |
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_ {nullptr} |
bool | useSSQuality_ |
Definition at line 24 of file SiStripTrackerMapCreator.h.
SiStripTrackerMapCreator::SiStripTrackerMapCreator | ( | edm::EventSetup const & | eSetup | ) |
Definition at line 22 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 36 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 73 of file SiStripTrackerMapCreator.cc.
References DQMStore::cd(), gather_cfg::cout, detCabling_, SiStripDetCabling::fedCabling(), edm::EventSetup::get(), SiStripUtility::goToDir(), meanToMaxFactor_, numTopModules_, edm::ESHandle< T >::product(), DQMStore::pwd(), ResidualsRMS_, sistrip::runNumber_, setTkMapFromAlarm(), setTkMapFromHistogram(), setTkMapRangeOffline(), sRunNumber, 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, | ||
std::vector< uint32_t > const & | detidList | ||
) |
Definition at line 450 of file SiStripTrackerMapCreator.cc.
References DQMStore::cd(), compare_using_db::dirname, getDetectorFlag(), SiStripUtility::goToDir(), triggerObjects_cff::id, DQMStore::pwd(), AlCaHLTBitMon_QueryRunRegistry::string, and tkDetMap_.
|
inlineprivate |
Definition at line 64 of file SiStripTrackerMapCreator.h.
Referenced by createInfoFile().
|
private |
Definition at line 377 of file SiStripTrackerMapCreator.cc.
References DQMStore::cd(), constexpr, detCabling_, DQMStore::dirExists(), MonitorElement::DQM_KIND_INT, RemoveAddSevLevel::flag, DQMStore::get(), SiStripUtility::getBadModuleStatus(), SiStripDetCabling::getConnections(), SiStripFolderOrganizer::getSubDetFolder(), LogDebug, SiStripFolderOrganizer::setSiStripFolderName(), AlCaHLTBitMon_QueryRunRegistry::string, and stripTopLevelDir_.
Referenced by paintTkMapFromAlarm(), and printTopModules().
|
private |
Definition at line 242 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 333 of file SiStripTrackerMapCreator.cc.
References funct::abs(), cachedDetId_, cachedLayer_, cachedXYbin_, MonitorElement::DQM_KIND_TPROFILE2D, MonitorElement::getBinContent(), TkDetMap::getDetsForLayer(), TkDetMap::getLayerNum(), MonitorElement::getName(), MonitorElement::getTProfile2D(), TkDetMap::getXY(), TkLayerMap::XYbin::ix, TkLayerMap::XYbin::iy, MonitorElement::kind(), dataset::name, nDet_, ResidualsRMS_, mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, tkDetMap_, tkMapMax_, and trackerMap_.
Referenced by setTkMapFromHistogram().
|
private |
Definition at line 523 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 616 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 199 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 276 of file SiStripTrackerMapCreator.cc.
References DQMStore::cd(), DQMStore::dirExists(), RefreshWebPage::dname, DQMStore::getContents(), DQMStore::getSubdirs(), SiStripUtility::goToDir(), dataset::name, nDet_, paintTkMapFromHistogram(), printTopModules(), DQMStore::pwd(), sd, AlCaHLTBitMon_QueryRunRegistry::string, tkMapMax_, tkMapMin_, and topModules_.
Referenced by create(), and createForOffline().
|
private |
Definition at line 662 of file SiStripTrackerMapCreator.cc.
References meanToMaxFactor_, nDet_, tkMapMax_, tkMapMin_, and trackerMap_.
Referenced by create().
|
private |
Definition at line 686 of file SiStripTrackerMapCreator.cc.
References meanToMaxFactor_, nDet_, tkMapMax_, and tkMapMin_.
Referenced by createForOffline().
|
private |
Definition at line 88 of file SiStripTrackerMapCreator.h.
Referenced by paintTkMapFromHistogram().
|
private |
Definition at line 89 of file SiStripTrackerMapCreator.h.
Referenced by paintTkMapFromHistogram().
|
private |
Definition at line 91 of file SiStripTrackerMapCreator.h.
Referenced by paintTkMapFromHistogram().
|
private |
Definition at line 87 of file SiStripTrackerMapCreator.h.
Referenced by create(), createForOffline(), getDetectorFlagAndComment(), setTkMapFromAlarm(), and SiStripTrackerMapCreator().
|
private |
Definition at line 90 of file SiStripTrackerMapCreator.h.
Referenced by paintTkMapFromAlarm().
|
private |
Definition at line 86 of file SiStripTrackerMapCreator.h.
Referenced by setTkMapFromAlarm(), and SiStripTrackerMapCreator().
|
private |
Definition at line 80 of file SiStripTrackerMapCreator.h.
Referenced by create(), createForOffline(), setTkMapRange(), and setTkMapRangeOffline().
|
private |
Definition at line 84 of file SiStripTrackerMapCreator.h.
Referenced by create(), paintTkMapFromHistogram(), setTkMapFromAlarm(), setTkMapFromHistogram(), setTkMapRange(), and setTkMapRangeOffline().
|
private |
Definition at line 93 of file SiStripTrackerMapCreator.h.
Referenced by createForOffline(), and printTopModules().
|
private |
Definition at line 82 of file SiStripTrackerMapCreator.h.
Referenced by createForOffline(), and paintTkMapFromHistogram().
|
private |
Definition at line 74 of file SiStripTrackerMapCreator.h.
Referenced by createForOffline(), and printBadModuleList().
|
private |
Definition at line 83 of file SiStripTrackerMapCreator.h.
Referenced by create(), createForOffline(), and setTkMapFromAlarm().
|
private |
Definition at line 76 of file SiStripTrackerMapCreator.h.
Referenced by create(), createForOffline(), and getDetectorFlagAndComment().
|
private |
Definition at line 85 of file SiStripTrackerMapCreator.h.
Referenced by createInfoFile(), paintTkMapFromHistogram(), and SiStripTrackerMapCreator().
|
private |
Definition at line 78 of file SiStripTrackerMapCreator.h.
Referenced by create(), createForOffline(), paintTkMapFromHistogram(), setTkMapFromAlarm(), setTkMapFromHistogram(), setTkMapRange(), and setTkMapRangeOffline().
|
private |
Definition at line 79 of file SiStripTrackerMapCreator.h.
Referenced by create(), createForOffline(), setTkMapFromAlarm(), setTkMapFromHistogram(), setTkMapRange(), and setTkMapRangeOffline().
|
private |
Definition at line 75 of file SiStripTrackerMapCreator.h.
|
private |
Definition at line 94 of file SiStripTrackerMapCreator.h.
Referenced by createForOffline(), and printTopModules().
|
private |
Definition at line 92 of file SiStripTrackerMapCreator.h.
Referenced by createForOffline(), and setTkMapFromHistogram().
|
private |
Definition at line 73 of file SiStripTrackerMapCreator.h.
Referenced by create(), createForOffline(), paintTkMapFromAlarm(), paintTkMapFromHistogram(), setTkMapFromAlarm(), and setTkMapRange().
|
private |
Definition at line 81 of file SiStripTrackerMapCreator.h.
Referenced by create(), createForOffline(), and setTkMapFromAlarm().