CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Attributes
ElectronMVAID.ElectronMVAID Class Reference

Public Member Functions

def __call__ (self, ele, vtx, rho, full5x5=False, debug=False)
 
def __init__ (self, name, type, xmls)
 

Public Attributes

 estimator
 
 etype
 
 name
 
 sxmls
 

Private Attributes

 _init
 

Detailed Description

Definition at line 3 of file ElectronMVAID.py.

Constructor & Destructor Documentation

def ElectronMVAID.ElectronMVAID.__init__ (   self,
  name,
  type,
  xmls 
)

Definition at line 4 of file ElectronMVAID.py.

4  def __init__(self,name,type,*xmls):
5  self.name = name
6  self.estimator = ROOT.heppy.EGammaMvaEleEstimatorFWLite()
7  self.sxmls = ROOT.vector(ROOT.string)()
8  for x in xmls: self.sxmls.push_back(x)
9  self.etype = -1
10  if type == "Trig": self.etype = self.estimator.kTrig;
11  if type == "NonTrig": self.etype = self.estimator.kNonTrig;
12  if type == "TrigNoIP": self.etype = self.estimator.kTrigNoIP;
13  if type == "TrigCSA14": self.etype = self.estimator.kTrigCSA14;
14  if type == "NonTrigCSA14": self.etype = self.estimator.kNonTrigCSA14;
15  if type == "NonTrigPhys14": self.etype = self.estimator.kNonTrigPhys14;
16  if self.etype == -1: raise RuntimeError("Unknown type %s" % type)
17  self._init = False
def __init__(self, name, type, xmls)
Definition: ElectronMVAID.py:4

Member Function Documentation

def ElectronMVAID.ElectronMVAID.__call__ (   self,
  ele,
  vtx,
  rho,
  full5x5 = False,
  debug = False 
)

Definition at line 18 of file ElectronMVAID.py.

