CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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
 
 __ptrMaker
 
 __selectorBuilder
 
 __suffix
 

Detailed Description

Definition at line 64 of file VIDSelectorBase.py.

Constructor & Destructor Documentation

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

Definition at line 65 of file VIDSelectorBase.py.

65 
66  def __init__(self, vidSelectorBuilder, ptrMaker, pythonpset = None):
67  self.__initialized = False
69  self.__ptrMaker = ptrMaker
70  self.__selectorBuilder = vidSelectorBuilder()
71  self.__instance = None
72  if pythonpset is not None:
73  if hasattr(pythonpset,'isPOGApproved'):
74  approved = pythonpset.isPOGApproved.value()
75  if not approved:
76  sys.stderr.write('This ID is not POG approved and likely under development!!!!\n')
77  sys.stderr.write('Please make sure to report your progress with this ID'\
78  ' at the next relevant POG meeting.\n')
79  del pythonpset.isPOGApproved
80  else:
81  sys.stderr.write('This ID is not POG approved and likely under development!!!!\n')
82  sys.stderr.write('Please make sure to report your progress with this ID'\
83  ' at the next relevant POG meeting.\n')
84  self.__instance = process_pset( self.__selectorBuilder, pythonpset, self.__suffix )
85  expectedmd5 = central_id_registry.getMD5FromName(pythonpset.idName)
86  if expectedmd5 != self.md5String():
87  sys.stderr.write("ID: %s\n"%self.name())
88  sys.stderr.write("The expected md5: %s does not match the md5\n"%expectedmd5)
89  sys.stderr.write("calculated by the ID: %s please\n"%self.md5String())
90  sys.stderr.write("update your python configuration or determine the source\n")
91  sys.stderr.write("of transcription error!\n")
92  self.__initialized = True
93  else:
94  self.__instance = self.__selectorBuilder()

Member Function Documentation

def VIDSelectorBase.VIDSelectorBase.__call__ (   self,
  args 
)

Definition at line 95 of file VIDSelectorBase.py.

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

95 
96  def __call__(self,*args):
97  if( len(args) == 1 ):
98  return self.__instance(*args)
99  if( len(args) == 2 and isinstance(args[1],DataFormats.FWLite.Events) ):
100  return self.__instance(args[0],args[1].object().event())
101  elif( len(args) == 2 and isinstance(args[1], int) ):
102  temp = self.__ptrMaker(args[0],args[1])
103  newargs = [temp]
104  return self.__instance(*newargs)
105  if( len(args) == 3 and isinstance(args[1], int) and isinstance(args[2], DataFormats.FWLite.Events) ):
106  temp = self.__ptrMaker(args[0],args[1])
107  newargs = [temp]
108  newargs += [args[2].object().event()]
109  return self.__instance(*newargs)
110  raise ValueError('VIDSelectorBase __call__ with args: "%s" is not a valid call pattern'%(','.join([repr(arg) for arg in args])))
111 
if(conf_.getParameter< bool >("UseStripCablingDB"))
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
Definition: event.py:1
def VIDSelectorBase.VIDSelectorBase.__repr__ (   self)

Definition at line 159 of file VIDSelectorBase.py.

160  def __repr__(self):
161  out = ROOT.std.stringstream()
162  self.__instance.print(out)
163  return out.str();
def VIDSelectorBase.VIDSelectorBase.bitMap (   self)

Definition at line 150 of file VIDSelectorBase.py.

151  def bitMap(self):
152  return self.__instance.bitMap()
def VIDSelectorBase.VIDSelectorBase.cutFlowResult (   self)

Definition at line 141 of file VIDSelectorBase.py.

142  def cutFlowResult(self):
143  return VIDCutFlowResult(self.__instance.cutFlowResult())
def VIDSelectorBase.VIDSelectorBase.cutFlowSize (   self)

Definition at line 138 of file VIDSelectorBase.py.

