CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Private Attributes
ElectronMVAID.ElectronMVAID Class Reference

Public Member Functions

def __call__
 
def __init__
 

Public Attributes

 estimator
 
 etype
 
 name
 
 sxmls
 

Private Attributes

 _init
 

Detailed Description

Definition at line 4 of file ElectronMVAID.py.

Constructor & Destructor Documentation

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

Definition at line 5 of file ElectronMVAID.py.

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

Member Function Documentation

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

Definition at line 19 of file ElectronMVAID.py.

References ElectronMVAID.ElectronMVAID._init, ElectronMVAID.ElectronMVAID.etype, ElectronMVAID.ElectronMVAID.name, entry.name, TmModule.name, cond::persistency::TAG::NAME.name, cond::persistency::GLOBAL_TAG::NAME.name, core.autovars.NTupleVariable.name, cond::persistency::TAG::TIME_TYPE.name, cond::persistency::GLOBAL_TAG::VALIDITY.name, genericValidation.GenericValidation.name, cond::persistency::TAG::OBJECT_TYPE.name, cond::persistency::GLOBAL_TAG::DESCRIPTION.name, preexistingValidation.PreexistingValidation.name, cond::persistency::COND_LOG_TABLE::EXECTIME.name, cond::persistency::COND_LOG_TABLE::IOVTAG.name, cond::persistency::TAG::SYNCHRONIZATION.name, cond::persistency::GLOBAL_TAG::RELEASE.name, ora::RecordSpecImpl::Item.name, cond::persistency::COND_LOG_TABLE::USERTEXT.name, cond::persistency::TAG::END_OF_VALIDITY.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, FWTGeoRecoGeometry::Info.name, Types._Untracked.name, cond::persistency::TAG::INSERTION_TIME.name, cond::persistency::TAG::MODIFICATION_TIME.name, ParameterSet.name, PixelDCSObject< class >::Item.name, DQMRivetClient::LumiOption.name, MagCylinder.name, alignment.Alignment.name, ParSet.name, DQMRivetClient::ScaleFactorOption.name, SingleObjectCondition.name, EgHLTOfflineSummaryClient::SumHistBinData.name, XMLRBXPedestalsLoader::_loaderBaseConfig.name, DQMGenericClient::EfficOption.name, cond::persistency::GTProxyData.name, core.autovars.NTupleObjectType.name, XMLHTRZeroSuppressionLoader::_loaderBaseConfig.name, MyWatcher.name, edm::PathTimingSummary.name, cond::TimeTypeSpecs.name, lumi::TriggerInfo.name, edm::PathSummary.name, perftools::EdmEventSize::BranchRecord.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, PixelEndcapLinkMaker::Item.name, FWTableViewManager::TableEntry.name, RecAnalyzerMinbias.name, PixelBarrelLinkMaker::Item.name, cond::persistency::GLOBAL_TAG_MAP::RECORD.name, EcalLogicID.name, Mapper::definition< ScannerT >.name, cond::persistency::GLOBAL_TAG_MAP::LABEL.name, ExpressionHisto< T >.name, McSelector.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, RecoSelector.name, DQMGenericClient::ProfileOption.name, XMLProcessor::_loaderBaseConfig.name, cond::persistency::PAYLOAD::HASH.name, TreeCrawler.Package.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, cond::persistency::PAYLOAD::DATA.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, cond::persistency::PAYLOAD::VERSION.name, MagGeoBuilderFromDDD::volumeHandle.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, DQMGenericClient::NormOption.name, options.ConnectionHLTMenu.name, DQMGenericClient::CDOption.name, FastHFShowerLibrary.name, h4DSegm.name, cond::TagInfo_t.name, PhysicsTools::Calibration::Variable.name, EDMtoMEConverter.name, MEtoEDM< T >::MEtoEDMObject.name, cond::persistency::IOV::TAG_NAME.name, cond::persistency::IOV::SINCE.name, cond::persistency::IOV::PAYLOAD_HASH.name, cond::persistency::IOV::INSERTION_TIME.name, MuonGeometrySanityCheckPoint.name, core.autovars.NTupleSubObject.name, core.autovars.NTupleObject.name, h2DSegm.name, options.HLTProcessOptions.name, DQMNet::WaitObject.name, AlpgenParameterName.name, SiStripMonitorDigi.name, core.autovars.NTupleCollection.name, cond::persistency::TAG_MIGRATION::SOURCE_ACCOUNT.name, cond::persistency::TAG_MIGRATION::SOURCE_TAG.name, cond::persistency::TAG_MIGRATION::TAG_NAME.name, cond::persistency::TAG_MIGRATION::STATUS_CODE.name, cond::persistency::TAG_MIGRATION::INSERTION_TIME.name, FastTimerService::LuminosityDescription.name, cond::persistency::PAYLOAD_MIGRATION::SOURCE_ACCOUNT.name, cond::persistency::PAYLOAD_MIGRATION::SOURCE_TOKEN.name, cond::persistency::PAYLOAD_MIGRATION::PAYLOAD_HASH.name, cond::persistency::PAYLOAD_MIGRATION::INSERTION_TIME.name, conddblib.Tag.name, conddblib.GlobalTag.name, plotscripts.SawTeethFunction.name, FastTimerService::ProcessDescription.name, hTMaxCell.name, cscdqm::ParHistoDef.name, BeautifulSoup.Tag.name, TiXmlAttribute.name, BeautifulSoup.SoupStrainer.name, and ElectronMVAID.ElectronMVAID.sxmls.

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

Member Data Documentation

ElectronMVAID.ElectronMVAID._init
private

Definition at line 18 of file ElectronMVAID.py.

Referenced by ElectronMVAID.ElectronMVAID.__call__().

ElectronMVAID.ElectronMVAID.estimator

Definition at line 7 of file ElectronMVAID.py.

ElectronMVAID.ElectronMVAID.etype

Definition at line 10 of file ElectronMVAID.py.

Referenced by ElectronMVAID.ElectronMVAID.__call__().

ElectronMVAID.ElectronMVAID.name

Definition at line 6 of file ElectronMVAID.py.

Referenced by ElectronMVAID.ElectronMVAID.__call__(), dirstructure.Directory.__create_pie_image(), dqm_interfaces.DirID.__eq__(), dirstructure.Directory.__get_full_path(), dirstructure.Comparison.__get_img_name(), dataset.Dataset.__getDataType(), dataset.Dataset.__getFileInfoList(), cuy.divideElement.__init__(), cuy.plotElement.__init__(), cuy.additionElement.__init__(), cuy.superimposeElement.__init__(), cuy.graphElement.__init__(), dirstructure.Comparison.__make_image(), dirstructure.Directory.__repr__(), dqm_interfaces.DirID.__repr__(), dirstructure.Comparison.__repr__(), config.CFG.__str__(), counter.Counter.__str__(), average.Average.__str__(), dirstructure.Directory.calcStats(), python.rootplot.utilities.Hist.divide(), python.rootplot.utilities.Hist.divide_wilson(), utils.StatisticalTest.get_status(), VIDSelectorBase.VIDSelectorBase.initialize(), dirstructure.Directory.print_report(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), Vispa.Views.PropertyView.Property.valueChanged(), counter.Counter.write(), and average.Average.write().

ElectronMVAID.ElectronMVAID.sxmls

Definition at line 8 of file ElectronMVAID.py.

Referenced by ElectronMVAID.ElectronMVAID.__call__().