References ElectronMVAID.ElectronMVAID._init, ElectronMVAID.ElectronMVAID.etype, ElectronMVAID.ElectronMVAID.name, AlignableObjectId::entry.name, TmModule.name, cond::persistency::TAG::NAME.name, cond::persistency::GLOBAL_TAG::NAME.name, cond::persistency::RUN_INFO::RUN_NUMBER.name, cond::persistency::TAG::TIME_TYPE.name, cond::persistency::GLOBAL_TAG::VALIDITY.name, core.autovars.NTupleVariable.name, cond::persistency::RUN_INFO::START_TIME.name, cond::persistency::TAG::OBJECT_TYPE.name, cond::persistency::GLOBAL_TAG::DESCRIPTION.name, cond::persistency::RUN_INFO::END_TIME.name, cond::persistency::TAG::SYNCHRONIZATION.name, cond::persistency::GLOBAL_TAG::RELEASE.name, cond::persistency::TAG::END_OF_VALIDITY.name, MEPSet.name, cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, cond::persistency::TAG::DESCRIPTION.name, cond::persistency::GTEditorData.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, cond::persistency::TAG::INSERTION_TIME.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::MODIFICATION_TIME.name, FWTGeoRecoGeometry::Info.name, preexistingValidation.PreexistingValidation.name, OutputMEPSet.name, personalPlayback.Applet.name, Types._Untracked.name, ParameterSet.name, PixelDCSObject< T >::Item.name, DQMRivetClient::LumiOption.name, MagCylinder.name, ParSet.name, edm::PathTimingSummary.name, DQMRivetClient::ScaleFactorOption.name, EgHLTOfflineSummaryClient::SumHistBinData.name, SingleObjectCondition.name, cond::persistency::GTProxyData.name, MyWatcher.name, core.autovars.NTupleObjectType.name, edm::PathSummary.name, lumi::TriggerInfo.name, cond::TimeTypeSpecs.name, alignment.Alignment.name, PixelEndcapLinkMaker::Item.name, perftools::EdmEventSize::BranchRecord.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, DQMGenericClient::EfficOption.name, FWTableViewManager::TableEntry.name, PixelBarrelLinkMaker::Item.name, cond::persistency::GLOBAL_TAG_MAP::RECORD.name, EcalLogicID.name, cond::persistency::GLOBAL_TAG_MAP::LABEL.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, MEtoEDM< T >::MEtoEDMObject.name, cms::DDAlgoArguments.name, ExpressionHisto< T >.name, XMLProcessor::_loaderBaseConfig.name, cond::persistency::PAYLOAD::HASH.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, cond::persistency::PAYLOAD::DATA.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, TreeCrawler.Package.name, genericValidation.GenericValidation.name, options.ConnectionHLTMenu.name, MagGeoBuilderFromDDD::volumeHandle.name, cond::persistency::PAYLOAD::VERSION.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, DQMGenericClient::ProfileOption.name, dqmoffline::l1t::HistDefinition.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, DQMGenericClient::NormOption.name, emtf::Node.name, h4DSegm.name, FastHFShowerLibrary.name, PhysicsTools::Calibration::Variable.name, core.TriggerMatchAnalyzer.TriggerMatchAnalyzer.name, DQMGenericClient::CDOption.name, CounterChecker.name, TrackerSectorStruct.name, cond::TagInfo_t.name, DQMGenericClient::NoFlowOption.name, cond::persistency::IOV::TAG_NAME.name, cond::persistency::IOV::SINCE.name, EDMtoMEConverter.name, Mapper::definition< ScannerT >.name, cond::persistency::IOV::PAYLOAD_HASH.name, classes.MonitorData.name, cond::persistency::IOV::INSERTION_TIME.name, HistogramManager.name, MuonGeometrySanityCheckPoint.name, classes.OutputData.name, options.HLTProcessOptions.name, h2DSegm.name, core.TriggerBitAnalyzer.TriggerBitAnalyzer.name, nanoaod::FlatTable::Column.name, geometry.Structure.name, core.autovars.NTupleSubObject.name, DQMNet::WaitObject.name, AlpgenParameterName.name, SiStripMonitorDigi.name, core.autovars.NTupleObject.name, cond::persistency::TAG_LOG::TAG_NAME.name, cond::persistency::TAG_LOG::EVENT_TIME.name, cond::persistency::TAG_LOG::USER_NAME.name, cond::persistency::TAG_LOG::HOST_NAME.name, cond::persistency::TAG_LOG::COMMAND.name, cond::persistency::TAG_LOG::ACTION.name, cond::persistency::TAG_LOG::USER_TEXT.name, core.autovars.NTupleCollection.name, BPHRecoBuilder::BPHRecoSource.name, BPHRecoBuilder::BPHCompSource.name, personalPlayback.FrameworkJob.name, plotscripts.SawTeethFunction.name, crabFunctions.CrabTask.name, hTMaxCell.name, cscdqm::ParHistoDef.name, BeautifulSoup.Tag.name, SummaryOutputProducer::GenericSummary.name, BeautifulSoup.SoupStrainer.name, and ElectronMVAID.ElectronMVAID.sxmls.

18  def __call__(self,ele,vtx,rho,full5x5=False,debug=False):
19  if not self._init:
20  self.estimator.initialize(self.name,self.etype,True,self.sxmls)
21  self._init = True
22  return self.estimator.mvaValue(ele,vtx,rho,full5x5,debug)
23 
def __call__(self, ele, vtx, rho, full5x5=False, debug=False)

Member Data Documentation

ElectronMVAID.ElectronMVAID._init
private
ElectronMVAID.ElectronMVAID.estimator

Definition at line 6 of file ElectronMVAID.py.

ElectronMVAID.ElectronMVAID.etype

Definition at line 9 of file ElectronMVAID.py.

Referenced by ElectronMVAID.ElectronMVAID.__call__().

ElectronMVAID.ElectronMVAID.name
ElectronMVAID.ElectronMVAID.sxmls

Definition at line 7 of file ElectronMVAID.py.

Referenced by ElectronMVAID.ElectronMVAID.__call__().