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 35 of file VIDSelectorBase.py.

Constructor & Destructor Documentation

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

Definition at line 36 of file VIDSelectorBase.py.

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

Member Function Documentation

def VIDSelectorBase.VIDSelectorBase.__call__ (   self,
  args 
)

Definition at line 67 of file VIDSelectorBase.py.

References VIDCutFlowResult.VIDCutFlowResult.__instance, VIDSelectorBase.VIDSelectorBase.__instance, VIDSelectorBase.VIDSelectorBase.__ptrMaker, reco.if(), and join().

67 
68  def __call__(self,*args):
69  if( len(args) == 1 ):
70  return self.__instance(*args)
71  if( len(args) == 2 and isinstance(args[1],DataFormats.FWLite.Events) ):
72  return self.__instance(args[0],args[1].object().event())
73  elif( len(args) == 2 and type(args[1]) is int ):
74  temp = self.__ptrMaker(args[0],args[1])
75  newargs = [temp]
76  return self.__instance(*newargs)
77  if( len(args) == 3 and type(args[1]) is int and isinstance(args[2], DataFormats.FWLite.Events) ):
78  temp = self.__ptrMaker(args[0],args[1])
79  newargs = [temp]
80  newargs += [args[2].object().event()]
81  return self.__instance(*newargs)
82  raise ValueError('VIDSelectorBase __call__ with args: "%s" is not a valid call pattern'%(','.join([repr(arg) for arg in args])))
83 
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
if(dp >Float(M_PI)) dp-
Definition: event.py:1
def VIDSelectorBase.VIDSelectorBase.__repr__ (   self)

Definition at line 131 of file VIDSelectorBase.py.

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

def VIDSelectorBase.VIDSelectorBase.bitMap (   self)

Definition at line 122 of file VIDSelectorBase.py.

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

Definition at line 113 of file VIDSelectorBase.py.

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

Definition at line 110 of file VIDSelectorBase.py.

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

Definition at line 116 of file VIDSelectorBase.py.

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

Definition at line 84 of file VIDSelectorBase.py.

