CMS 3D CMS Logo

ElectronLikelihoodESSource Class Reference

#include <RecoEgamma/ElectronIdentification/plugins/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
std::vector< double > m_eleEBFracsGt15
std::vector< double > m_eleEBFracsLt15
 barrel electron classes fractions
std::vector< double > m_eleEEFracsGt15
std::vector< double > m_eleEEFracsLt15
 endcap electron classes fractions
LikelihoodSwitches m_eleIDSwitches
 general parameters of the id algorithm
double m_eleWeight
 electrons weight
std::vector< double > m_fisherEBGt15
std::vector< double > m_fisherEBLt15
 fisher coefficients
std::vector< double > m_fisherEEGt15
std::vector< double > m_fisherEELt15
std::vector< double > m_piEBFracsGt15
std::vector< double > m_piEBFracsLt15
 barrel electron classes fractions for pions
std::vector< double > m_piEEFracsGt15
std::vector< double > m_piEEFracsLt15
 endcap electron classes fractions for pions
double m_piWeight
 pions weight
std::string m_signalWeightSplitting
 signal pdf splitting
bool m_splitBackgroundPdfs
bool m_splitSignalPdfs


Detailed Description

Definition at line 41 of file ElectronLikelihoodESSource.h.


Member Typedef Documentation

typedef std::auto_ptr<ElectronLikelihood> ElectronLikelihoodESSource::ReturnType

define the return type

Definition at line 48 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_eleEBFracsGt15, m_eleEBFracsLt15, m_eleEEFracsGt15, m_eleEEFracsLt15, m_eleIDSwitches, m_fisherEBGt15, m_fisherEBLt15, m_fisherEEGt15, m_fisherEELt15, m_piEBFracsGt15, m_piEBFracsLt15, m_piEEFracsGt15, m_piEEFracsLt15, LikelihoodSwitches::m_useDeltaEtaCalo, LikelihoodSwitches::m_useDeltaPhiIn, LikelihoodSwitches::m_useE9overE25, LikelihoodSwitches::m_useEoverPOut, LikelihoodSwitches::m_useHoverE, LikelihoodSwitches::m_useShapeFisher, LikelihoodSwitches::m_useSigmaEtaEta, and edm::ESProducer::setWhatProduced().