139  def cutFlowSize(self):
140  return self.__instance.cutFlowSize()
def VIDSelectorBase.VIDSelectorBase.howFarInCutFlow (   self)

Definition at line 144 of file VIDSelectorBase.py.

145  def howFarInCutFlow(self):
146  return self.__instance.howFarInCutFlow()
def VIDSelectorBase.VIDSelectorBase.initialize (   self,
  pythonpset 
)

Definition at line 112 of file VIDSelectorBase.py.

References VIDSelectorBase.VIDSelectorBase.__initialized, VIDCutFlowResult.VIDCutFlowResult.__instance, VIDSelectorBase.VIDSelectorBase.__instance, VIDSelectorBase.VIDSelectorBase.__selectorBuilder, VIDSelectorBase.VIDSelectorBase.__suffix, if(), VersionedSelector< T >.md5String(), VIDSelectorBase.VIDSelectorBase.md5String(), ElectronMVAID.ElectronMVAID.name, OAQualityTranslator.name(), RPCNameHelper.name(), AlignableObjectId::entry.name, average.Average.name, counter.Counter.name, SymmetryFit.name(), histograms.Histograms.name, RPCGeomServ.name(), cond::persistency::GTEditorData.name, cond::persistency::GLOBAL_TAG::NAME.name, cond::persistency::RUN_INFO::RUN_NUMBER.name, cond::persistency::TAG::NAME.name, FWLite.ElectronMVAID.name, TmModule.name, cond::persistency::GLOBAL_TAG::VALIDITY.name, cond::persistency::RUN_INFO::START_TIME.name, cond::persistency::TAG::TIME_TYPE.name, ExpressionEvaluatorCut.name(), cond::persistency::GLOBAL_TAG::DESCRIPTION.name, core.autovars.NTupleVariable.name, cond::persistency::RUN_INFO::END_TIME.name, CmsTrackerStringToEnum.name(), cond::persistency::TAG::OBJECT_TYPE.name, listHistos.plotInfo.name, DQMRivetClient::NormOption.name, cond::persistency::GLOBAL_TAG::RELEASE.name, HGCalAlgoWrapperBaseT< InputCollection, OutputCollection, Tparam >.name(), HGCalProcessorBaseT< InputCollection, OutputCollection >.name(), cond::persistency::TAG::SYNCHRONIZATION.name, edm::ModuleTime.name(), AxesNames.name(), cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, cond::persistency::TAG::END_OF_VALIDITY.name, MEPSet.name, cond::persistency::O2O_RUN::JOB_NAME.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, GeomDetType.name(), cms::dd::NameValuePair< T >.name, candidate_functions::CandidateCut.name(), ExpressionEvaluatorCutWithEventContent.name(), cond::persistency::TAG::DESCRIPTION.name, cond::persistency::O2O_RUN::START_TIME.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, cond::persistency::O2O_RUN::END_TIME.name, cond::persistency::TAG::INSERTION_TIME.name, FWTGeoRecoGeometry::Info.name, cond::persistency::O2O_RUN::STATUS_CODE.name, cond::persistency::TAG::MODIFICATION_TIME.name, ParameterSet.name, cond::persistency::O2O_RUN::LOG.name, nanoaod::MergeableCounterTable::SingleColumn< T >.name, cond::persistency::TAG::PROTECTION_CODE.name, preexistingValidation.PreexistingValidation.name, VariableBase.name(), OutputMEPSet.name, HistoDef.name(), PixelModuleName.name(), HGCalTriggerGeometryBase.name(), EventSelector.name(), DDAxesNames.name(), dataset.BaseDataset.name, PixelDCSObject< class >::Item.name, edm::BaseWithDict.name(), SummaryTableOutputBranches::NamedBranchPtr.name, AlignmentConstraint.name, FileData.name(), PacketData.name(), edm::MemberWithDict.name(), cms::dd::ValuePair< T, U >.name, personalPlayback.Applet.name, fit::RootMinuitCommand.name, JetResolution.name(), EventStringOutputBranches::NamedBranchPtr.name, HGCalTriggerNtupleBase.name(), OffsetAnalyzerDQM::Plot1D.name, Types._Untracked.name, EcalPulseCovariancesGPU.name(), EcalPulseShapesGPU.name(), RPCLinkSynchroStat::LinkBoard.name(), rpcrawtodigi::ReadoutError.name(), MagCylinder.name, analyzer.Analyzer.name, production_tasks.Task.name, emtf::LossFunction.name(), HcalForwardLibWriter::FileHandle.name, DQMRivetClient::LumiOption.name, EcalRechitADCToGeVConstantGPU.name(), EcalRechitChannelStatusGPU.name(), PixelBarrelNameUpgrade.name(), heppy::ParSet.name, citk::IsolationConeDefinitionBase.name(), ALIFileOut.name(), EcalGainRatiosGPU.name(), o2olib.O2OJob.name, cond::persistency::GTProxyData.name, PixelEndcapNameUpgrade.name(), DDFilteredView.name(), DDSolidShapesName.name(), PFJetAnalyzerDQM::Plot1DInBin.name, EcalIntercalibConstantsGPU.name(), EcalLaserAlphasGPU.name(), ecal::raw::ElectronicsMappingGPU.name(), EcalTimeCalibConstantsGPU.name(), HLTPerformanceInfo::Module.name(), L1GctEtHad.name(), L1GctEtTotal.name(), hcaldqm::quantity::Quantity.name(), MuonSubDetector.name(), EcalLaserAPDPNRatiosRefGPU.name(), EcalSamplesCorrelationGPU.name(), EcalTimeBiasCorrectionsGPU.name(), rpcrawtodigi::DataRecord.name(), BeamSpotOnline.name(), DDName.name(), LumiOutputBranches::NamedBranchPtr.name, TableOutputBranches::NamedBranchPtr.name, TriggerOutputBranches::NamedBranchPtr.name, CharmTagger::MVAVar.name, SingleObjectCondition.name, DQMRivetClient::ScaleFactorOption.name, EcalLaserAPDPNRatiosGPU.name(), EcalLinearCorrectionsGPU.name(), EcalPedestalsGPU.name(), HeavyIonCSVTagger::MVAVar.name, edm::FunctionWithDict.name(), EgHLTOfflineSummaryClient::SumHistBinData.name, edm::PathTimingSummary.name, L1GctInternEmCand.name(), L1TriggerScalers.name(), LumiScalers.name(), SummaryGenerator.name(), cms::DDAlgoArguments.name, pat::helper::OverlapTest.name(), RHStopTracer::StopPoint.name, runEdmFileComparison.EdmObject.name, CSCChannelMapperPostls1.name(), Barrel.name, PixelBarrelName.name(), DCCTBDataField.name(), OpticalAlignParam.name(), core.autovars.NTupleObjectType.name, DDI::rep_type< N, I >.name(), perftools::EdmEventSize::BranchRecord.name, cond::TimeTypeSpecs.name, FWParameterBase.name(), CSCChannelMapperStartup.name(), PixelEndcapName.name(), edm::eventsetup::ModuleMakerTraits.name(), Level1TriggerScalers.name(), edm::PathSummary.name, pos::PixelDACScanRange.name(), EcalLogicID.name, edm::EventTime.name(), CSCIndexerStartup.name(), alignment.Alignment.name, ALIFileIn.name(), L1GctJetCand.name(), edm::TypeIDBase.name(), lumi::TriggerInfo.name, reco::CompositeCandidate.name(), L1TriggerRates.name(), XMLProcessor::_loaderBaseConfig.name, FWPhysicsObjectDesc.name(), dirstructure.Weighted.name, PixelEndcapLinkMaker::Item.name, pos::PixelROCMaskBits.name(), L1GctJetCounts.name(), MEtoEDM< T >::MEtoEDMObject.name, DCCTBBlockPrototype.name(), edm::eventsetup::EventSetupRecordKey.name(), edm::eventsetup::heterocontainer::HCTypeTag.name(), OmtfName.name(), BPhysicsSpectrum.name, FWTableViewManager::TableEntry.name, pos::PixelROCTrimBits.name(), CSCIndexerPostls1.name(), reco::NamedCompositeCandidate.name(), L1GctEtMiss.name(), PixelBarrelLinkMaker::Item.name, CSCChannelMapperBase.name(), Level1TriggerRates.name(), cond::persistency::GTEditor.name(), L1GctEmCand.name(), L1GctHtMiss.name(), ExpressionHisto< T >.name, DQMGenericClient::EfficOption.name, Entry.name(), python.rootplot.utilities.Hist2D.name, edm::eventsetup::DataKey.name(), Supermodule.name, TreeCrawler.Package.name, DDValue.name(), FWViewEnergyScale.name(), genericValidation.GenericValidation.name, CaloTrkProcessing::Detector.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, egHLT::MonElemContainer< T >.name(), edm::eventsetup::SourceMakerTraits.name(), NanoAODDQM::Plot.name(), fwlite::Record.name(), options.ConnectionHLTMenu.name, L1GtPatternLine.name(), SimpleL1MuGMTCand.name(), L1AcceptBunchCrossing.name(), cond::persistency::GLOBAL_TAG_MAP::RECORD.name, edm::TRandomAdaptor.name(), OpticalObject.name(), ModifyObjectValueBase.name(), cond::persistency::GLOBAL_TAG_MAP::LABEL.name, DDBase< N, C >.name(), GlobalVariablesTableProducer::Variable.name(), MVAVar.name, cms::DDParsingContext::CompositeMaterial.name, nanoaod::FlatTable.name(), DDExpandedView.name(), DisplayManager.DisplayManager.name, emtf::LeastSquares.name(), cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, cond::Tag_t.name, FWLite.WorkingPoints.name, dqmoffline::l1t::HistDefinition.name, DQMGenericClient::ProfileOption.name, HLTPerformanceInfo::Path.name(), magneticfield::BaseVolumeHandle.name, nanoaod::MergeableCounterTable::VectorColumn< T >.name, FastHFShowerLibrary.name, emtf::Node.name, L1MuDTTrack.name(), PhysicsTools::Variable::Value.name, FWGeometryTableManagerBase::NodeInfo.name(), h4DSegm.name, PrintMaterialBudgetInfo.name, L1MuBMTrack.name(), L1MuGMTCand.name(), DcsStatus.name(), BTagProbabilityToDiscriminator::Discriminator.name, DQMGenericClient::NormOption.name, reco::ElectronSeed.name(), DQMGenericClient::CDOption.name, CounterChecker.name, MillePedeVariables.name(), cond::TagInfo_t.name, TriggerObjectTableProducer::SelectedObject.name, PhysicsTools::Calibration::Variable.name, DetGeomDesc.name(), edm::Path.name(), TrackerSectorStruct.name, MuonGeometrySanityCheckPoint.name, BPhysicsValidation::ParticleMonitor.name, cond::persistency::PAYLOAD::HASH.name, DQMGenericClient::NoFlowOption.name, looper.Looper.name, Mapper::definition< ScannerT >.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, PFJetAnalyzerDQM::Plot1DInBinVariable.name, EDMtoMEConverter.name, cond::persistency::PAYLOAD::DATA.name, cms::DDNamespace.name(), python.rootplot.tree2hists.Plot.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, CutApplicatorBase.name(), cond::persistency::PAYLOAD::VERSION.name, edm::ESGetToken< T, R >.name(), edm::TriggerResults.name(), cond::persistency::PAYLOAD::INSERTION_TIME.name, PhysicsTools::TreeReader::Value.name, FWViewType.name(), CSCIndexerBase.name(), BPhysicsValidation.name, classes.MonitorData.name, edm::eventsetup::LooperMakerTraits.name(), PhysicsTools::ProcessRegistry< Base_t, CalibBase_t, Parent_t >.name, cond::persistency::GTProxy.name(), Measurement.name(), pat::TriggerCondition.name(), GeometricDet.name(), L1GObject.name(), HistogramManager.name, classes.OutputData.name, FWEventItem.name(), edm::TypeWithDict.name(), HistoData.name, Crystal.name, L1TPhase2CorrelatorOffline::MultiCollection.name(), GeometricTimingDet.name(), h2DSegm.name, options.HLTProcessOptions.name, emtf::AbsoluteDeviation.name(), cond::persistency::IOV::TAG_NAME.name, cond::persistency::IOV::SINCE.name, utils.StatisticalTest.name, cond::persistency::IOV::PAYLOAD_HASH.name, cond::persistency::IOV::INSERTION_TIME.name, edm::ESGetToken< fwliteeswriter::DummyType, fwliteeswriter::FWLWEventSetupRecord >.name(), pat::TriggerAlgorithm.name(), pat::TriggerPath.name(), DQMNet::WaitObject.name, cscdqm::Address.name(), python.rootplot.utilities.Hist.name, AlpgenParameterName.name, config.Analyzer.name, geometry.Structure.name, IntegratedCalibrationBase.name(), hDigis.name, core.autovars.NTupleSubObject.name, cuy.divideElement.name, Capsule.name, cuy.plotElement.name, core.autovars.NTupleObject.name, VersionedSelector< T >.name(), Ceramic.name, cuy.additionElement.name, PhysicsTools::Variable.name, SiStripMonitorDigi.name, cms::DDFilteredView.name(), VIDSelectorBase.VIDSelectorBase.name(), BulkSilicon.name, config.Service.name, cuy.superimposeElement.name, emtf::Huber.name(), Folder.name(), CaloSD::Detector.name, APD.name, core.autovars.NTupleCollection.name, nanoaod::FlatTable::Column.name, cuy.graphElement.name, NanoAODDQM::SelGroupConfig.name, BPHRecoBuilder::BPHRecoSource.name, BPHRecoBuilder::BPHCompSource.name, StraightTrackAlignment::RPSetPlots.name, BasicHepMCValidation::ParticleMonitor.name, cond::persistency::TAG_AUTHORIZATION::TAG_NAME.name, cond::persistency::TAG_AUTHORIZATION::ACCESS_TYPE.name, cond::persistency::TAG_AUTHORIZATION::CREDENTIAL.name, cond::persistency::TAG_AUTHORIZATION::CREDENTIAL_TYPE.name, InnerLayerVolume.name, emtf::PercentErrorSquared.name(), utils.KS.name, cond::payloadInspector::TagReference.name, trklet::VarBase.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, utils.Chi2.name, personalPlayback.FrameworkJob.name, Grid.name, Grille.name, utils_v2.StatisticalTest.name, utils.BinToBin.name, BackPipe.name, plotscripts.SawTeethFunction.name, utils_v2.KolmogorovTest.name, dirstructure.Comparison.name, utils_v2.Chi2Test.name, dqm_interfaces.DirID.name, PatchPanel.name, BackCoolTank.name, utils.BinToBin1percent.name, DryAirTube.name, python.rootplot.utilities.RootFile.name, crabFunctions.CrabTask.name, MBCoolTube.name, hHits.name, hcaldqm::quantity::FlagQuantity.name(), MBManif.name, hcaldqm::quantity::LumiSection.name(), cscdqm::ParHistoDef.name, hcaldqm::quantity::LumiSectionCoarse.name(), hcaldqm::quantity::RunNumber.name(), hDeltaR.name, hcaldqm::quantity::EventNumber.name(), hcaldqm::quantity::EventType.name(), hTMaxCell.name, BeautifulSoup.Tag.name, dqm_interfaces.DirWalkerFile.name, hParam.name, hMuonStat.name, genericValidation.ValidationWithPlotsSummaryBase.SummaryItem.name(), hTOF.name, hTDelay.name, hTimes< hTime >.name, SummaryOutputProducer::GenericSummary.name, BeautifulSoup.SoupStrainer.name, dataset.Dataset.name(), print(), and VIDSelectorBase.process_pset().

