|
| JetCorrectorDemo (const edm::ParameterSet &) |
|
| ~JetCorrectorDemo () override |
|
| EDAnalyzer ()=default |
|
| EDAnalyzer (const EDAnalyzer &)=delete |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
const EDAnalyzer & | operator= (const EDAnalyzer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const noexcept final |
|
bool | wantsGlobalRuns () const noexcept final |
|
bool | wantsInputProcessBlocks () const noexcept final |
|
bool | wantsProcessBlocks () const noexcept final |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const noexcept |
|
bool | wantsStreamRuns () const noexcept |
|
| ~EDAnalyzerBase () 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) |
|
|
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) |
|
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 28 of file JetCorrectorDemo.cc.
Implements edm::one::EDAnalyzerBase.
Definition at line 82 of file JetCorrectorDemo.cc.
References ZGammaplusJetsMonitor_cff::corrector, gather_cfg::cout, HLT_2024v14_cff::dEta, MillePedeFileConverter_cfg::e, PVValHelper::eta, edm::FileInPath::fullPath(), edm::EventSetup::getData(), mps_fire::i, hcalRecHitTable_cff::ieta, iEvent, jetMETDQMOfflineSource_cff::jec, mDebug, mEtaMax, mEtaMin, mJECvsEta, mJECvsPt, mJetCorrector, mNGraphPoints, mNHistoPoints, mPayloadToken, mPtMax, mPtMin, mRandom, mUncertaintyFile, mUncertaintyTag, mUseCondDB, mVEta, mVPt, funct::pow(), jetsAK4_CHS_cff::rawPt, createJobs::tmp, veta, vex_eta, vex_pt, vjec_eta, vjec_pt, vjecUnc_eta, vjecUnc_pt, vpt, vptcor, vUnc_eta, and vUnc_pt.
85 std::unique_ptr<JetCorrectionUncertainty> jecUnc;
90 jecUnc = std::make_unique<JetCorrectionUncertainty>(JetCorPar);
91 std::cout <<
"Configured Uncertainty from CondDB" << std::endl;
94 jecUnc = std::make_unique<JetCorrectionUncertainty>(fip.fullPath());
123 jecUnc->setJetEta(
eta);
125 unc = jecUnc->getUncertainty(
true);
135 for (
unsigned ipt = 0; ipt <
mVPt.size(); ipt++) {
144 while (
e > 0.0001 && nLoop < 10) {
149 e = fabs(
tmp - corPt) / corPt;
161 jecUnc->setJetEta(
eta);
162 jecUnc->setJetPt(corPt);
163 unc = jecUnc->getUncertainty(
true);
std::vector< double > mVEta
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
double vjec_pt[100][1000]
std::string mUncertaintyTag
double vUnc_eta[100][1000]
double vex_eta[100][1000]
std::string mUncertaintyFile
math::XYZTLorentzVector LorentzVector
double vjecUnc_eta[100][1000]
double vjec_eta[100][1000]
std::vector< double > mVPt
double vjecUnc_pt[100][1000]
double vUnc_pt[100][1000]
edm::ESGetToken< JetCorrectorParametersCollection, JetCorrectionsRecord > mPayloadToken
edm::EDGetTokenT< reco::JetCorrector > mJetCorrector
Power< A, B >::type pow(const A &a, const B &b)
void JetCorrectorDemo::endJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 187 of file JetCorrectorDemo.cc.
References fs, hcalRecHitTable_cff::ieta, TFileService::make(), mNGraphPoints, mUncCorPt, mUncEta, mVEta, mVGraphCorPt, mVGraphEta, mVGraphPt, mVPt, Skims_PA_cff::name, veta, vex_eta, vex_pt, vjec_eta, vjec_pt, vjecUnc_eta, vjecUnc_pt, vpt, vptcor, vUnc_eta, and vUnc_pt.
189 for (
unsigned ipt = 0; ipt <
mVPt.size(); ipt++) {
191 sprintf(
name,
"JEC_vs_Eta_CorPt%1.1f",
mVPt[ipt]);
194 sprintf(
name,
"UNC_vs_Eta_CorPt%1.1f",
mVPt[ipt]);
std::vector< double > mVEta
edm::Service< TFileService > fs
double vjec_pt[100][1000]
double vUnc_eta[100][1000]
TGraphErrors * mVGraphPt[100]
TGraphErrors * mVGraphCorPt[100]
double vex_eta[100][1000]
double vjecUnc_eta[100][1000]
double vjec_eta[100][1000]
std::vector< double > mVPt
T * make(const Args &...args) const
make new ROOT object
double vjecUnc_pt[100][1000]
double vUnc_pt[100][1000]
TGraphErrors * mVGraphEta[100]