00003                                                                                   :
00004   m_eleWeight (cfg.getParameter<double> ("eleWeight")) ,
00005   m_piWeight  (cfg.getParameter<double> ("piWeight")) ,
00006   m_signalWeightSplitting (cfg.getParameter<std::string> ("signalWeightSplitting")) ,
00007   m_backgroundWeightSplitting (cfg.getParameter<std::string> ("backgroundWeightSplitting")) ,
00008   m_splitSignalPdfs (cfg.getParameter<bool> ("splitSignalPdfs")) ,
00009   m_splitBackgroundPdfs (cfg.getParameter<bool> ("splitBackgroundPdfs"))
00010 {
00011   setWhatProduced (this) ;
00012   findingRecord<ElectronLikelihoodRcd> () ;
00013 
00014   m_fisherEBLt15.push_back (cfg.getParameter<double> ("fisherCoeffEBLt15_constant")) ;
00015   m_fisherEBLt15.push_back (cfg.getParameter<double> ("fisherCoeffEBLt15_sigmaEtaEta")) ;
00016   m_fisherEBLt15.push_back (cfg.getParameter<double> ("fisherCoeffEBLt15_s9s25")) ;
00017   m_fisherEBLt15.push_back (cfg.getParameter<double> ("fisherCoeffEBLt15_etaLat")) ;
00018   m_fisherEBLt15.push_back (cfg.getParameter<double> ("fisherCoeffEBLt15_a20")) ;
00019   m_fisherEBGt15.push_back (cfg.getParameter<double> ("fisherCoeffEBGt15_constant")) ;
00020   m_fisherEBGt15.push_back (cfg.getParameter<double> ("fisherCoeffEBGt15_sigmaEtaEta")) ;
00021   m_fisherEBGt15.push_back (cfg.getParameter<double> ("fisherCoeffEBGt15_s9s25")) ;
00022   m_fisherEBGt15.push_back (cfg.getParameter<double> ("fisherCoeffEBGt15_etaLat")) ;
00023   m_fisherEBGt15.push_back (cfg.getParameter<double> ("fisherCoeffEBGt15_a20")) ;
00024   m_fisherEELt15.push_back (cfg.getParameter<double> ("fisherCoeffEELt15_constant")) ;
00025   m_fisherEELt15.push_back (cfg.getParameter<double> ("fisherCoeffEELt15_sigmaEtaEta")) ;
00026   m_fisherEELt15.push_back (cfg.getParameter<double> ("fisherCoeffEELt15_s9s25")) ;
00027   m_fisherEELt15.push_back (cfg.getParameter<double> ("fisherCoeffEELt15_etaLat")) ;
00028   m_fisherEELt15.push_back (cfg.getParameter<double> ("fisherCoeffEELt15_a20")) ;
00029   m_fisherEEGt15.push_back (cfg.getParameter<double> ("fisherCoeffEEGt15_constant")) ;
00030   m_fisherEEGt15.push_back (cfg.getParameter<double> ("fisherCoeffEEGt15_sigmaEtaEta")) ;
00031   m_fisherEEGt15.push_back (cfg.getParameter<double> ("fisherCoeffEEGt15_s9s25")) ;
00032   m_fisherEEGt15.push_back (cfg.getParameter<double> ("fisherCoeffEEGt15_etaLat")) ;
00033   m_fisherEEGt15.push_back (cfg.getParameter<double> ("fisherCoeffEEGt15_a20")) ;
00034 
00035   m_eleEBFracsLt15.push_back (cfg.getParameter<double> ("eleEBGoldenFracLt15")) ;
00036   m_eleEBFracsLt15.push_back (cfg.getParameter<double> ("eleEBBigbremFracLt15")) ;
00037   m_eleEBFracsLt15.push_back (cfg.getParameter<double> ("eleEBNarrowFracLt15")) ;
00038   m_eleEBFracsLt15.push_back (cfg.getParameter<double> ("eleEBShoweringFracLt15")) ;
00039   m_eleEBFracsGt15.push_back (cfg.getParameter<double> ("eleEBGoldenFracGt15")) ;
00040   m_eleEBFracsGt15.push_back (cfg.getParameter<double> ("eleEBBigbremFracGt15")) ;
00041   m_eleEBFracsGt15.push_back (cfg.getParameter<double> ("eleEBNarrowFracGt15")) ;
00042   m_eleEBFracsGt15.push_back (cfg.getParameter<double> ("eleEBShoweringFracGt15")) ;
00043   m_piEBFracsLt15.push_back  (cfg.getParameter<double> ("piEBGoldenFracLt15")) ;
00044   m_piEBFracsLt15.push_back  (cfg.getParameter<double> ("piEBBigbremFracLt15")) ;
00045   m_piEBFracsLt15.push_back  (cfg.getParameter<double> ("piEBNarrowFracLt15")) ;
00046   m_piEBFracsLt15.push_back  (cfg.getParameter<double> ("piEBShoweringFracLt15")) ;
00047   m_piEBFracsGt15.push_back  (cfg.getParameter<double> ("piEBGoldenFracGt15")) ;
00048   m_piEBFracsGt15.push_back  (cfg.getParameter<double> ("piEBBigbremFracGt15")) ;
00049   m_piEBFracsGt15.push_back  (cfg.getParameter<double> ("piEBNarrowFracGt15")) ;
00050   m_piEBFracsGt15.push_back  (cfg.getParameter<double> ("piEBShoweringFracGt15")) ;
00051 
00052   m_eleEEFracsLt15.push_back (cfg.getParameter<double> ("eleEEGoldenFracLt15")) ;
00053   m_eleEEFracsLt15.push_back (cfg.getParameter<double> ("eleEEBigbremFracLt15")) ;
00054   m_eleEEFracsLt15.push_back (cfg.getParameter<double> ("eleEENarrowFracLt15")) ;
00055   m_eleEEFracsLt15.push_back (cfg.getParameter<double> ("eleEEShoweringFracLt15")) ;
00056   m_piEEFracsLt15.push_back (cfg.getParameter<double> ("piEEGoldenFracLt15")) ;
00057   m_piEEFracsLt15.push_back (cfg.getParameter<double> ("piEEBigbremFracLt15")) ;
00058   m_piEEFracsLt15.push_back (cfg.getParameter<double> ("piEENarrowFracLt15")) ;
00059   m_piEEFracsLt15.push_back (cfg.getParameter<double> ("piEEShoweringFracLt15")) ;
00060   m_eleEEFracsGt15.push_back (cfg.getParameter<double> ("eleEEGoldenFracGt15")) ;
00061   m_eleEEFracsGt15.push_back (cfg.getParameter<double> ("eleEEBigbremFracGt15")) ;
00062   m_eleEEFracsGt15.push_back (cfg.getParameter<double> ("eleEENarrowFracGt15")) ;
00063   m_eleEEFracsGt15.push_back (cfg.getParameter<double> ("eleEEShoweringFracGt15")) ;
00064   m_piEEFracsGt15.push_back (cfg.getParameter<double> ("piEEGoldenFracGt15")) ;
00065   m_piEEFracsGt15.push_back (cfg.getParameter<double> ("piEEBigbremFracGt15")) ;
00066   m_piEEFracsGt15.push_back (cfg.getParameter<double> ("piEENarrowFracGt15")) ;
00067   m_piEEFracsGt15.push_back (cfg.getParameter<double> ("piEEShoweringFracGt15")) ;
00068 
00069   m_eleIDSwitches.m_useDeltaEtaCalo = cfg.getParameter<double> ("useDeltaEtaCalo") ;
00070   m_eleIDSwitches.m_useDeltaPhiIn   = cfg.getParameter<double> ("useDeltaPhiIn") ;
00071   m_eleIDSwitches.m_useHoverE       = cfg.getParameter<double> ("useHoverE") ;
00072   m_eleIDSwitches.m_useEoverPOut    = cfg.getParameter<double> ("useEoverPOut") ;
00073   m_eleIDSwitches.m_useShapeFisher  = cfg.getParameter<double> ("useShapeFisher") ;
00074   m_eleIDSwitches.m_useSigmaEtaEta  = cfg.getParameter<double> ("useSigmaEtaEta") ;
00075   m_eleIDSwitches.m_useE9overE25    = cfg.getParameter<double> ("useE9overE25") ;
00076 }

