|
|
#include <DQM/SiStripMonitorHardware/plugins/BuildTrackerMap.cc>
|
| BuildTrackerMapPlugin (const edm::ParameterSet &) |
|
| ~BuildTrackerMapPlugin () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
| ~EDAnalyzer () 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 &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESProxyIndex > 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 & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, 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::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &) |
|
static bool | wantsGlobalLuminosityBlocks () |
|
static bool | wantsGlobalRuns () |
|
static bool | wantsInputProcessBlocks () |
|
static bool | wantsProcessBlocks () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () noexcept |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) noexcept |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Description: DQM source application to monitor common mode for SiStrip data
Definition at line 54 of file BuildTrackerMap.cc.
◆ DQMStore
◆ MonitorElement
◆ BuildTrackerMapPlugin()
◆ ~BuildTrackerMapPlugin()
BuildTrackerMapPlugin::~BuildTrackerMapPlugin |
( |
| ) |
|
|
inlineoverride |
◆ analyze()
Implements edm::EDAnalyzer.
Definition at line 292 of file BuildTrackerMap.cc.
312 std::cout <<
"End of analyze method: tkmap_ size = " <<
tkmap_.size() << std::endl;
References gather_cfg::cout, doDiff_, fedCablingToken_, fileName_, fileNameDiff_, amptDefault_cfi::firstEvent, edm::EventSetup::getData(), mps_fire::i, isValidMap_, isValidMapDiff_, mechanicalView_, pset_, read(), tkDetMapToken_, tkHistoMapNameVec_, tkHistoMapVec_, tkHistoMapVecDiff_, tkmap_, and tTopoToken_.
◆ beginJob()
void BuildTrackerMapPlugin::beginJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
◆ endJob()
void BuildTrackerMapPlugin::endJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 320 of file BuildTrackerMap.cc.
335 std::cout <<
"tkmap_ is NULL for element " <<
i <<
"... continuing ..." << std::endl;
345 std::cout <<
"Warning, tkHistoMap is invalid for element " <<
i <<
"... continuing ..." << std::endl;
References cms::cuda::assert(), gather_cfg::cout, mps_fire::i, isValidMap_, maxVal_, minVal_, TrackerMap::save(), TrackerMap::save_as_fedtrackermap(), TrackerMap::setPalette(), TrackerMap::showPalette(), AlCaHLTBitMon_QueryRunRegistry::string, subtractMap(), tkHistoMapNameVec_, tkHistoMapVec_, tkHistoMapVecDiff_, and tkmap_.
◆ read()
void BuildTrackerMapPlugin::read |
( |
bool |
aMechView, |
|
|
std::string |
aFile, |
|
|
const TkDetMap * |
tkDetMap, |
|
|
std::vector< std::unique_ptr< TkHistoMap >> & |
aTkMapVec, |
|
|
std::vector< bool > & |
aValidVec |
|
) |
| |
|
private |
Definition at line 141 of file BuildTrackerMap.cc.
147 lDqmStore->
open(aFile);
150 aTkMapVec.reserve(nHists);
151 aValidVec.reserve(nHists);
156 dirName += aFile.substr(aFile.find_last_of(
'_') + 5, 6);
157 dirName +=
"/SiStrip/Run summary";
163 unsigned int nFailTot = 0;
164 unsigned int nTotTot = 0;
165 for (
unsigned int i(0);
i < nHists;
i++) {
166 std::unique_ptr<TkHistoMap> tkHistoMap{
new TkHistoMap(tkDetMap)};
170 std::vector<MonitorElement*>& lMaps = tkHistoMap->getAllMaps();
172 std::cout <<
" -- map " <<
i <<
", nHistos = " << lMaps.size() << std::endl;
173 unsigned int nFail = 0;
174 unsigned int nTot = 0;
176 for (
unsigned int im(0); im < lMaps.size(); im++) {
178 std::cout <<
" -- Failed to get element " << im <<
" for map " <<
i << std::endl;
187 aValidVec[
i] =
false;
188 aTkMapVec.emplace_back(
std::move(tkHistoMap));
191 if (nFailTot < nTotTot)
192 std::cout <<
" - " << nTotTot - nFailTot <<
"/" << nTotTot <<
" histomaps read with success for file ." << aFile
195 std::cout <<
" - Failed to read any map for file " << aFile <<
". Exiting line ... " << __LINE__ << std::endl;
References gather_cfg::cout, TrackerOfflineValidation_Dqm_cff::dirName, beamvalidation::exit(), folderName_, mps_fire::i, TkHistoMap::loadTkHistoMap(), eostools::move(), dqm::implementation::DQMStore::open(), AlCaHLTBitMon_QueryRunRegistry::string, and tkHistoMapNameVec_.
Referenced by analyze(), and edmIntegrityCheck.PublishToFileSystem::get().
◆ subtractMap()
◆ doDiff_
bool BuildTrackerMapPlugin::doDiff_ |
|
private |
◆ fedCablingToken_
◆ fileName_
std::string BuildTrackerMapPlugin::fileName_ |
|
private |
◆ fileNameDiff_
std::string BuildTrackerMapPlugin::fileNameDiff_ |
|
private |
◆ folderName_
std::string BuildTrackerMapPlugin::folderName_ |
|
private |
◆ isValidMap_
std::vector<bool> BuildTrackerMapPlugin::isValidMap_ |
|
private |
◆ isValidMapDiff_
std::vector<bool> BuildTrackerMapPlugin::isValidMapDiff_ |
|
private |
◆ maxVal_
std::vector<double> BuildTrackerMapPlugin::maxVal_ |
|
private |
◆ mechanicalView_
bool BuildTrackerMapPlugin::mechanicalView_ |
|
private |
◆ minVal_
std::vector<double> BuildTrackerMapPlugin::minVal_ |
|
private |
◆ printDebug_
unsigned int BuildTrackerMapPlugin::printDebug_ |
|
private |
◆ pset_
◆ tkDetMapToken_
◆ tkHistoMapNameVec_
std::vector<std::string> BuildTrackerMapPlugin::tkHistoMapNameVec_ |
|
private |
◆ tkHistoMapVec_
std::vector<std::unique_ptr<TkHistoMap> > BuildTrackerMapPlugin::tkHistoMapVec_ |
|
private |
◆ tkHistoMapVecDiff_
std::vector<std::unique_ptr<TkHistoMap> > BuildTrackerMapPlugin::tkHistoMapVecDiff_ |
|
private |
◆ tkmap_
std::vector<TrackerMap*> BuildTrackerMapPlugin::tkmap_ |
|
private |
◆ tTopoToken_
const std::vector< MonitorElement * > & getAllMaps() const
void setPalette(int numpalette)
void save_as_fedtrackermap(bool print_total=true, float minval=0., float maxval=0., std::string s="fed_svgmap.svg", int width=100+(90+100) *31+300, int height=150+(2940+150) *1+300)
std::vector< double > maxVal_
T getUntrackedParameter(std::string const &, T const &) const
void subtractMap(TkHistoMap *aResult, const TkHistoMap *aSubtr)
std::vector< std::unique_ptr< TkHistoMap > > tkHistoMapVecDiff_
edm::ESGetToken< SiStripFedCabling, SiStripFedCablingRcd > fedCablingToken_
std::vector< bool > isValidMapDiff_
void loadTkHistoMap(const std::string &path, const std::string &MapName, bool mechanicalView=false)
std::vector< TrackerMap * > tkmap_
std::string fileNameDiff_
std::vector< double > minVal_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
std::vector< std::string > tkHistoMapNameVec_
void showPalette(bool printflag1)
std::vector< std::unique_ptr< TkHistoMap > > tkHistoMapVec_
bool getData(T &iHolder) const
void save(bool print_total=true, float minval=0., float maxval=0., std::string s="svgmap.svg", int width=1500, int height=800)
T getParameter(std::string const &) const
DQM_DEPRECATED bool open(std::string const &filename, bool overwrite=false, std::string const &path="", std::string const &prepend="", OpenRunDirs stripdirs=KeepRunDirs, bool fileMustExist=true)
void read(bool aMechView, std::string aFile, const TkDetMap *tkDetMap, std::vector< std::unique_ptr< TkHistoMap >> &aTkMapVec, std::vector< bool > &aValidVec)
std::vector< bool > isValidMap_
edm::ESGetToken< TkDetMap, TrackerTopologyRcd > tkDetMapToken_