References VIDSelectorBase.VIDSelectorBase.__initialized, VIDCutFlowResult.VIDCutFlowResult.__instance, VIDSelectorBase.VIDSelectorBase.__instance, VIDSelectorBase.VIDSelectorBase.__selectorBuilder, VIDSelectorBase.VIDSelectorBase.__suffix, reco.if(), VIDSelectorBase.VIDSelectorBase.md5String(), VersionedSelector< T >.md5String(), ElectronMVAID.ElectronMVAID.name, OAQualityTranslator.name(), counter.Counter.name, average.Average.name, entry.name, histograms.Histograms.name, geometrydata.GeometryData.name, RPCGeomServ.name(), SymmetryFit.name(), cond::persistency::GLOBAL_TAG::NAME.name, cond::persistency::TAG::NAME.name, TmModule.name, core.autovars.NTupleVariable.name, cond::persistency::GLOBAL_TAG::VALIDITY.name, CmsTrackerStringToEnum.name(), candidate_functions::CandidateCut.name(), cond::persistency::TAG::TIME_TYPE.name, listHistos.plotInfo.name, cond::persistency::GLOBAL_TAG::DESCRIPTION.name, genericValidation.GenericValidation.name, FeldmanCousinsBinomialInterval.name(), SterneBinomialInterval.name(), cond::persistency::TAG::OBJECT_TYPE.name, ora::RecordSpecImpl::Item.name, cond::persistency::GLOBAL_TAG::RELEASE.name, preexistingValidation.PreexistingValidation.name, cond::persistency::TAG::SYNCHRONIZATION.name, AxesNames.name(), cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, MEPSet.name, ExpressionEvaluatorCut.name(), cond::persistency::TAG::END_OF_VALIDITY.name, cond::persistency::GTEditorData.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, GeomDetType.name(), cond::persistency::TAG::DESCRIPTION.name, ora::NamedReference.name(), edm::ModuleTime.name(), DDSolidShapesName.name(), edm::service::NamedDestination.name(), FWTGeoRecoGeometry::Info.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, Types._Untracked.name, cond::persistency::TAG::INSERTION_TIME.name, dataset.BaseDataset.name, cond::persistency::TAG::MODIFICATION_TIME.name, ora::OraMainTable.name(), ClopperPearsonBinomialInterval.name(), OutputMEPSet.name, PixelModuleName.name(), edm::BaseWithDict.name(), personalPlayback.Applet.name, HistoDef.name(), ora::IDatabaseTable.name(), production_tasks.Task.name, fit::RootMinuitCommand.name, edm::MemberWithDict.name(), ExpressionEvaluatorCutWithEventContent.name(), EventSelector.name(), ParameterSet.name, FileData.name(), PacketData.name(), PixelDCSObject< class >::Item.name, PreliminaryFit.name(), DDAxesNames.name(), L1TLossFunction.name(), pos::PixelConfigAlias.name(), analyzer.Analyzer.name, DQMRivetClient::LumiOption.name, MagCylinder.name, rpcrawtodigi::ReadoutError.name(), CharmTagger::MVAVar.name, HcalForwardLibWriter::FileHandle.name, RPCLinkSynchroStat::LinkBoard.name(), PFTauMVAInputDiscriminantTranslator::DiscriminantInfo.name, PrintSensitive.name, JetResolution.name(), alignment.Alignment.name, ALIFileOut.name(), PixelBarrelNameUpgrade.name(), DDI::rep_type< N, I >.name(), DCCTBDataField.name(), RHStopTracer::StopPoint.name, ParSet.name, MuonSubDetector.name(), citk::IsolationConeDefinitionBase.name(), CSCChannelMapperPostls1.name(), rpcrawtodigi::DataRecord.name(), PixelEndcapNameUpgrade.name(), edm::FunctionWithDict.name(), pat::helper::OverlapTest.name(), runEdmFileComparison.EdmObject.name, DQMRivetClient::ScaleFactorOption.name, reco::ElectronSeed.name(), HLTPerformanceInfo::Module.name(), L1GctEtHad.name(), L1GctEtTotal.name(), BeamSpotOnline.name(), SingleObjectCondition.name, EgHLTOfflineSummaryClient::SumHistBinData.name, CSCChannelMapperStartup.name(), DQMGenericClient::EfficOption.name, cond::persistency::GTProxyData.name, PhysicsTools::Source.name, o2o.O2OJob.name, OmtfName.name(), pos::PixelDACScanRange.name(), XMLHTRZeroSuppressionLoader::_loaderBaseConfig.name, XMLRBXPedestalsLoader::_loaderBaseConfig.name, core.autovars.NTupleObjectType.name, PixelEndcapName.name(), SummaryGenerator.name(), MyWatcher.name, L1GctInternEmCand.name(), FWParameterBase.name(), edm::eventsetup::ModuleMakerTraits.name(), edm::PathTimingSummary.name, OpticalAlignParam.name(), PixelBarrelName.name(), BinomialInterval.name(), CSCIndexerStartup.name(), reco::CompositeCandidate.name(), dirstructure.Weighted.name, LumiScalers.name(), DDName.name(), cond::TimeTypeSpecs.name, lumi::TriggerInfo.name, pos::PixelROCMaskBits.name(), CSCChannelMapperBase.name(), L1TriggerScalers.name(), PrintMaterialBudgetInfo.name, ALIFileIn.name(), edm::PathSummary.name, CSCIndexerPostls1.name(), L1GctJetCand.name(), ora::OraSequenceTable.name(), TransformFunction.name(), cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, pos::PixelROCTrimBits.name(), PixelEndcapLinkMaker::Item.name, perftools::EdmEventSize::BranchRecord.name, FWTableViewManager::TableEntry.name, hcaldqm::quantity::Quantity.name(), cond::persistency::GLOBAL_TAG_MAP::RECORD.name, PixelBarrelLinkMaker::Item.name, reco::NamedCompositeCandidate.name(), Level1TriggerScalers.name(), FWPhysicsObjectDesc.name(), Mapper::definition< ScannerT >.name, EcalLogicID.name, edm::EventTime.name(), L1GctJetCounts.name(), cond::persistency::GLOBAL_TAG_MAP::LABEL.name, L1GctEtMiss.name(), BPhysicsSpectrum.name, cond::persistency::GTEditor.name(), cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, ExpressionHisto< T >.name, python.rootplot.utilities.Hist2D.name, edm::eventsetup::heterocontainer::HCTypeTag.name(), XMLProcessor::_loaderBaseConfig.name, SensitiveDetector.name, L1GctHtMiss.name(), DCCTBBlockPrototype.name(), edm::TypeIDBase.name(), L1GctEmCand.name(), DQMGenericClient::ProfileOption.name, Entry.name(), TreeCrawler.Package.name, edm::eventsetup::EventSetupRecordKey.name(), cond::persistency::PAYLOAD::HASH.name, L1TriggerRates.name(), CaloTrkProcessing::Detector.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, fwlite::Record.name(), cond::persistency::PAYLOAD::DATA.name, DDValue.name(), FWViewEnergyScale.name(), PrintGeomInfoAction.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, MagGeoBuilderFromDDD::volumeHandle.name, cond::persistency::PAYLOAD::VERSION.name, edm::eventsetup::SourceMakerTraits.name(), PrintGeomMatInfo.name, L1GtPatternLine.name(), options.ConnectionHLTMenu.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, SimpleL1MuGMTCand.name(), DQMGenericClient::NormOption.name, Level1TriggerRates.name(), edm::TRandomAdaptor.name(), ora::PoolMainTable.name(), egHLT::MonElemContainer< T >.name(), OpticalObject.name(), ora::Container.name(), ora::OraMappingVersionTable.name(), emtf::Node.name, L1AcceptBunchCrossing.name(), HcalBaseDQClient.name(), LeastSquares.name(), ora::Record.name(), edm::Path.name(), DQMGenericClient::CDOption.name, ora::DatabaseContainer.name(), DeepFlavourJetTagsProducer::MVAVar.name, edm::eventsetup::DataKey.name(), FastHFShowerLibrary.name, h4DSegm.name, PhysicsTools::Variable::Value.name, L1MuDTTrack.name(), PhysicsTools::Calibration::Variable.name, CSCIndexerBase.name(), L1MuGMTCand.name(), FWGeometryTableManagerBase::NodeInfo.name(), DcsStatus.name(), cond::TagInfo_t.name, ModifyObjectValueBase.name(), CounterChecker.name, L1MuBMTrack.name(), EDMtoMEConverter.name, FWViewType.name(), looper.Looper.name, ProcTMVA::Method.name, HLTPerformanceInfo::Path.name(), TreeSaver::Var.name, DDNameInterface.name(), BPhysicsValidation::ParticleMonitor.name, DDBase< N, C >.name(), Vispa.Gui.PortWidget.PortWidget.name(), python.rootplot.tree2hists.Plot.name, MEtoEDM< T >::MEtoEDMObject.name, ora::PoolSequenceTable.name(), cond::persistency::IOV::TAG_NAME.name, TrackerSectorStruct.name, cond::persistency::IOV::SINCE.name, ora::OraMappingElementTable.name(), cond::persistency::IOV::PAYLOAD_HASH.name, PhysicsTools::TreeReader::Value.name, cond::persistency::IOV::INSERTION_TIME.name, cond::persistency::GTProxy.name(), BPhysicsValidation.name, classes.MonitorData.name, edm::eventsetup::LooperMakerTraits.name(), MuonGeometrySanityCheckPoint.name, PhysicsTools::TrainProcessor.name, edm::TriggerResults.name(), pat::TriggerCondition.name(), CutApplicatorBase.name(), DetGeomDesc.name(), edm::TypeWithDict.name(), Measurement.name(), BHMSD.name, FastTimerSD.name, L1GObject.name(), TotemSD.name, classes.OutputData.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(), GeometricDetExtra.name(), ora::OraContainerHeaderTable.name(), PhysicsTools::MVATrainer.name, options.HLTProcessOptions.name, pat::TriggerPath.name(), h2DSegm.name, python.rootplot.utilities.Hist.name, ora::PoolMappingElementTable.name(), VIDSelectorBase.VIDSelectorBase.name(), AbsoluteDeviation.name(), config.Analyzer.name, BscSD.name, IntegratedCalibrationBase.name(), core.autovars.NTupleSubObject.name, ora::OraClassVersionTable.name(), DQMNet::WaitObject.name, Folder.name(), AlpgenParameterName.name, cscdqm::Address.name(), SiStripMonitorDigi.name, core.autovars.NTupleObject.name, FP420SD.name, geometry.Structure.name, hcaldqm::quantity::FlagQuantity.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, GeometricDet.name(), cond::persistency::TAG_LOG::ACTION.name, VersionedSelector< T >.name(), cond::persistency::TAG_LOG::USER_TEXT.name, config.Service.name, public_plots_tools.ColorScheme.name, ora::PoolContainerHeaderTable.name(), PhysicsTools::Variable.name, BasicHepMCValidation::ParticleMonitor.name, HRes1DHit.name, PhysicsTools::TrainerMonitoring::Object.name, core.autovars.NTupleCollection.name, FastTimerService::LuminosityDescription.name, Huber.name(), ora::PoolClassVersionTable.name(), hcaldqm::quantity::LumiSection.name(), ora::OraNamingServiceTable.name(), utils.KS.name, hcaldqm::quantity::RunNumber.name(), ora::CondMetadataTable.name(), PercentErrorSquared.name(), utils.Chi2.name, hcaldqm::quantity::EventNumber.name(), personalPlayback.FrameworkJob.name, pos::PixelAliasList.name(), hcaldqm::quantity::EventType.name(), utils_v2.StatisticalTest.name, utils.BinToBin.name, HEff1DHit.name, utils_v2.KolmogorovTest.name, plotscripts.SawTeethFunction.name, dirstructure.Comparison.name, utils_v2.Chi2Test.name, @17803::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, @17799::Id.name, HEff2DHit.name, SummaryOutputProducer::GenericSummary.name, TiXmlAttribute.name, BeautifulSoup.SoupStrainer.name, dataset.Dataset.name(), HRes4DHit.name, HEff4DHit.name, and VIDSelectorBase.process_pset().

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

