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 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 
5  def __init__(self,name,type,*xmls):
6  self.name = name
7  self.estimator = ROOT.heppy.EGammaMvaEleEstimatorFWLite()
8  self.sxmls = ROOT.vector(ROOT.string)()
9  for x in xmls: self.sxmls.push_back(x)
10  self.etype = -1
11  if type == "Trig": self.etype = self.estimator.kTrig;
12  if type == "NonTrig": self.etype = self.estimator.kNonTrig;
13  if type == "TrigNoIP": self.etype = self.estimator.kTrigNoIP;
14  if type == "TrigCSA14": self.etype = self.estimator.kTrigCSA14;
15  if type == "NonTrigCSA14": self.etype = self.estimator.kNonTrigCSA14;
16  if type == "NonTrigPhys14": self.etype = self.estimator.kNonTrigPhys14;
17  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 18 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, preexistingValidation.PreexistingValidation.name, cond::persistency::TAG::OBJECT_TYPE.name, cond::persistency::GLOBAL_TAG::DESCRIPTION.name, cond::persistency::TAG::SYNCHRONIZATION.name, cond::persistency::GLOBAL_TAG::RELEASE.name, ora::RecordSpecImpl::Item.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, personalPlayback.Applet.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, PixelBarrelLinkMaker::Item.name, cond::persistency::GLOBAL_TAG_MAP::RECORD.name, Mapper::definition< ScannerT >.name, EcalLogicID.name, cond::persistency::GLOBAL_TAG_MAP::LABEL.name, ExpressionHisto< T >.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, XMLProcessor::_loaderBaseConfig.name, DQMGenericClient::ProfileOption.name, TreeCrawler.Package.name, cond::persistency::PAYLOAD::HASH.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, cond::persistency::PAYLOAD::DATA.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, options.ConnectionHLTMenu.name, cond::persistency::PAYLOAD::VERSION.name, MagGeoBuilderFromDDD::volumeHandle.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, DQMGenericClient::NormOption.name, Node.name, DQMGenericClient::CDOption.name, FastHFShowerLibrary.name, h4DSegm.name, PhysicsTools::Calibration::Variable.name, cond::TagInfo_t.name, EDMtoMEConverter.name, MEtoEDM< T >::MEtoEDMObject.name, cond::persistency::IOV::TAG_NAME.name, TrackerSectorStruct.name, cond::persistency::IOV::SINCE.name, cond::persistency::IOV::PAYLOAD_HASH.name, cond::persistency::IOV::INSERTION_TIME.name, MuonGeometrySanityCheckPoint.name, options.HLTProcessOptions.name, h2DSegm.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, FastTimerService::LuminosityDescription.name, conddblib.Tag.name, conddblib.GlobalTag.name, personalPlayback.FrameworkJob.name, plotscripts.SawTeethFunction.name, FastTimerService::ProcessDescription.name, hTMaxCell.name, cscdqm::ParHistoDef.name, BeautifulSoup.Tag.name, TiXmlAttribute.name, BeautifulSoup.SoupStrainer.name, and ElectronMVAID.ElectronMVAID.sxmls.

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

Member Data Documentation

ElectronMVAID.ElectronMVAID._init
private

Definition at line 17 of file ElectronMVAID.py.

Referenced by ElectronMVAID.ElectronMVAID.__call__().

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

Definition at line 5 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(), validation.Sample.digest(), python.rootplot.utilities.Hist.divide(), python.rootplot.utilities.Hist.divide_wilson(), utils.StatisticalTest.get_status(), production_tasks.Task.getname(), dataset.CMSDataset.getPrimaryDatasetEntries(), dataset.PrivateDataset.getPrimaryDatasetEntries(), VIDSelectorBase.VIDSelectorBase.initialize(), dirstructure.Directory.print_report(), dataset.BaseDataset.printInfo(), dataset.Dataset.printInfo(), production_tasks.MonitorJobs.run(), 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 7 of file ElectronMVAID.py.

Referenced by ElectronMVAID.ElectronMVAID.__call__().