#include <JetMETCorrections/FFTJetModules/plugins/FFTJetCorrectionESProducer.h>
Public Types | |
typedef FFTJetCorrectorSequence < jet_type, FFTJetCorrectorTransientFromJet, FFTJetCorrectorResultFromTransient > | CorrectorSequence |
typedef FFTJetCorrectionsTypemap< CT > ::jet_type | jet_type |
typedef FFTJetCorrectorSequenceRcd< CT > | MyRecord |
typedef FFTJetCorrectorParametersRcd < CT > | ParentRecord |
typedef boost::shared_ptr < CorrectorSequence > | ReturnType |
Public Member Functions | |
FFTJetCorrectionESProducer (const edm::ParameterSet &) | |
ReturnType | produce (const MyRecord &) |
virtual | ~FFTJetCorrectionESProducer () |
Private Member Functions | |
void | doWhenChanged (const ParentRecord &) |
Private Attributes | |
bool | isArchiveCompressed |
ReturnType | product |
bool | remakeProduct |
std::vector< edm::ParameterSet > | sequence |
bool | verbose |
Description: produces the correction sequence
Implementation: [Notes on implementation]
Definition at line 107 of file FFTJetCorrectionESProducer.h.
typedef FFTJetCorrectorSequence< jet_type, FFTJetCorrectorTransientFromJet, FFTJetCorrectorResultFromTransient > FFTJetCorrectionESProducer< CT >::CorrectorSequence |
Definition at line 116 of file FFTJetCorrectionESProducer.h.
typedef FFTJetCorrectionsTypemap<CT>::jet_type FFTJetCorrectionESProducer< CT >::jet_type |
Definition at line 111 of file FFTJetCorrectionESProducer.h.
typedef FFTJetCorrectorSequenceRcd<CT> FFTJetCorrectionESProducer< CT >::MyRecord |
Definition at line 118 of file FFTJetCorrectionESProducer.h.
typedef FFTJetCorrectorParametersRcd<CT> FFTJetCorrectionESProducer< CT >::ParentRecord |
Definition at line 119 of file FFTJetCorrectionESProducer.h.
typedef boost::shared_ptr<CorrectorSequence> FFTJetCorrectionESProducer< CT >::ReturnType |
Definition at line 117 of file FFTJetCorrectionESProducer.h.
FFTJetCorrectionESProducer< CT >::FFTJetCorrectionESProducer | ( | const edm::ParameterSet & | psIn | ) |
Definition at line 144 of file FFTJetCorrectionESProducer.h.
References edm::eventsetup::dependsOn(), FFTJetCorrectionESProducer< CT >::doWhenChanged(), and edm::ESProducer::setWhatProduced().
: sequence(psIn.getParameter<std::vector<edm::ParameterSet> >("sequence")), isArchiveCompressed(psIn.getParameter<bool>("isArchiveCompressed")), verbose(psIn.getUntrackedParameter<bool>("verbose", false)), remakeProduct(true) { // The following line is needed to tell the framework what // data is being produced setWhatProduced(this, dependsOn(&FFTJetCorrectionESProducer::doWhenChanged)); }
virtual FFTJetCorrectionESProducer< CT >::~FFTJetCorrectionESProducer | ( | ) | [inline, virtual] |
Definition at line 122 of file FFTJetCorrectionESProducer.h.
{}
void FFTJetCorrectionESProducer< CT >::doWhenChanged | ( | const ParentRecord & | ) | [inline, private] |
Definition at line 127 of file FFTJetCorrectionESProducer.h.
References FFTJetCorrectionESProducer< CT >::remakeProduct.
Referenced by FFTJetCorrectionESProducer< CT >::FFTJetCorrectionESProducer().
{remakeProduct = true;}
FFTJetCorrectionESProducer< CT >::ReturnType FFTJetCorrectionESProducer< CT >::produce | ( | const MyRecord & | iRecord | ) |
Definition at line 159 of file FFTJetCorrectionESProducer.h.
References edm::eventsetup::EventSetupRecord::get(), lumiContext::sequence, and validate_alignment_devdb10_cfg::verbose.
{ if (remakeProduct) { // According to: // https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideHowToGetDependentRecord // // If ARecord is dependent on BRecord then you can // call the method getRecord of ARecord: // // const BRecord& b = aRecord.getRecord<BRecord>(); // const ParentRecord& rec = iRecord.template getRecord<ParentRecord>(); edm::ESTransientHandle<FFTJetCorrectorParameters> parHandle; rec.get(parHandle); product = buildCorrectorSequence<CorrectorSequence>( *parHandle, sequence, isArchiveCompressed, verbose); remakeProduct = false; } return product; }
bool FFTJetCorrectionESProducer< CT >::isArchiveCompressed [private] |
Definition at line 132 of file FFTJetCorrectionESProducer.h.
ReturnType FFTJetCorrectionESProducer< CT >::product [private] |
Definition at line 137 of file FFTJetCorrectionESProducer.h.
bool FFTJetCorrectionESProducer< CT >::remakeProduct [private] |
Definition at line 136 of file FFTJetCorrectionESProducer.h.
Referenced by FFTJetCorrectionESProducer< CT >::doWhenChanged().
std::vector<edm::ParameterSet> FFTJetCorrectionESProducer< CT >::sequence [private] |
Definition at line 131 of file FFTJetCorrectionESProducer.h.
bool FFTJetCorrectionESProducer< CT >::verbose [private] |
Definition at line 133 of file FFTJetCorrectionESProducer.h.