Definition at line 128 of file VIDSelectorBase.py.

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

Definition at line 125 of file VIDSelectorBase.py.

Referenced by VIDSelectorBase.VIDSelectorBase.initialize().

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

Definition at line 119 of file VIDSelectorBase.py.

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

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

Member Data Documentation

VIDSelectorBase.VIDSelectorBase.__initialized
private

Definition at line 37 of file VIDSelectorBase.py.

Referenced by VIDSelectorBase.VIDSelectorBase.initialize().

VIDSelectorBase.VIDSelectorBase.__instance
private

Definition at line 42 of file VIDSelectorBase.py.

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

VIDSelectorBase.VIDSelectorBase.__printer
private

Definition at line 39 of file VIDSelectorBase.py.

Referenced by VIDSelectorBase.VIDSelectorBase.__repr__().

VIDSelectorBase.VIDSelectorBase.__ptrMaker
private

Definition at line 40 of file VIDSelectorBase.py.

Referenced by VIDSelectorBase.VIDSelectorBase.__call__().

VIDSelectorBase.VIDSelectorBase.__selectorBuilder
private

Definition at line 41 of file VIDSelectorBase.py.

Referenced by VIDSelectorBase.VIDSelectorBase.initialize().

VIDSelectorBase.VIDSelectorBase.__suffix
private

Definition at line 38 of file VIDSelectorBase.py.

Referenced by VIDSelectorBase.VIDSelectorBase.initialize().