113  def initialize(self,pythonpset):
114  if( self.__initialized ):
115  print('VID Selector is already initialized, doing nothing!')
116  return
117  del process.__instance
118  if hasattr(pythonpset,'isPOGApproved'):
119  approved = pythonpset.isPOGApproved.value()
120  if not approved:
121  sys.stderr.write('This ID is not POG approved and likely under development!!!!\n')
122  sys.stderr.write('Please make sure to report your progress with this ID'\
123  ' at the next relevant POG meeting.\n')
124  del pythonpset.isPOGApproved
125  else:
126  sys.stderr.write('This ID is not POG approved and likely under development!!!!\n')
127  sys.stderr.write('Please make sure to report your progress with this ID'\
128  ' at the next relevant POG meeting.\n')
129  self.__instance = process_pset( self.__selectorBuilder, pythonpset, self.__suffix )
130  expectedmd5 = central_id_registry.getMD5FromName(pythonpset.idName)
131  if expectedmd5 != self.md5String():
132  sys.stderr.write("ID: %s\n"%self.name())
133  sys.stderr.write("The expected md5: %s does not match the md5\n"%expectedmd5)
134  sys.stderr.write("calculated by the ID: %s please\n"%self.md5String())
135  sys.stderr.write("update your python configuration or determine the source\n")
136  sys.stderr.write("of transcription error!\n")
137  self.__initialized = True
if(conf_.getParameter< bool >("UseStripCablingDB"))
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def VIDSelectorBase.VIDSelectorBase.md55Raw (   self)

