CMS 3D CMS Logo

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

Public Member Functions

def __call__
 
def __init__
 
def __repr__
 
def bitMap
 
def cutFlowResult
 
def cutFlowSize
 
def howFarInCutFlow
 
def initialize
 
def md55Raw
 
def md5String
 
def name
 

Private Attributes

 __initialized
 
 __instance
 
 __printer
 
 __ptrMaker
 
 __selectorBuilder
 
 __suffix
 

Detailed Description

Definition at line 36 of file VIDSelectorBase.py.

Constructor & Destructor Documentation

def VIDSelectorBase.VIDSelectorBase.__init__ (   self,
  vidSelectorBuilder,
  ptrMaker,
  printer,
  pythonpset = None 
)

Definition at line 37 of file VIDSelectorBase.py.

37 
38  def __init__(self, vidSelectorBuilder, ptrMaker, printer, pythonpset = None):
39  self.__initialized = False
41  self.__printer = printer()
42  self.__ptrMaker = ptrMaker()
43  self.__selectorBuilder = vidSelectorBuilder()
44  self.__instance = None
45  if pythonpset is not None:
46  if hasattr(pythonpset,'isPOGApproved'):
47  approved = pythonpset.isPOGApproved.value()
48  if not approved:
49  sys.stderr.write('This ID is not POG approved and likely under development!!!!\n')
50  sys.stderr.write('Please make sure to report your progress with this ID'\
51  ' at the next relevant POG meeting.\n')
52  del pythonpset.isPOGApproved
53  else:
54  sys.stderr.write('This ID is not POG approved and likely under development!!!!\n')
55  sys.stderr.write('Please make sure to report your progress with this ID'\
56  ' at the next relevant POG meeting.\n')
57  self.__instance = process_pset( self.__selectorBuilder, pythonpset )
58  expectedmd5 = central_id_registry.getMD5FromName(pythonpset.idName)
59  if expectedmd5 != self.md5String():
60  sys.stderr.write("ID: %s\n"%self.name())
61  sys.stderr.write("The expected md5: %s does not match the md5\n"%expectedmd5)
62  sys.stderr.write("calculated by the ID: %s please\n"%self.md5String())
63  sys.stderr.write("update your python configuration or determine the source\n")
64  sys.stderr.write("of transcription error!\n")
65  self.__initialized = True
66  else:
67  self.__instance = self.__selectorBuilder()

Member Function Documentation

def VIDSelectorBase.VIDSelectorBase.__call__ (   self,
  args 
)

Definition at line 68 of file VIDSelectorBase.py.

References VIDCutFlowResult.VIDCutFlowResult.__instance, VIDSelectorBase.VIDSelectorBase.__instance, VIDSelectorBase.VIDSelectorBase.__ptrMaker, if(), and dbtoconf.object.

68 
69  def __call__(self,*args):
70  if( len(args) == 1 ):
71  return self.__instance(*args)
72  if( len(args) == 2 and isinstance(args[1],DataFormats.FWLite.Events) ):
73  return self.__instance(args[0],args[1].object().event())
74  elif( len(args) == 2 and type(args[1]) is int ):
75  temp = self.__ptrMaker(args[0],args[1])
76  newargs = [temp]
77  return self.__instance(*newargs)
78  if( len(args) == 3 ):
79  temp = self.__ptrMaker(args[0],args[1])
80  newargs = [temp]
81  newargs += [args[2].object().event()]
82  return self.__instance(*newargs)
list object
Definition: dbtoconf.py:77
if(conf.exists("allCellsPositionCalc"))
Definition: event.py:1
def VIDSelectorBase.VIDSelectorBase.__repr__ (   self)

Definition at line 130 of file VIDSelectorBase.py.

References VIDCutFlowResult.VIDCutFlowResult.__instance, VIDSelectorBase.VIDSelectorBase.__instance, and VIDSelectorBase.VIDSelectorBase.__printer.

def VIDSelectorBase.VIDSelectorBase.bitMap (   self)

Definition at line 121 of file VIDSelectorBase.py.

122  def bitMap(self):
123  return self.__instance.bitMap()
def VIDSelectorBase.VIDSelectorBase.cutFlowResult (   self)

