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, entry.name, average.Average.name, histograms.Histograms.name, RPCGeomServ.name(), SymmetryFit.name(), cond::persistency::TAG::NAME.name, TmModule.name, core.autovars.NTupleVariable.name, cond::persistency::GLOBAL_TAG::NAME.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::GLOBAL_TAG::DESCRIPTION.name, cond::persistency::TAG::OBJECT_TYPE.name, SterneBinomialInterval.name(), FeldmanCousinsBinomialInterval.name(), preexistingValidation.PreexistingValidation.name, cond::persistency::GLOBAL_TAG::RELEASE.name, ora::RecordSpecImpl::Item.name, cond::persistency::TAG::SYNCHRONIZATION.name, AxesNames.name(), cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, ExpressionEvaluatorCut.name(), cond::persistency::TAG::END_OF_VALIDITY.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, GeomDetType.name(), cond::persistency::TAG::DESCRIPTION.name, ora::NamedReference.name(), cond::persistency::GTEditorData.name, edm::ModuleTime.name(), DDSolidShapesName.name(), edm::service::NamedDestination.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(), dataset.BaseDataset.name, ClopperPearsonBinomialInterval.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(), ParameterSet.name, EventSelector.name(), PixelDCSObject< class >::Item.name, FileData.name(), PacketData.name(), PreliminaryFit.name(), DDAxesNames.name(), LossFunction.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(), ALIFileOut.name(), alignment.Alignment.name, PixelBarrelNameUpgrade.name(), DDI::rep_type< N, I >.name(), DCCTBDataField.name(), RHStopTracer::StopPoint.name, ParSet.name, o2o.O2OJob.name, MuonSubDetector.name(), citk::IsolationConeDefinitionBase.name(), CSCChannelMapperPostls1.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(), rpcrawtodigi::DataRecord.name(), BeamSpotOnline.name(), SingleObjectCondition.name, EgHLTOfflineSummaryClient::SumHistBinData.name, CSCChannelMapperStartup.name(), PhysicsTools::Source.name, DQMGenericClient::EfficOption.name, XMLHTRZeroSuppressionLoader::_loaderBaseConfig.name, pos::PixelDACScanRange.name(), XMLRBXPedestalsLoader::_loaderBaseConfig.name, core.autovars.NTupleObjectType.name, cond::persistency::GTProxyData.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, DDName.name(), cond::TimeTypeSpecs.name, lumi::TriggerInfo.name, pos::PixelROCMaskBits.name(), CSCChannelMapperBase.name(), LumiScalers.name(), L1TriggerScalers.name(), PrintMaterialBudgetInfo.name, TransformFunction.name(), edm::PathSummary.name, ALIFileIn.name(), CSCIndexerPostls1.name(), ora::OraSequenceTable.name(), L1GctJetCand.name(), cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, PixelEndcapLinkMaker::Item.name, pos::PixelROCTrimBits.name(), perftools::EdmEventSize::BranchRecord.name, FWTableViewManager::TableEntry.name, hcaldqm::quantity::Quantity.name(), cond::persistency::GLOBAL_TAG_MAP::RECORD.name, reco::NamedCompositeCandidate.name(), PixelBarrelLinkMaker::Item.name, Level1TriggerScalers.name(), Mapper::definition< ScannerT >.name, FWPhysicsObjectDesc.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, BPhysicsSpectrum.name, cond::persistency::GTEditor.name(), ExpressionHisto< T >.name, XMLProcessor::_loaderBaseConfig.name, python.rootplot.utilities.Hist2D.name, edm::eventsetup::heterocontainer::HCTypeTag.name(), SensitiveDetector.name, L1GctHtMiss.name(), edm::TypeIDBase.name(), DCCTBBlockPrototype.name(), DQMGenericClient::ProfileOption.name, edm::eventsetup::EventSetupRecordKey.name(), Entry.name(), TreeCrawler.Package.name, cond::persistency::PAYLOAD::HASH.name, L1GctEmCand.name(), L1TriggerRates.name(), CaloTrkProcessing::Detector.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, fwlite::Record.name(), cond::persistency::PAYLOAD::DATA.name, PrintGeomInfoAction.name, FWViewEnergyScale.name(), DDValue.name(), cond::persistency::PAYLOAD::STREAMER_INFO.name, options.ConnectionHLTMenu.name, cond::persistency::PAYLOAD::VERSION.name, MagGeoBuilderFromDDD::volumeHandle.name, edm::eventsetup::SourceMakerTraits.name(), L1GtPatternLine.name(), cond::persistency::PAYLOAD::INSERTION_TIME.name, PrintGeomMatInfo.name, DQMGenericClient::NormOption.name, SimpleL1MuGMTCand.name(), ora::PoolMainTable.name(), edm::TRandomAdaptor.name(), Level1TriggerRates.name(), ora::OraMappingVersionTable.name(), egHLT::MonElemContainer< T >.name(), OpticalObject.name(), ora::Container.name(), Node.name, L1AcceptBunchCrossing.name(), HcalBaseDQClient.name(), LeastSquares.name(), ora::Record.name(), edm::Path.name(), DQMGenericClient::CDOption.name, ora::DatabaseContainer.name(), edm::eventsetup::DataKey.name(), FastHFShowerLibrary.name, h4DSegm.name, L1MuDTTrack.name(), PhysicsTools::Calibration::Variable.name, CSCIndexerBase.name(), PhysicsTools::Variable::Value.name, L1MuGMTCand.name(), FWGeometryTableManagerBase::NodeInfo.name(), DcsStatus.name(), ModifyObjectValueBase.name(), cond::TagInfo_t.name, CounterChecker.name, L1MuBMTrack.name(), FWViewType.name(), EDMtoMEConverter.name, HLTPerformanceInfo::Path.name(), ProcTMVA::Method.name, looper.Looper.name, TreeSaver::Var.name, DDNameInterface.name(), BPhysicsValidation::ParticleMonitor.name, DDBase< N, C >.name(), python.rootplot.tree2hists.Plot.name, Vispa.Gui.PortWidget.PortWidget.name(), MEtoEDM< T >::MEtoEDMObject.name, ora::PoolSequenceTable.name(), cond::persistency::IOV::TAG_NAME.name, TrackerSectorStruct.name, ora::OraMappingElementTable.name(), cond::persistency::IOV::SINCE.name, cond::persistency::IOV::PAYLOAD_HASH.name, PhysicsTools::TreeReader::Value.name, cond::persistency::IOV::INSERTION_TIME.name, BPhysicsValidation.name, edm::eventsetup::LooperMakerTraits.name(), cond::persistency::GTProxy.name(), edm::TriggerResults.name(), MuonGeometrySanityCheckPoint.name, PhysicsTools::TrainProcessor.name, pat::TriggerCondition.name(), CutApplicatorBase.name(), DetGeomDesc.name(), edm::TypeWithDict.name(), Measurement.name(), FastTimerSD.name, BHMSD.name, L1GObject.name(), TotemSD.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(), AbsoluteDeviation.name(), VIDSelectorBase.VIDSelectorBase.name(), config.Analyzer.name, BscSD.name, IntegratedCalibrationBase.name(), core.autovars.NTupleSubObject.name, ora::OraClassVersionTable.name(), DQMNet::WaitObject.name, AlpgenParameterName.name, Folder.name(), hcaldqm::quantity::FlagQuantity.name(), cscdqm::Address.name(), SiStripMonitorDigi.name, core.autovars.NTupleObject.name, FP420SD.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, GeometricDet.name(), cond::persistency::TAG_LOG::COMMAND.name, cond::persistency::TAG_LOG::ACTION.name, cond::persistency::TAG_LOG::USER_TEXT.name, VersionedSelector< T >.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, hcaldqm::quantity::LumiSection.name(), Huber.name(), ora::PoolClassVersionTable.name(), ora::OraNamingServiceTable.name(), conddblib.Tag.name, hcaldqm::quantity::RunNumber.name(), utils.KS.name, conddblib.GlobalTag.name, ora::CondMetadataTable.name(), PercentErrorSquared.name(), hcaldqm::quantity::EventNumber.name(), utils.Chi2.name, personalPlayback.FrameworkJob.name, pos::PixelAliasList.name(), utils_v2.StatisticalTest.name, utils.BinToBin.name, HEff1DHit.name, plotscripts.SawTeethFunction.name, utils_v2.KolmogorovTest.name, dirstructure.Comparison.name, utils_v2.Chi2Test.name, @17537::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, @17533::Id.name, HEff2DHit.name, dataset.Dataset.name(), TiXmlAttribute.name, BeautifulSoup.SoupStrainer.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().