|
| MuonRecoTest (const edm::ParameterSet &ps) |
| Constructor. More...
|
|
| ~MuonRecoTest () override |
| Destructor. More...
|
|
void | accumulate (edm::Event const &ev, edm::EventSetup const &es) final |
|
void | beginJob () override |
|
void | beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &) final |
|
void | beginRun (edm::Run const &run, edm::EventSetup const &) override |
|
virtual void | dqmAnalyze (DQMStore::IBooker &, DQMStore::IGetter &, edm::Event const &, edm::EventSetup const &) |
|
| DQMEDHarvester (edm::ParameterSet const &iConfig) |
|
| DQMEDHarvester () |
|
virtual void | dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) |
|
void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final |
|
void | endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &es) final |
|
void | endProcessBlockProduce (edm::ProcessBlock &) final |
|
void | endRun (edm::Run const &, edm::EventSetup const &) override |
|
void | endRunProduce (edm::Run &run, edm::EventSetup const &es) final |
|
| ~DQMEDHarvester () override=default |
|
| EDProducer ()=default |
|
| EDProducer (const EDProducer &)=delete |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | hasAbilityToProduceInBeginLumis () const final |
|
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
|
bool | hasAbilityToProduceInBeginRuns () const final |
|
bool | hasAbilityToProduceInEndLumis () const final |
|
bool | hasAbilityToProduceInEndProcessBlocks () const final |
|
bool | hasAbilityToProduceInEndRuns () const final |
|
const EDProducer & | operator= (const EDProducer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const noexcept final |
|
bool | wantsGlobalRuns () const noexcept final |
|
bool | wantsInputProcessBlocks () const noexcept final |
|
bool | wantsProcessBlocks () const noexcept final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const noexcept |
|
bool | wantsStreamRuns () const noexcept |
|
| ~EDProducerBase () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
std::vector< bool > const & | recordProvenanceList () const |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
TypeLabelList const & | typeLabelList () const |
| used by the fwk to register the list of products of this module More...
|
|
| ~ProducerBase () noexcept(false) 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) |
|
|
void | dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override |
|
void | dqmEndRun (DQMStore::IBooker &, DQMStore::IGetter &, edm::Run const &, edm::EventSetup const &) override |
| Endjob. More...
|
|
template<Transition Tr = Transition::Event> |
auto | produces (std::string instanceName) noexcept |
| declare what type of product will make and with which optional label More...
|
|
template<Transition B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<BranchType B> |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces () |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , BranchType B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<class ProductType > |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
|
template<typename ProductType , Transition B> |
BranchAliasSetterT< ProductType > | produces () |
|
template<Transition Tr = Transition::Event> |
auto | produces () noexcept |
|
ProducesCollector | producesCollector () |
|
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) |
|
Definition at line 32 of file MuonRecoTest.h.
BOOKING NEW HISTOGRAMS
Implements DQMEDHarvester.
Definition at line 105 of file MuonRecoTest.cc.
References dqm::implementation::IBooker::book1D(), dqm::implementation::IGetter::get(), MonitorElementData::QReport::getBadChannels(), MonitorElementData::QReport::getMessage(), MonitorElementData::QReport::getStatus(), dqm::legacy::MonitorElement::getTH2F(), LogTrace, metname, dqm::implementation::NavigatorBase::setCurrentFolder(), mathSSE::sqrt(), and x.
110 "muVStkSytemRotation_posMu_profile",
"pT_{TK} / pT_{GLB} vs pT_{GLB} profile for #mu^{+}", 50, 0, 200));
112 "muVStkSytemRotation_negMu_profile",
"pT_{TK} / pT_{GLB} vs pT_{GLB} profile for #mu^{-}", 50, 0, 200));
114 "muVStkSytemRotation_profile",
"pT_{TK} / pT_{GLB} vs pT_{GLB} profile for #mu^{+}-#mu^{-}", 50, 0, 200));
121 vector<dqm::me_util::Channel> badChannels = theEtaQReport->
getBadChannels();
122 for (vector<dqm::me_util::Channel>::iterator channel = badChannels.begin(); channel != badChannels.end();
124 LogTrace(
metname) <<
"[etaEfficiency test] bad ranges: " << (*channel).getBin()
125 <<
" Contents : " << (*channel).getContents() << endl;
133 vector<dqm::me_util::Channel> badChannels = thePhiQReport->
getBadChannels();
134 for (vector<dqm::me_util::Channel>::iterator channel = badChannels.begin(); channel != badChannels.end();
136 LogTrace(
metname) <<
"[phiEfficiency test] bad ranges: " << (*channel).getBin()
137 <<
" Contents : " << (*channel).getContents() << endl;
144 string pathPos =
"Muons/MuonRecoAnalyzer/muVStkSytemRotation_posMu";
146 string pathNeg =
"Muons/MuonRecoAnalyzer/muVStkSytemRotation_negMu";
148 if (muVStkSytemRotation_posMu_histo && muVStkSytemRotation_negMu_histo) {
149 TH2F* muVStkSytemRotation_posMu_root = muVStkSytemRotation_posMu_histo->
getTH2F();
150 TProfile* muVStkSytemRotation_posMu_profile = muVStkSytemRotation_posMu_root->ProfileX(
"", 1, 100);
151 TH2F* muVStkSytemRotation_negMu_root = muVStkSytemRotation_negMu_histo->
getTH2F();
152 TProfile* muVStkSytemRotation_negMu_profile = muVStkSytemRotation_negMu_root->ProfileX(
"", 1, 100);
154 for (
int x = 1;
x < 50;
x++) {
155 globalRotation[0]->Fill((
x * 4) - 1, muVStkSytemRotation_posMu_profile->GetBinContent(
x));
156 globalRotation[0]->setBinError(
x, muVStkSytemRotation_posMu_profile->GetBinError(
x));
157 globalRotation[1]->Fill((
x * 4) - 1, muVStkSytemRotation_negMu_profile->GetBinContent(
x));
158 globalRotation[1]->setBinError(
x, muVStkSytemRotation_negMu_profile->GetBinError(
x));
161 muVStkSytemRotation_posMu_profile->GetBinContent(
x) - muVStkSytemRotation_negMu_profile->GetBinContent(
x));
165 (muVStkSytemRotation_posMu_profile->GetBinError(
x) * muVStkSytemRotation_posMu_profile->GetBinError(
x)) +
166 (muVStkSytemRotation_negMu_profile->GetBinError(
x) * muVStkSytemRotation_negMu_profile->GetBinError(
x))));
virtual void setCurrentFolder(std::string const &fullpath)
std::string EfficiencyCriterionName
const std::vector< DQMChannel > & getBadChannels() const
virtual TH2F * getTH2F() const
const MonitorElementData::QReport * getQReport(const std::string &qtname) const
get QReport corresponding to <qtname> (null pointer if QReport does not exist)
std::vector< MonitorElement * > globalRotation
const std::string & getMessage() const
get message attached to test
MonitorElement * phiEfficiency
virtual MonitorElement * get(std::string const &fullpath) const
int getStatus() const
get test status
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * etaEfficiency
Endjob.
GETTING PREVIOUS HISTOS AND DO SOME OPERATIONS
Reimplemented from DQMEDHarvester.
Definition at line 48 of file MuonRecoTest.cc.
References dqm::implementation::IBooker::book1D(), L1TObjectsTimingClient_cff::efficiency, muonRecoAnalyzer_cfi::etaBin, ALCARECOTkAlBeamHalo_cff::etaMax, ALCARECOTkAlBeamHalo_cff::etaMin, dqm::implementation::IGetter::get(), dqm::legacy::MonitorElement::getTH1F(), mps_fire::i, LogTrace, metname, EnsembleCalibrationLA_cfg::path, BeamMonitor_cff::phiBin, AlignmentTrackSelector_cfi::phiMax, AlignmentTrackSelector_cfi::phiMin, and dqm::implementation::NavigatorBase::setCurrentFolder().
58 string path =
"Muons/MuonRecoAnalyzer/StaEta_ifCombinedAlso";
60 path =
"Muons/MuonRecoAnalyzer/StaEta";
63 if (staEtaIfComb_histo && staEta_histo) {
64 TH1F* staEtaIfComb_root = staEtaIfComb_histo->
getTH1F();
65 TH1F* staEta_root = staEta_histo->
getTH1F();
67 if (staEtaIfComb_root->GetXaxis()->GetNbins() !=
etaBin || staEtaIfComb_root->GetXaxis()->GetXmax() !=
etaMax ||
68 staEtaIfComb_root->GetXaxis()->GetXmin() !=
etaMin) {
69 LogTrace(
metname) <<
"[MuonRecoTest] wrong histo binning on eta histograms";
74 if (staEta_root->GetBinContent(
i) != 0) {
75 double efficiency = double(staEtaIfComb_root->GetBinContent(
i)) /
double(staEta_root->GetBinContent(
i));
81 path =
"Muons/MuonRecoAnalyzer/StaPhi_ifCombinedAlso";
83 path =
"Muons/MuonRecoAnalyzer/StaPhi";
86 if (staPhiIfComb_histo && staPhi_histo) {
87 TH1F* staPhiIfComb_root = staPhiIfComb_histo->
getTH1F();
88 TH1F* staPhi_root = staPhi_histo->
getTH1F();
90 if (staPhiIfComb_root->GetXaxis()->GetNbins() !=
phiBin || staPhiIfComb_root->GetXaxis()->GetXmax() !=
phiMax ||
91 staPhiIfComb_root->GetXaxis()->GetXmin() !=
phiMin) {
92 LogTrace(
metname) <<
"[MuonRecoTest] wrong histo binning on phi histograms";
97 if (staPhi_root->GetBinContent(
i) != 0) {
98 double efficiency = double(staPhiIfComb_root->GetBinContent(
i)) /
double(staPhi_root->GetBinContent(
i));
virtual void setCurrentFolder(std::string const &fullpath)
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * phiEfficiency
virtual TH1F * getTH1F() const
virtual MonitorElement * get(std::string const &fullpath) const
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * etaEfficiency