Definition at line 112 of file VIDSelectorBase.py.

113  def cutFlowResult(self):
114  return VIDCutFlowResult(self.__instance.cutFlowResult())
def VIDSelectorBase.VIDSelectorBase.cutFlowSize (   self)

Definition at line 109 of file VIDSelectorBase.py.

110  def cutFlowSize(self):
111  return self.__instance.cutFlowSize()
def VIDSelectorBase.VIDSelectorBase.howFarInCutFlow (   self)

Definition at line 115 of file VIDSelectorBase.py.

116  def howFarInCutFlow(self):
117  return self.__instance.howFarInCutFlow()
def VIDSelectorBase.VIDSelectorBase.initialize (   self,
  pythonpset 
)

Definition at line 83 of file VIDSelectorBase.py.

References VIDSelectorBase.VIDSelectorBase.__initialized, VIDCutFlowResult.VIDCutFlowResult.__instance, VIDSelectorBase.VIDSelectorBase.__instance, VIDSelectorBase.VIDSelectorBase.__selectorBuilder, if(), VIDSelectorBase.VIDSelectorBase.md5String(), VersionedSelector< T >.md5String(), ElectronMVAID.ElectronMVAID.name, OAQualityTranslator.name(), counter.Counter.name, entry.name, average.Average.name, histograms.Histograms.name, RPCGeomServ.name(), SymmetryFit.name(), cond::persistency::TAG::NAME.name, TmModule.name, cond::persistency::GLOBAL_TAG::NAME.name, core.autovars.NTupleVariable.name, CmsTrackerStringToEnum.name(), cond::persistency::TAG::TIME_TYPE.name, candidate_functions::CandidateCut.name(), listHistos.plotInfo.name, genericValidation.GenericValidation.name, cond::persistency::GLOBAL_TAG::VALIDITY.name, cond::persistency::COND_LOG_TABLE::EXECTIME.name, FeldmanCousinsBinomialInterval.name(), SterneBinomialInterval.name(), cond::persistency::TAG::OBJECT_TYPE.name, preexistingValidation.PreexistingValidation.name, cond::persistency::GLOBAL_TAG::DESCRIPTION.name, cond::persistency::GLOBAL_TAG::RELEASE.name, ora::RecordSpecImpl::Item.name, cond::persistency::COND_LOG_TABLE::IOVTAG.name, cond::persistency::TAG::SYNCHRONIZATION.name, AxesNames.name(), cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, cond::persistency::COND_LOG_TABLE::USERTEXT.name, ExpressionEvaluatorCut.name(), cond::persistency::TAG::END_OF_VALIDITY.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, edm::service::NamedDestination.name(), GeomDetType.name(), cond::persistency::TAG::DESCRIPTION.name, ora::NamedReference.name(), cond::persistency::GTEditorData.name, edm::ModuleTime.name(), DDSolidShapesName.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, ora::OraMainTable.name(), ClopperPearsonBinomialInterval.name(), PixelModuleName.name(), NodeCut.NameLine.name(), edm::BaseWithDict.name(), HistoDef.name(), ora::IDatabaseTable.name(), fit::RootMinuitCommand.name, CombinedMVAJetTagComputer::Computer.name, edm::MemberWithDict.name(), ExpressionEvaluatorCutWithEventContent.name(), EventSelector.name(), ParameterSet.name, FileData.name(), PacketData.name(), PixelDCSObject< class >::Item.name, DDAxesNames.name(), pos::PixelConfigAlias.name(), analyzer.Analyzer.name, DQMRivetClient::LumiOption.name, MagCylinder.name, rpcrawtodigi::ReadoutError.name(), RPCLinkSynchroStat::LinkBoard.name(), PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.name, HcalForwardLibWriter::FileHandle.name, JetResolution.name(), PrintSensitive.name, edm::FunctionWithDict.name(), ALIFileOut.name(), alignment.Alignment.name, PixelBarrelNameUpgrade.name(), DDI::rep_type< N, I >.name(), DCCTBDataField.name(), RHStopTracer::StopPoint.name, ParSet.name, citk::IsolationConeDefinitionBase.name(), MuonSubDetector.name(), CSCChannelMapperPostls1.name(), PixelEndcapNameUpgrade.name(), pat::helper::OverlapTest.name(), runEdmFileComparison.EdmObject.name, DQMRivetClient::ScaleFactorOption.name, reco::ElectronSeed.name(), HLTPerformanceInfo::Module.name(), L1GctEtHad.name(), L1GctEtTotal.name(), rpcrawtodigi::DataRecord.name(), SingleObjectCondition.name, EgHLTOfflineSummaryClient::SumHistBinData.name, CSCChannelMapperStartup.name(), BeamSpotOnline.name(), PhysicsTools::Source.name, XMLHTRZeroSuppressionLoader::_loaderBaseConfig.name, DQMGenericClient::EfficOption.name, XMLRBXPedestalsLoader::_loaderBaseConfig.name, pos::PixelDACScanRange.name(), cond::persistency::GTProxyData.name, core.autovars.NTupleObjectType.name, PixelEndcapName.name(), SummaryGenerator.name(), MyWatcher.name, L1GctInternEmCand.name(), PixelBarrelName.name(), FWParameterBase.name(), edm::eventsetup::ModuleMakerTraits.name(), edm::PathTimingSummary.name, OpticalAlignParam.name(), BinomialInterval.name(), CSCIndexerStartup.name(), reco::CompositeCandidate.name(), dirstructure.Weighted.name, LumiScalers.name(), cond::TimeTypeSpecs.name, lumi::TriggerInfo.name, pos::PixelROCMaskBits.name(), CSCChannelMapperBase.name(), ALIFileIn.name(), edm::PathSummary.name, CSCIndexerPostls1.name(), ora::OraSequenceTable.name(), PrintMaterialBudgetInfo.name, L1GctJetCand.name(), L1TriggerScalers.name(), cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, PixelEndcapLinkMaker::Item.name, pos::PixelROCTrimBits.name(), perftools::EdmEventSize::BranchRecord.name, FWTableViewManager::TableEntry.name, RecAnalyzerMinbias.name, cond::persistency::GLOBAL_TAG_MAP::RECORD.name, PixelBarrelLinkMaker::Item.name, reco::NamedCompositeCandidate.name(), DDName.name(), Level1TriggerScalers.name(), FWPhysicsObjectDesc.name(), Mapper::definition< ScannerT >.name, EcalLogicID.name, edm::EventTime.name(), cond::persistency::GLOBAL_TAG_MAP::LABEL.name, L1GctEtMiss.name(), L1GctJetCounts.name(), cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, ExpressionHisto< T >.name, ModifyObjectValueBase.name(), cond::persistency::GTEditor.name(), McSelector.name, edm::eventsetup::heterocontainer::HCTypeTag.name(), L1GctHtMiss.name(), python.rootplot.utilities.Hist2D.name, RecoSelector.name, SensitiveDetector.name, edm::eventsetup::EventSetupRecordKey.name(), edm::TypeIDBase.name(), XMLProcessor::_loaderBaseConfig.name, DQMGenericClient::ProfileOption.name, Entry.name(), DCCTBBlockPrototype.name(), cond::persistency::PAYLOAD::HASH.name, TreeCrawler.Package.name, L1GctEmCand.name(), CaloTrkProcessing::Detector.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, fwlite::Record.name(), L1TriggerRates.name(), cond::persistency::PAYLOAD::DATA.name, DDValue.name(), FWViewEnergyScale.name(), PrintGeomInfoAction.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, cond::persistency::PAYLOAD::VERSION.name, MagGeoBuilderFromDDD::volumeHandle.name, HcalBaseDQClient.name(), edm::eventsetup::SourceMakerTraits.name(), cond::persistency::PAYLOAD::INSERTION_TIME.name, L1GtPatternLine.name(), PrintGeomMatInfo.name, DQMGenericClient::NormOption.name, SimpleL1MuGMTCand.name(), edm::TRandomAdaptor.name(), Level1TriggerRates.name(), ora::PoolMainTable.name(), OpticalObject.name(), egHLT::MonElemContainer< T >.name(), ora::Container.name(), ora::OraMappingVersionTable.name(), L1AcceptBunchCrossing.name(), ora::Record.name(), options.ConnectionHLTMenu.name, edm::Path.name(), DQMGenericClient::CDOption.name, FastHFShowerLibrary.name, ora::DatabaseContainer.name(), edm::eventsetup::DataKey.name(), h4DSegm.name, cond::TagInfo_t.name, L1MuDTTrack.name(), PhysicsTools::Calibration::Variable.name, CSCIndexerBase.name(), PhysicsTools::Variable::Value.name, FWGeometryTableManagerBase::NodeInfo.name(), looper.Looper.name, L1MuGMTCand.name(), DcsStatus.name(), EDMtoMEConverter.name, FWViewType.name(), ProcTMVA::Method.name, HLTPerformanceInfo::Path.name(), TreeSaver::Var.name, DDBase< N, C >.name(), Vispa.Gui.PortWidget.PortWidget.name(), python.rootplot.tree2hists.Plot.name, config.Analyzer.name, MEtoEDM< T >::MEtoEDMObject.name, ora::PoolSequenceTable.name(), cond::persistency::IOV::TAG_NAME.name, ora::OraMappingElementTable.name(), cond::persistency::IOV::SINCE.name, DDNameInterface.name(), cond::persistency::IOV::PAYLOAD_HASH.name, PhysicsTools::TreeReader::Value.name, cond::persistency::IOV::INSERTION_TIME.name, edm::eventsetup::LooperMakerTraits.name(), cond::persistency::GTProxy.name(), MuonGeometrySanityCheckPoint.name, PhysicsTools::TrainProcessor.name, edm::TriggerResults.name(), pat::TriggerCondition.name(), CutApplicatorBase.name(), edm::TypeWithDict.name(), Measurement.name(), TotemSD.name, config.Service.name, L1GObject.name(), ora::PoolMappingVersionTable.name(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.name, HistoData.name, PhysicsTools::ProcessRegistry< Base_t, CalibBase_t, Parent_t >.name, utils.StatisticalTest.name, pat::TriggerAlgorithm.name(), FWEventItem.name(), core.autovars.NTupleSubObject.name, GeometricDetExtra.name(), ora::OraContainerHeaderTable.name(), PhysicsTools::MVATrainer.name, pat::TriggerPath.name(), core.autovars.NTupleObject.name, h2DSegm.name, python.rootplot.utilities.Hist.name, VIDSelectorBase.VIDSelectorBase.name(), options.HLTProcessOptions.name, ora::PoolMappingElementTable.name(), BscSD.name, IntegratedCalibrationBase.name(), ora::OraClassVersionTable.name(), DQMNet::WaitObject.name, Folder.name(), AlpgenParameterName.name, cscdqm::Address.name(), SiStripMonitorDigi.name, core.autovars.NTupleCollection.name, FP420SD.name, cond::persistency::TAG_MIGRATION::SOURCE_ACCOUNT.name, cond::persistency::TAG_MIGRATION::SOURCE_TAG.name, cond::persistency::TAG_MIGRATION::TAG_NAME.name, GeometricDet.name(), cond::persistency::TAG_MIGRATION::STATUS_CODE.name, cond::persistency::TAG_MIGRATION::INSERTION_TIME.name, VersionedSelector< T >.name(), public_plots_tools.ColorScheme.name, ora::PoolContainerHeaderTable.name(), PhysicsTools::Variable.name, HRes1DHit.name, PhysicsTools::TrainerMonitoring::Object.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, ora::PoolClassVersionTable.name(), cond::persistency::PAYLOAD_MIGRATION::INSERTION_TIME.name, conddblib.Tag.name, ora::OraNamingServiceTable.name(), utils.KS.name, conddblib.GlobalTag.name, ora::CondMetadataTable.name(), utils.Chi2.name, pos::PixelAliasList.name(), utils_v2.StatisticalTest.name, utils.BinToBin.name, HEff1DHit.name, utils_v2.KolmogorovTest.name, plotscripts.SawTeethFunction.name, dirstructure.Comparison.name, utils_v2.Chi2Test.name, @16817::Id.name, dqm_interfaces.DirID.name, utils.BinToBin1percent.name, FastTimerService::ProcessDescription.name, python.rootplot.utilities.RootFile.name, Vispa.Views.PropertyView.Property.name(), hTMaxCell.name, HRes2DHit.name, cscdqm::ParHistoDef.name, dqm_interfaces.DirWalkerFile.name, BeautifulSoup.Tag.name, @16813::Id.name, HEff2DHit.name, dataset.Dataset.name(), TiXmlAttribute.name, BeautifulSoup.SoupStrainer.name, HRes4DHit.name, HEff4DHit.name, and VIDSelectorBase.process_pset().

83 
84  def initialize(self,pythonpset):
85  if( self.__initialized ):
86  print 'VID Selector is already initialized, doing nothing!'
87  return
88  del process.__instance
89  if hasattr(pythonpset,'isPOGApproved'):
90  approved = pythonpset.isPOGApproved.value()
91  if not approved:
92  sys.stderr.write('This ID is not POG approved and likely under development!!!!\n')
93  sys.stderr.write('Please make sure to report your progress with this ID'\
94  ' at the next relevant POG meeting.\n')
95  del pythonpset.isPOGApproved
96  else:
97  sys.stderr.write('This ID is not POG approved and likely under development!!!!\n')
98  sys.stderr.write('Please make sure to report your progress with this ID'\
99  ' at the next relevant POG meeting.\n')
100  self.__instance = process_pset( self.__selectorBuilder, pythonpset )
101  expectedmd5 = central_id_registry.getMD5FromName(pythonpset.idName)
102  if expectedmd5 != self.md5String():
103  sys.stderr.write("ID: %s\n"%self.name())
104  sys.stderr.write("The expected md5: %s does not match the md5\n"%expectedmd5)
105  sys.stderr.write("calculated by the ID: %s please\n"%self.md5String())
106  sys.stderr.write("update your python configuration or determine the source\n")
107  sys.stderr.write("of transcription error!\n")
108  self.__initialized = True
if(conf.exists("allCellsPositionCalc"))
def VIDSelectorBase.VIDSelectorBase.md55Raw (   self)

Definition at line 127 of file VIDSelectorBase.py.

128  def md55Raw(self):
129  return self.__instance.md55Raw()
def VIDSelectorBase.VIDSelectorBase.md5String (   self)

Definition at line 124 of file VIDSelectorBase.py.

Referenced by VIDSelectorBase.VIDSelectorBase.initialize().

125  def md5String(self):
126  return self.__instance.md5String()
def VIDSelectorBase.VIDSelectorBase.name (   self)

Definition at line 118 of file VIDSelectorBase.py.

Referenced by cuy.divideElement.__init__(), cuy.plotElement.__init__(), cuy.additionElement.__init__(), cuy.superimposeElement.__init__(), cuy.graphElement.__init__(), config.CFG.__str__(), and VIDSelectorBase.VIDSelectorBase.initialize().

119  def name(self):
120  return self.__instance.name()

Member Data Documentation

VIDSelectorBase.VIDSelectorBase.__initialized
private

Definition at line 38 of file VIDSelectorBase.py.

Referenced by VIDSelectorBase.VIDSelectorBase.initialize().

VIDSelectorBase.VIDSelectorBase.__instance
private

Definition at line 43 of file VIDSelectorBase.py.

Referenced by VIDSelectorBase.VIDSelectorBase.__call__(), VIDSelectorBase.VIDSelectorBase.__repr__(), and VIDSelectorBase.VIDSelectorBase.initialize().

VIDSelectorBase.VIDSelectorBase.__printer
private

Definition at line 40 of file VIDSelectorBase.py.

Referenced by VIDSelectorBase.VIDSelectorBase.__repr__().

VIDSelectorBase.VIDSelectorBase.__ptrMaker
private

Definition at line 41 of file VIDSelectorBase.py.

Referenced by VIDSelectorBase.VIDSelectorBase.__call__().

VIDSelectorBase.VIDSelectorBase.__selectorBuilder
private

Definition at line 42 of file VIDSelectorBase.py.

Referenced by VIDSelectorBase.VIDSelectorBase.initialize().

VIDSelectorBase.VIDSelectorBase.__suffix
private

Definition at line 39 of file VIDSelectorBase.py.