Definition at line 156 of file VIDSelectorBase.py.

157  def md55Raw(self):
158  return self.__instance.md55Raw()
def VIDSelectorBase.VIDSelectorBase.md5String (   self)

Definition at line 153 of file VIDSelectorBase.py.

Referenced by VIDSelectorBase.VIDSelectorBase.initialize().

154  def md5String(self):
155  return self.__instance.md5String()
def VIDSelectorBase.VIDSelectorBase.name (   self)

Definition at line 147 of file VIDSelectorBase.py.

Referenced by config.CFG.__str__(), geometryComparison.GeometryComparison.createScript(), validation.Sample.digest(), primaryVertexResolution.PrimaryVertexResolution.getRepMap(), primaryVertexValidation.PrimaryVertexValidation.getRepMap(), zMuMuValidation.ZMuMuValidation.getRepMap(), and VIDSelectorBase.VIDSelectorBase.initialize().

148  def name(self):
149  return self.__instance.name()

Member Data Documentation

VIDSelectorBase.VIDSelectorBase.__initialized
private

Definition at line 66 of file VIDSelectorBase.py.

Referenced by VIDSelectorBase.VIDSelectorBase.initialize().

VIDSelectorBase.VIDSelectorBase.__instance
private

Definition at line 70 of file VIDSelectorBase.py.

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

VIDSelectorBase.VIDSelectorBase.__ptrMaker
private

Definition at line 68 of file VIDSelectorBase.py.

Referenced by VIDSelectorBase.VIDSelectorBase.__call__().

VIDSelectorBase.VIDSelectorBase.__selectorBuilder
private

Definition at line 69 of file VIDSelectorBase.py.

Referenced by VIDSelectorBase.VIDSelectorBase.initialize().

VIDSelectorBase.VIDSelectorBase.__suffix
private

Definition at line 67 of file VIDSelectorBase.py.

Referenced by VIDSelectorBase.VIDSelectorBase.initialize().