#include <ElectronLikelihoodESSource.h>
Public Types | |
typedef std::auto_ptr < ElectronLikelihood > | ReturnType |
define the return type | |
Public Member Functions | |
ElectronLikelihoodESSource (const edm::ParameterSet &) | |
constructor from parameter set | |
ReturnType | produce (const ElectronLikelihoodRcd &) |
return the particle table | |
void | setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) |
set validity interval | |
~ElectronLikelihoodESSource () | |
destructor | |
Private Member Functions | |
const ElectronLikelihoodCalibration * | readPdfFromDB (const ElectronLikelihoodRcd &) |
read PDF's from CondDB | |
Private Attributes | |
std::string | m_backgroundWeightSplitting |
LikelihoodSwitches | m_eleIDSwitches |
general parameters of the id algorithm | |
std::string | m_signalWeightSplitting |
signal pdf splitting | |
bool | m_splitBackgroundPdfs |
bool | m_splitSignalPdfs |
Definition at line 39 of file ElectronLikelihoodESSource.h.
typedef std::auto_ptr<ElectronLikelihood> ElectronLikelihoodESSource::ReturnType |
define the return type
Definition at line 46 of file ElectronLikelihoodESSource.h.
ElectronLikelihoodESSource::ElectronLikelihoodESSource | ( | const edm::ParameterSet & | cfg | ) |
constructor from parameter set
Definition at line 3 of file ElectronLikelihoodESSource.cc.
References edm::ParameterSet::getParameter(), m_eleIDSwitches, LikelihoodSwitches::m_useDeltaEta, LikelihoodSwitches::m_useDeltaPhi, LikelihoodSwitches::m_useEoverP, LikelihoodSwitches::m_useFBrem, LikelihoodSwitches::m_useHoverE, LikelihoodSwitches::m_useSigmaEtaEta, LikelihoodSwitches::m_useSigmaPhiPhi, and edm::ESProducer::setWhatProduced().
: m_signalWeightSplitting (cfg.getParameter<std::string> ("signalWeightSplitting")) , m_backgroundWeightSplitting (cfg.getParameter<std::string> ("backgroundWeightSplitting")) , m_splitSignalPdfs (cfg.getParameter<bool> ("splitSignalPdfs")) , m_splitBackgroundPdfs (cfg.getParameter<bool> ("splitBackgroundPdfs")) { setWhatProduced (this) ; findingRecord<ElectronLikelihoodRcd> () ; m_eleIDSwitches.m_useDeltaEta = cfg.getParameter<bool> ("useDeltaEta") ; m_eleIDSwitches.m_useDeltaPhi = cfg.getParameter<bool> ("useDeltaPhi") ; m_eleIDSwitches.m_useHoverE = cfg.getParameter<bool> ("useHoverE") ; m_eleIDSwitches.m_useEoverP = cfg.getParameter<bool> ("useEoverP") ; m_eleIDSwitches.m_useSigmaEtaEta = cfg.getParameter<bool> ("useSigmaEtaEta") ; m_eleIDSwitches.m_useSigmaPhiPhi = cfg.getParameter<bool> ("useSigmaPhiPhi") ; m_eleIDSwitches.m_useFBrem = cfg.getParameter<bool> ("useFBrem") ; }
ElectronLikelihoodESSource::~ElectronLikelihoodESSource | ( | ) |
ElectronLikelihoodESSource::ReturnType ElectronLikelihoodESSource::produce | ( | const ElectronLikelihoodRcd & | iRecord | ) |
return the particle table
Definition at line 34 of file ElectronLikelihoodESSource.cc.
References m_backgroundWeightSplitting, m_eleIDSwitches, m_signalWeightSplitting, m_splitBackgroundPdfs, m_splitSignalPdfs, and readPdfFromDB().
{ const ElectronLikelihoodCalibration *calibration = readPdfFromDB (iRecord) ; ReturnType LHAlgo (new ElectronLikelihood (&(*calibration), m_eleIDSwitches, m_signalWeightSplitting, m_backgroundWeightSplitting, m_splitSignalPdfs, m_splitBackgroundPdfs ) ); return LHAlgo; }
const ElectronLikelihoodCalibration * ElectronLikelihoodESSource::readPdfFromDB | ( | const ElectronLikelihoodRcd & | iRecord | ) | [private] |
read PDF's from CondDB
Definition at line 65 of file ElectronLikelihoodESSource.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and edm::ESHandle< T >::product().
Referenced by produce().
{ // setup the PDF's from DB const ElectronLikelihoodCalibration *calibration = 0; edm::ESHandle<ElectronLikelihoodCalibration> calibHandle; iRecord.getRecord<ElectronLikelihoodPdfsRcd>().get(calibHandle); calibration = calibHandle.product(); return calibration; }
void ElectronLikelihoodESSource::setIntervalFor | ( | const edm::eventsetup::EventSetupRecordKey & | , |
const edm::IOVSyncValue & | , | ||
edm::ValidityInterval & | oInterval | ||
) | [virtual] |
set validity interval
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 53 of file ElectronLikelihoodESSource.cc.
References edm::IOVSyncValue::beginOfTime(), and edm::IOVSyncValue::endOfTime().
{ // the same PDF's is valid for any time oInterval = edm::ValidityInterval (edm::IOVSyncValue::beginOfTime (), edm::IOVSyncValue::endOfTime ()) ; }
std::string ElectronLikelihoodESSource::m_backgroundWeightSplitting [private] |
Definition at line 65 of file ElectronLikelihoodESSource.h.
Referenced by produce().
general parameters of the id algorithm
Definition at line 61 of file ElectronLikelihoodESSource.h.
Referenced by ElectronLikelihoodESSource(), and produce().
std::string ElectronLikelihoodESSource::m_signalWeightSplitting [private] |
signal pdf splitting
Definition at line 64 of file ElectronLikelihoodESSource.h.
Referenced by produce().
bool ElectronLikelihoodESSource::m_splitBackgroundPdfs [private] |
Definition at line 67 of file ElectronLikelihoodESSource.h.
Referenced by produce().
bool ElectronLikelihoodESSource::m_splitSignalPdfs [private] |
Definition at line 66 of file ElectronLikelihoodESSource.h.
Referenced by produce().