|
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 |
|
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) |
|
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 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 97 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().
107 TH1F* denom =
getHistogram(ibooker, igetter, ibooker.
pwd()+
"/"+denomName);
110 edm::LogWarning(
"JetMETDQMPostProcessor") <<
"numerator histogram " << ibooker.
pwd()+
"/"+numName <<
" does not exist";
111 if (denom ==
nullptr)
112 edm::LogWarning(
"JetMETDQMPostProcessor") <<
"denominator histogram " << ibooker.
pwd()+
"/"+denomName <<
" does not exist";
115 if(!num || !denom)
return nullptr;
120 out->GetXaxis()->SetTitle(
label.c_str());
121 out->SetYTitle(
"Efficiency");
122 out->SetOption(
"PE");
123 out->SetLineColor(2);
124 out->SetLineWidth(2);
125 out->SetMarkerStyle(20);
126 out->SetMarkerSize(0.8);
127 out->SetStats(kFALSE);
129 for(
int i=1;
i<=num->GetNbinsX();
i++){
131 Efficiency( (
int)num->GetBinContent(
i), (
int)denom->GetBinContent(
i), 0.683,
e, low, high );
132 double err = e-low>high-e ? e-low : high-
e;
134 out->SetBinContent(
i, e );
135 out->SetBinEntries(
i, 1 );
136 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)
const std::string & pwd()
Implements DQMEDHarvester.
Definition at line 25 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().
31 bool isJetDir =
false;
32 bool isMetDir =
false;
44 std::vector<std::string> subdirectories = igetter.
getSubdirs();
45 for(std::vector<std::string>::iterator
dir = subdirectories.begin() ;
dir!= subdirectories.end();
dir++ ){
52 if (TString(*dir).Contains(patternJet)) isJetDir =
true;
53 if (TString(*dir).Contains(patternMet)) isMetDir =
true;
60 dividehistos(ibooker, igetter,
"_meGenMETTrgMC",
"_meGenMET",
"_meTurnOngMET",
"Gen Missing ET",
"Gen Missing ET Turn-On RelVal");
61 dividehistos(ibooker, igetter,
"_meGenMETTrg",
"_meGenMETTrgLow",
"_meTurnOngMETLow",
"Gen Missing ETLow",
"Gen Missing ET Turn-On Data");
64 dividehistos(ibooker, igetter,
"_meHLTMETTrgMC",
"_meHLTMET",
"_meTurnOnhMET",
"HLT Missing ET",
"HLT Missing ET Turn-On RelVal");
65 dividehistos(ibooker, igetter,
"_meHLTMETTrg",
"_meHLTMETTrgLow",
"_meTurnOnhMETLow",
"HLT Missing ETLow",
"HLT Missing ET Turn-On Data");
74 dividehistos(ibooker, igetter,
"_meGenJetPtTrgMC",
"_meGenJetPt",
"_meTurnOngJetPt",
"Gen Jet Pt",
"Gen Jet Pt Turn-On RelVal");
75 dividehistos(ibooker, igetter,
"_meGenJetPtTrg",
"_meGenJetPtTrgLow",
"_meTurnOngJetPt",
"Gen Jet PtLow",
"Gen Jet Pt Turn-On Data");
76 dividehistos(ibooker, igetter,
"_meGenJetEtaTrgMC",
"_meGenJetEta",
"_meTurnOngJetEta",
"Gen Jet Eta",
"Gen Jet Eta Turn-On RelVal");
77 dividehistos(ibooker, igetter,
"_meGenJetEtaTrg",
"_meGenJetEtaTrgLow",
"_meTurnOngJetEta",
"Gen Jet EtaLow",
"Gen Jet Eta Turn-On Data");
78 dividehistos(ibooker, igetter,
"_meGenJetPhiTrgMC",
"_meGenJetPhi",
"_meTurnOngJetPhi",
"Gen Jet Phi",
"Gen Jet Phi Turn-On RelVal");
79 dividehistos(ibooker, igetter,
"_meGenJetPhiTrg",
"_meGenJetPhiTrgLow",
"_meTurnOngJetPhi",
"Gen Jet PhiLow",
"Gen Jet Phi Turn-On Data");
82 dividehistos(ibooker, igetter,
"_meHLTJetPtTrgMC",
"_meHLTJetPt",
"_meTurnOnhJetPt",
"HLT Jet Pt",
"HLT Jet Pt Turn-On RelVal");
83 dividehistos(ibooker, igetter,
"_meHLTJetPtTrg",
"_meHLTJetPtTrgLow",
"_meTurnOnhJetPt",
"HLT Jet PtLow",
"HLT Jet Pt Turn-On Data");
84 dividehistos(ibooker, igetter,
"_meHLTJetEtaTrgMC",
"_meHLTJetEta",
"_meTurnOnhJetEta",
"HLT Jet Eta",
"HLT Jet Eta Turn-On RelVal");
85 dividehistos(ibooker, igetter,
"_meHLTJetEtaTrg",
"_meHLTJetEtaTrgLow",
"_meTurnOnhJetEta",
"HLT Jet EtaLow",
"HLT Jet Eta Turn-On Data");
86 dividehistos(ibooker, igetter,
"_meHLTJetPhiTrgMC",
"_meHLTJetPhi",
"_meTurnOnhJetPhi",
"HLT Jet Phi",
"HLT Jet Phi Turn-On RelVal");
87 dividehistos(ibooker, igetter,
"_meHLTJetPhiTrg",
"_meHLTJetPhiTrgLow",
"_meTurnOnhJetPhi",
"HLT Jet PhiLow",
"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(const std::string &path)
std::vector< std::string > getSubdirs()