ElectronLikelihoodESSource::~ElectronLikelihoodESSource (  ) 

destructor

Definition at line 82 of file ElectronLikelihoodESSource.cc.

00082                                                         {
00083 }


Member Function Documentation

ElectronLikelihoodESSource::ReturnType ElectronLikelihoodESSource::produce ( const ElectronLikelihoodRcd iRecord  ) 

return the particle table

Definition at line 90 of file ElectronLikelihoodESSource.cc.

References calibration, m_backgroundWeightSplitting, m_eleEBFracsGt15, m_eleEBFracsLt15, m_eleEEFracsGt15, m_eleEEFracsLt15, m_eleIDSwitches, m_eleWeight, m_fisherEBGt15, m_fisherEBLt15, m_fisherEEGt15, m_fisherEELt15, m_piEBFracsGt15, m_piEBFracsLt15, m_piEEFracsGt15, m_piEEFracsLt15, m_piWeight, m_signalWeightSplitting, m_splitBackgroundPdfs, m_splitSignalPdfs, and readPdfFromDB().

const ElectronLikelihoodCalibration * ElectronLikelihoodESSource::readPdfFromDB ( const ElectronLikelihoodRcd iRecord  )  [private]

read PDF's from CondDB

Definition at line 128 of file ElectronLikelihoodESSource.cc.

References calibration, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and edm::ESHandle< T >::product().

Referenced by produce().

00128                                                                                  {
00129 
00130   // setup the PDF's from DB
00131   const ElectronLikelihoodCalibration *calibration = 0;
00132   edm::ESHandle<ElectronLikelihoodCalibration> calibHandle;
00133   iRecord.getRecord<ElectronLikelihoodPdfsRcd>().get(calibHandle);
00134   calibration = calibHandle.product();
00135 
00136   return calibration;
00137 }

void ElectronLikelihoodESSource::setIntervalFor ( const edm::eventsetup::EventSetupRecordKey ,
const edm::IOVSyncValue ,
edm::ValidityInterval oInterval 
) [virtual]

set validity interval

Implements edm::EventSetupRecordIntervalFinder.

Definition at line 116 of file ElectronLikelihoodESSource.cc.

References edm::IOVSyncValue::beginOfTime(), and edm::IOVSyncValue::endOfTime().

00118                                                                             {
00119   // the same PDF's is valid for any time
00120   oInterval = edm::ValidityInterval (edm::IOVSyncValue::beginOfTime (), 
00121                                      edm::IOVSyncValue::endOfTime ()) ;
00122 }


