|
TProfile * | dividehistos (DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &numName, const std::string &denomName, const std::string &outName, const std::string &label, const std::string &titel) |
|
void | dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override |
|
| JetMETDQMPostProcessor (const edm::ParameterSet &pset) |
|
| ~JetMETDQMPostProcessor () override |
|
void | accumulate (edm::Event const &ev, edm::EventSetup const &es) final |
|
void | beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final |
|
void | beginRun (edm::Run const &, edm::EventSetup const &) override |
|
| DQMEDHarvester () |
|
virtual void | dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) |
|
void | endJob () final |
|
void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final |
|
void | endLuminosityBlockProduce (edm::LuminosityBlock &, edm::EventSetup const &) final |
|
void | endRun (edm::Run const &, edm::EventSetup const &) override |
|
void | endRunProduce (edm::Run &run, edm::EventSetup const &setup) override |
|
| ~DQMEDHarvester () override=default |
|
| EDProducer ()=default |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | hasAbilityToProduceInLumis () const final |
|
bool | hasAbilityToProduceInRuns () const final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~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 |
|
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) |
|
| ~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 |
|
ESProxyIndex const * | esGetTokenIndices (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::vector< ModuleDescription const * > &modules, 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 |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDProducerBase | ModuleType |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
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) |
|
edm::EDPutTokenT< DQMToken > | lumiToken_ |
|
edm::EDPutTokenT< DQMToken > | runToken_ |
|
Definition at line 12 of file JetMETDQMPostProcessor.h.
TProfile * JetMETDQMPostProcessor::dividehistos |
( |
DQMStore::IBooker & |
ibooker, |
|
|
DQMStore::IGetter & |
igetter, |
|
|
const std::string & |
numName, |
|
|
const std::string & |
denomName, |
|
|
const std::string & |
outName, |
|
|
const std::string & |
label, |
|
|
const std::string & |
titel |
|
) |
| |
Definition at line 188 of file JetMETDQMPostProcessor.cc.
References DQMStore::IBooker::bookProfile(), MillePedeFileConverter_cfg::e, Efficiency(), getHistogram(), MonitorElement::getTProfile(), mps_fire::i, createfilelist::int, pileupDistInMC::num, MillePedeFileConverter_cfg::out, DQMStore::IBooker::pwd(), MonitorElement::setEfficiencyFlag(), and mathSSE::sqrt().
Referenced by dqmEndJob(), and ~JetMETDQMPostProcessor().
202 TH1F *denom =
getHistogram(ibooker, igetter, ibooker.
pwd() +
"/" + denomName);
206 <<
"numerator histogram " << ibooker.
pwd() +
"/" + numName <<
" does not exist";
207 if (denom ==
nullptr)
209 <<
"denominator histogram " << ibooker.
pwd() +
"/" + denomName <<
" does not exist";
216 outName, titel, num->GetXaxis()->GetNbins(), num->GetXaxis()->GetXmin(), num->GetXaxis()->GetXmax(), 0., 1.2);
219 out->GetXaxis()->SetTitle(
label.c_str());
220 out->SetYTitle(
"Efficiency");
221 out->SetOption(
"PE");
222 out->SetLineColor(2);
223 out->SetLineWidth(2);
224 out->SetMarkerStyle(20);
225 out->SetMarkerSize(0.8);
226 out->SetStats(kFALSE);
228 for (
int i = 1;
i <= num->GetNbinsX();
i++) {
230 Efficiency((
int)num->GetBinContent(
i), (
int)denom->GetBinContent(
i), 0.683,
e, low, high);
231 double err = e - low > high - e ? e - low : high -
e;
233 out->SetBinContent(
i, e);
234 out->SetBinEntries(
i, 1);
235 out->SetBinError(
i,
sqrt(e * e + err * err));
TProfile * getTProfile() const
void Efficiency(int passing, int total, double level, double &mode, double &lowerBound, double &upperBound)
MonitorElement * bookProfile(Args &&...args)
TH1F * getHistogram(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &histoPath)
std::string const & pwd()
Implements DQMEDHarvester.
Definition at line 22 of file JetMETDQMPostProcessor.cc.
References DQMStore::IBooker::cd(), dir, DQMStore::IGetter::dirExists(), dividehistos(), DQMStore::IGetter::getSubdirs(), DQMStore::IBooker::goUp(), patternJetTrg_, patternMetTrg_, and subDir_.
Referenced by ~JetMETDQMPostProcessor().
27 bool isJetDir =
false;
28 bool isMetDir =
false;
41 std::vector<std::string> subdirectories = igetter.
getSubdirs();
42 for (std::vector<std::string>::iterator
dir = subdirectories.begin();
dir != subdirectories.end();
dir++) {
48 if (TString(*dir).Contains(patternJet))
50 if (TString(*dir).Contains(patternMet))
64 "Gen Missing ET Turn-On RelVal");
71 "Gen Missing ET Turn-On Data");
80 "HLT Missing ET Turn-On RelVal");
87 "HLT Missing ET Turn-On Data");
101 "Gen Jet Pt Turn-On RelVal");
108 "Gen Jet Pt Turn-On Data");
115 "Gen Jet Eta Turn-On RelVal");
119 "_meGenJetEtaTrgLow",
122 "Gen Jet Eta Turn-On Data");
129 "Gen Jet Phi Turn-On RelVal");
133 "_meGenJetPhiTrgLow",
136 "Gen Jet Phi Turn-On Data");
145 "HLT Jet Pt Turn-On RelVal");
152 "HLT Jet Pt Turn-On Data");
159 "HLT Jet Eta Turn-On RelVal");
163 "_meHLTJetEtaTrgLow",
166 "HLT Jet Eta Turn-On Data");
173 "HLT Jet Phi Turn-On RelVal");
177 "_meHLTJetPhiTrgLow",
180 "HLT Jet Phi Turn-On Data");
std::string patternJetTrg_
std::string patternMetTrg_
TProfile * dividehistos(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, const std::string &numName, const std::string &denomName, const std::string &outName, const std::string &label, const std::string &titel)
bool dirExists(std::string const &path)
std::vector< std::string > getSubdirs()