CMS 3D CMS Logo

Public Types | Public Member Functions | Private Member Functions | Private Attributes

ElectronLikelihoodESSource Class Reference

#include <ElectronLikelihoodESSource.h>

Inheritance diagram for ElectronLikelihoodESSource:
edm::ESProducer edm::EventSetupRecordIntervalFinder edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

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

Detailed Description

Definition at line 39 of file ElectronLikelihoodESSource.h.


Member Typedef Documentation

define the return type

Definition at line 46 of file ElectronLikelihoodESSource.h.


Constructor & Destructor Documentation

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 ( )

destructor

Definition at line 26 of file ElectronLikelihoodESSource.cc.

                                                        {
}

Member Function Documentation

ElectronLikelihoodESSource::ReturnType ElectronLikelihoodESSource::produce ( const ElectronLikelihoodRcd iRecord)
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 ()) ;
}

Member Data Documentation

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().

signal pdf splitting

Definition at line 64 of file ElectronLikelihoodESSource.h.

Referenced by produce().

Definition at line 67 of file ElectronLikelihoodESSource.h.

Referenced by produce().

Definition at line 66 of file ElectronLikelihoodESSource.h.

Referenced by produce().