Member Data Documentation

std::string ElectronLikelihoodESSource::m_backgroundWeightSplitting [private]

Definition at line 92 of file ElectronLikelihoodESSource.h.

Referenced by produce().

std::vector<double> ElectronLikelihoodESSource::m_eleEBFracsGt15 [private]

Definition at line 70 of file ElectronLikelihoodESSource.h.

Referenced by ElectronLikelihoodESSource(), and produce().

std::vector<double> ElectronLikelihoodESSource::m_eleEBFracsLt15 [private]

barrel electron classes fractions

Definition at line 69 of file ElectronLikelihoodESSource.h.

Referenced by ElectronLikelihoodESSource(), and produce().

std::vector<double> ElectronLikelihoodESSource::m_eleEEFracsGt15 [private]

Definition at line 77 of file ElectronLikelihoodESSource.h.

Referenced by ElectronLikelihoodESSource(), and produce().

std::vector<double> ElectronLikelihoodESSource::m_eleEEFracsLt15 [private]

endcap electron classes fractions

Definition at line 76 of file ElectronLikelihoodESSource.h.

Referenced by ElectronLikelihoodESSource(), and produce().

LikelihoodSwitches ElectronLikelihoodESSource::m_eleIDSwitches [private]

general parameters of the id algorithm

Definition at line 83 of file ElectronLikelihoodESSource.h.

Referenced by ElectronLikelihoodESSource(), and produce().

double ElectronLikelihoodESSource::m_eleWeight [private]

electrons weight

Definition at line 86 of file ElectronLikelihoodESSource.h.

Referenced by produce().

std::vector<double> ElectronLikelihoodESSource::m_fisherEBGt15 [private]

Definition at line 64 of file ElectronLikelihoodESSource.h.

Referenced by ElectronLikelihoodESSource(), and produce().

std::vector<double> ElectronLikelihoodESSource::m_fisherEBLt15 [private]

fisher coefficients

Definition at line 63 of file ElectronLikelihoodESSource.h.

Referenced by ElectronLikelihoodESSource(), and produce().

std::vector<double> ElectronLikelihoodESSource::m_fisherEEGt15 [private]

Definition at line 66 of file ElectronLikelihoodESSource.h.

Referenced by ElectronLikelihoodESSource(), and produce().

std::vector<double> ElectronLikelihoodESSource::m_fisherEELt15 [private]

Definition at line 65 of file ElectronLikelihoodESSource.h.

Referenced by ElectronLikelihoodESSource(), and produce().

std::vector<double> ElectronLikelihoodESSource::m_piEBFracsGt15 [private]

Definition at line 73 of file ElectronLikelihoodESSource.h.

Referenced by ElectronLikelihoodESSource(), and produce().

std::vector<double> ElectronLikelihoodESSource::m_piEBFracsLt15 [private]

barrel electron classes fractions for pions

Definition at line 72 of file ElectronLikelihoodESSource.h.

Referenced by ElectronLikelihoodESSource(), and produce().

std::vector<double> ElectronLikelihoodESSource::m_piEEFracsGt15 [private]

Definition at line 80 of file ElectronLikelihoodESSource.h.

Referenced by ElectronLikelihoodESSource(), and produce().

std::vector<double> ElectronLikelihoodESSource::m_piEEFracsLt15 [private]

endcap electron classes fractions for pions

Definition at line 79 of file ElectronLikelihoodESSource.h.

Referenced by ElectronLikelihoodESSource(), and produce().

double ElectronLikelihoodESSource::m_piWeight [private]

pions weight

Definition at line 88 of file ElectronLikelihoodESSource.h.

Referenced by produce().

std::string ElectronLikelihoodESSource::m_signalWeightSplitting [private]

signal pdf splitting

Definition at line 91 of file ElectronLikelihoodESSource.h.

Referenced by produce().

bool ElectronLikelihoodESSource::m_splitBackgroundPdfs [private]

Definition at line 94 of file ElectronLikelihoodESSource.h.

Referenced by produce().

bool ElectronLikelihoodESSource::m_splitSignalPdfs [private]

Definition at line 93 of file ElectronLikelihoodESSource.h.

Referenced by produce().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:20:20 2009 for CMSSW by  doxygen 1.5.4