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 Member Functions | Static Private Member Functions
Mixins.UsingBlock Class Reference
Inheritance diagram for Mixins.UsingBlock:
Mixins._SimpleParameterTypeBase Mixins._ParameterTypeBase

Public Member Functions

def __init__
 
def dumpPython
 
def insertInto
 
- Public Member Functions inherited from Mixins._SimpleParameterTypeBase
def __eq__
 
def __init__
 
def __ne__
 
def configValue
 
def pythonValue
 
def setValue
 
def value
 
- Public Member Functions inherited from Mixins._ParameterTypeBase
def __init__
 
def __repr__
 
def configTypeName
 
def dumpPython
 
def isFrozen
 
def isModified
 
def isTracked
 
def pythonTypeName
 
def resetModified
 
def setIsFrozen
 
def setIsTracked
 

Public Attributes

 file
 
 isResolved
 
 loc
 
 s
 

Private Member Functions

def _valueFromString
 

Static Private Member Functions

def _isValid
 

Detailed Description

For injection purposes, pretend this is a new parameter type
   then have a post process step which strips these out

Definition at line 79 of file Mixins.py.

Constructor & Destructor Documentation

def Mixins.UsingBlock.__init__ (   self,
  value,
  s = '',
  loc = 0,
  file = '' 
)

Definition at line 83 of file Mixins.py.

83 
84  def __init__(self,value, s='', loc=0, file=''):
85  super(UsingBlock,self).__init__(value)
86  self.s = s
87  self.loc = loc
88  self.file = file
self.isResolved = False

Member Function Documentation

def Mixins.UsingBlock._isValid (   value)
staticprivate

Definition at line 90 of file Mixins.py.

Referenced by Mixins._ValidatingListBase.__add__(), Mixins._ValidatingListBase.__init__(), Mixins._ValidatingListBase.__setitem__(), Mixins._ValidatingListBase.extend(), and Mixins._SimpleParameterTypeBase.setValue().

90 
91  def _isValid(value):
return isinstance(value,str)
def Mixins.UsingBlock._valueFromString (   value)
private
only used for cfg-parsing

Definition at line 92 of file Mixins.py.

92 
93  def _valueFromString(value):
94  """only used for cfg-parsing"""
return string(value)
def _valueFromString
Definition: Mixins.py:92
def Mixins.UsingBlock.dumpPython (   self,
  options 
)

Definition at line 101 of file Mixins.py.

References CountBits< INDEX >.value, edm::MergeableCounter.value, python.readProv.filereader.Module.value, funct::Numerical< n >.value, TmCcu.value, TreeToEdges.Int.value, CSCCLCTDataWord.value(), CountBits< 0 >.value, NodeCut.Int.value, pat::JetSelection.value, TmApvPair.value, TmModule.value, funct::Parametric< F >.value, IncompleteGammaComplement.value(), TrivialError.value(), RPCObGasHum::Item.value, BinningPointByMap.value(), funct::Parametric< Numerical< n > >.value, RPCObImon::I_Item.value, BinomialProbability.value(), reco::parser::ExpressionNumber.value(), SortObject.value, reco::parser::CutBinaryOperator< Op >.value(), reco::parser::ExpressionBinaryOperator< Op >.value(), reco::parser::ExpressionCondition.value(), reco::parser::ExpressionUnaryOperator< Op >.value(), reco::parser::ExpressionQuaterOperator< Op >.value(), EcalWeight.value(), ESWeight.value(), reco::egamma::mask< L1 >.value, CSCPairConstraint.value(), reco::parser::ExpressionBase.value(), funct::Parametric< FractionStruct< n, m > >.value, smproxy::ConnectionID.value, TmPsu.value, reco::egamma::mask< 0 >.value, CalibCoeff.value(), condex::Efficiency.value(), reco::hlt::mask< i, W >.value, Geom::Theta< T >.value(), EcalUncalibRecHitRatioMethodAlgo< C >::Ratio.value, stor::ConsumerID.value, ChiSquared.value(), Measurement1DFloat.value(), reco::parser::matches_another_integral_type< T >.value, reco::parser::ExpressionVar.value(), PixelDCSObject< class >::Item.value, Measurement1D.value(), dbread.value, edm::math_private::ieee_float_shape_type.value, DDString.value(), RPCObVmon::V_Item.value, pat::LookupTableRecord.value(), DDConstant.value(), EcalUncalibRecHitRatioMethodAlgo< C >::Tmax.value, edm::FileFormatVersion.value(), details::PhiSortElement< Object, Scalar >.value, magneticfield::UniformMagneticFieldESProducer.value, reco::hlt::mask< 0, W >.value, pat::ElectronSelection.value, edm::math_private::ieee_double_shape_type.value, Geom::OnePiRange< T >.value(), L1MonitorDigi.value(), DDMapper< KeyType, ValueType >.value(), cscdqm::TempMeasType.value, condex::ParametricEfficiencyInPt.value(), TtEvent::HypoClassKeyStringToEnum.value, Geom::Phi< T >.value(), edm::key_traits< K >.value, lhef::Param.value, OpticalAlignParam.value(), gen::Param.value, L1GtBoardTypeStringToEnum.value, edm::eventsetup::SimpleStringTag.value(), stats_t< T >.value, RPCObStatus::S_Item.value, CSCPairResidualsConstraint.value(), pos::PixelDACScanRange.value(), EcalSrFlag.value(), edm::LuminosityBlockID.value(), edm::math_private::ieee_long_double_shape_type.value, options.ConnectionHLTMenu.value, Mapper::definition< ScannerT >.value, edm::Timestamp.value(), DDVector.value(), DDStrVector.value(), edm::eventsetup::heterocontainer::HCTypeTag.value(), edm::has_match< T >.value, edm::key_traits< std::pair< U, V > >.value, edm::has_fillView< edm::SortedCollection< T, SORT > >.value, cmsutils::_bqueue_item< T >.value, FWConfiguration.value(), FWProxyBuilderConfiguration.value(), muon::SelectionTypeStringToEnum.value, Entry.value(), condex::ParametricEfficiencyInEta.value(), RPCObTemp::T_Item.value, edm::has_match< SelectorBase >.value, L1GtObjectStringToEnum.value, edm::has_setPtr< edm::SortedCollection< T, SORT > >.value, reco::parser::ExpressionLazyVar.value(), Mixins._SimpleParameterTypeBase.value(), MuonResidualsTwoBin.value(), cms::detail::is_derived_or_same< BASE, DERIVED >.value, edm::eventsetup::produce::size< T >.value, PhysicsTools::Calibration::Histogram< Value_t, Axis_t >.value(), edm::eventsetup::produce::size< Null >.value, FWGenericParameter< T >.value(), PhysicsTools::TreeReader::Bool.value, cscdqm::HVVMeasType.value, FWPSetTableManager::PSetData.value, cmsutil::SimpleAllocHashMultiMap< K, V, Hasher, Equals, Alloc >::ValueItem.value, edm::key_traits< std::string >.value, edm::fillDetails::has_fillDescriptions_function< T >.value, PhysicsTools::Variable::Value.value, PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >.value(), stor::detail::hasMemoryUsed< T >.value, lhef::LHERunInfo::XSec.value, cmsutil::SimpleAllocHashMultiMap< K, V, Hasher, Equals, Alloc >::KeyItem.value, SimpleSAXParser::Attribute.value, funct::tmpl::abs< n, positive >.value, L1GtPsbQuadStringToEnum.value, TreeSaver::Var.value, funct::tmpl::abs< n, false >.value, L1GctInternHFData.value(), edm::eventsetup::produce::find_index_impl< ContainerT, EntryT, FindT >.value, edm::AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper >.value(), PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >.value(), edm::eventsetup::produce::find_index_impl< ContainerT, T, T >.value, edm::eventsetup::produce::find_index< T, FindT >.value, edm::fillDetails::has_prevalidate_function< T >.value, edm::TrieNode< T >.value(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.value, L1GctInternEtSum.value(), L1GtConditionTypeStringToEnum.value, edm::has_fillView< T >.value, cscdqm::LVIMeasType.value, Measurement.value(), GenericMVAComputer::TaggingVariableIterator< Iter_t >.value, edm::eventsetup::produce::ProductHolder< T1, T2, T3 >.value, edm::has_fillView< std::vector< T, A > >.value, edm::has_fillView< std::vector< bool, A > >.value, edm::has_fillView< std::list< T, A > >.value, funct::SimplSumOrd< F, G, H >::prod0.value, L1GtConditionCategoryStringToEnum.value, reco::IsoDeposit::const_iterator.value(), edm::has_fillView< std::deque< T, A > >.value, funct::SimplSumOrd< F, G, H >::prod1.value, edm::eventsetup::produce::ProductHolder< T1, Null, Null >.value, edm::has_fillView< std::set< T, A > >.value, funct::SimplSumOrd< F, G, H >::prod2.value, edm::has_setPtr< T >.value, funct::RatioP1< F, G, H >::prod0.value, edm::has_match< AndHelper< A, B > >.value, edm::has_setPtr< std::vector< T, A > >.value, MuonResidualsFitter.value(), funct::Product< PROD_S(F, G), H >::prod0.value, edm::has_setPtr< std::vector< bool, A > >.value, funct::RatioP1< F, G, H >::prod1.value, edm::has_setPtr< std::list< T, A > >.value, funct::Product< PROD_S(F, G), H >::prod1.value, edm::has_setPtr< std::deque< T, A > >.value, edm::has_fillView< PtrVector< T > >.value, funct::RatioP1< F, G, H >::prod2.value, edm::has_setPtr< std::set< T, A > >.value, funct::Product< PROD_S(F, G), H >::prod2.value, edm::has_match< OrHelper< A, B > >.value, edm::has_fillView< RefVector< C, T, F > >.value, edm::has_match< NotHelper< A > >.value, edm::has_fillView< AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper > >.value, funct::RatioP2< F, G, H >::prod0.value, edm::has_fillView< RefToBaseVector< T > >.value, funct::RatioP2< F, G, H >::prod1.value, edm::detail::has_swap_function< T >.value, funct::RatioP2< F, G, H >::prod2.value, edm::detail::has_mergeProduct_function< T >.value, edm::detail::has_postinsert< T >.value, edm::detail::has_isProductEqual_function< T >.value, edm::detail::has_donotrecordparents< T >.value, edm::has_fillView< edm::DetSetVector< T > >.value, edm::has_fillView< edm::OwnArray< T, M, P > >.value, edm::has_fillView< edm::OwnVector< T, P > >.value, Vispa.Views.PropertyView.Property.value(), edm::has_setPtr< edm::OwnArray< T, M, P > >.value, edm::has_setPtr< edm::OwnVector< T, P > >.value, Vispa.Views.PropertyView.BooleanProperty.value(), Vispa.Views.PropertyView.DropDownProperty.value(), Vispa.Views.PropertyView.TextEditWithButtonProperty.value(), TiXmlNode.value, Vispa.Views.PropertyView.IntegerProperty.value(), TiXmlAttribute.value, and Vispa.Views.PropertyView.DoubleProperty.value().

Referenced by Mixins._Parameterizable.__addParameter(), Mixins._Parameterizable.__repr__(), and Mixins._Parameterizable.__setattr__().

102  def dumpPython(self, options):
103  if options.isCfg:
104  return "process."+self.value()
105  else:
106  return self.value()
107 
def Mixins.UsingBlock.insertInto (   self,
  parameterSet,
  myname 
)

Definition at line 95 of file Mixins.py.

References edm::AllowedLabelsDescriptionBase.isTracked(), edm::ParameterWildcardBase.isTracked(), edm::VParameterSetEntry.isTracked(), edm::ParameterSetEntry.isTracked(), edm::ParameterDescriptionBase.isTracked(), Mixins._ParameterTypeBase.isTracked(), edm::Entry.isTracked(), CountBits< INDEX >.value, python.readProv.filereader.Module.value, edm::MergeableCounter.value, funct::Numerical< n >.value, TmCcu.value, TreeToEdges.Int.value, CSCCLCTDataWord.value(), CountBits< 0 >.value, NodeCut.Int.value, pat::JetSelection.value, TmApvPair.value, TmModule.value, funct::Parametric< F >.value, IncompleteGammaComplement.value(), TrivialError.value(), RPCObGasHum::Item.value, BinningPointByMap.value(), funct::Parametric< Numerical< n > >.value, RPCObImon::I_Item.value, BinomialProbability.value(), reco::parser::ExpressionNumber.value(), SortObject.value, reco::parser::CutBinaryOperator< Op >.value(), reco::parser::ExpressionBinaryOperator< Op >.value(), reco::parser::ExpressionCondition.value(), reco::parser::ExpressionUnaryOperator< Op >.value(), reco::parser::ExpressionQuaterOperator< Op >.value(), EcalWeight.value(), ESWeight.value(), reco::egamma::mask< L1 >.value, CSCPairConstraint.value(), reco::parser::ExpressionBase.value(), funct::Parametric< FractionStruct< n, m > >.value, smproxy::ConnectionID.value, TmPsu.value, reco::egamma::mask< 0 >.value, CalibCoeff.value(), condex::Efficiency.value(), reco::hlt::mask< i, W >.value, Geom::Theta< T >.value(), EcalUncalibRecHitRatioMethodAlgo< C >::Ratio.value, stor::ConsumerID.value, ChiSquared.value(), Measurement1DFloat.value(), reco::parser::matches_another_integral_type< T >.value, reco::parser::ExpressionVar.value(), PixelDCSObject< class >::Item.value, Measurement1D.value(), dbread.value, edm::math_private::ieee_float_shape_type.value, DDString.value(), RPCObVmon::V_Item.value, pat::LookupTableRecord.value(), DDConstant.value(), EcalUncalibRecHitRatioMethodAlgo< C >::Tmax.value, edm::FileFormatVersion.value(), details::PhiSortElement< Object, Scalar >.value, magneticfield::UniformMagneticFieldESProducer.value, reco::hlt::mask< 0, W >.value, pat::ElectronSelection.value, edm::math_private::ieee_double_shape_type.value, Geom::OnePiRange< T >.value(), L1MonitorDigi.value(), DDMapper< KeyType, ValueType >.value(), cscdqm::TempMeasType.value, condex::ParametricEfficiencyInPt.value(), TtEvent::HypoClassKeyStringToEnum.value, Geom::Phi< T >.value(), edm::key_traits< K >.value, lhef::Param.value, OpticalAlignParam.value(), gen::Param.value, L1GtBoardTypeStringToEnum.value, edm::eventsetup::SimpleStringTag.value(), stats_t< T >.value, RPCObStatus::S_Item.value, CSCPairResidualsConstraint.value(), pos::PixelDACScanRange.value(), EcalSrFlag.value(), edm::LuminosityBlockID.value(), edm::math_private::ieee_long_double_shape_type.value, options.ConnectionHLTMenu.value, Mapper::definition< ScannerT >.value, edm::Timestamp.value(), DDVector.value(), DDStrVector.value(), edm::eventsetup::heterocontainer::HCTypeTag.value(), edm::has_match< T >.value, edm::key_traits< std::pair< U, V > >.value, edm::has_fillView< edm::SortedCollection< T, SORT > >.value, cmsutils::_bqueue_item< T >.value, FWConfiguration.value(), FWProxyBuilderConfiguration.value(), muon::SelectionTypeStringToEnum.value, Entry.value(), condex::ParametricEfficiencyInEta.value(), RPCObTemp::T_Item.value, edm::has_match< SelectorBase >.value, L1GtObjectStringToEnum.value, edm::has_setPtr< edm::SortedCollection< T, SORT > >.value, reco::parser::ExpressionLazyVar.value(), Mixins._SimpleParameterTypeBase.value(), MuonResidualsTwoBin.value(), cms::detail::is_derived_or_same< BASE, DERIVED >.value, edm::eventsetup::produce::size< T >.value, PhysicsTools::Calibration::Histogram< Value_t, Axis_t >.value(), edm::eventsetup::produce::size< Null >.value, FWGenericParameter< T >.value(), PhysicsTools::TreeReader::Bool.value, cscdqm::HVVMeasType.value, FWPSetTableManager::PSetData.value, cmsutil::SimpleAllocHashMultiMap< K, V, Hasher, Equals, Alloc >::ValueItem.value, edm::key_traits< std::string >.value, edm::fillDetails::has_fillDescriptions_function< T >.value, PhysicsTools::Variable::Value.value, PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >.value(), stor::detail::hasMemoryUsed< T >.value, lhef::LHERunInfo::XSec.value, cmsutil::SimpleAllocHashMultiMap< K, V, Hasher, Equals, Alloc >::KeyItem.value, SimpleSAXParser::Attribute.value, funct::tmpl::abs< n, positive >.value, L1GtPsbQuadStringToEnum.value, TreeSaver::Var.value, funct::tmpl::abs< n, false >.value, L1GctInternHFData.value(), edm::eventsetup::produce::find_index_impl< ContainerT, EntryT, FindT >.value, edm::AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper >.value(), PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >.value(), edm::eventsetup::produce::find_index_impl< ContainerT, T, T >.value, edm::eventsetup::produce::find_index< T, FindT >.value, edm::fillDetails::has_prevalidate_function< T >.value, edm::TrieNode< T >.value(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.value, L1GctInternEtSum.value(), L1GtConditionTypeStringToEnum.value, edm::has_fillView< T >.value, cscdqm::LVIMeasType.value, Measurement.value(), GenericMVAComputer::TaggingVariableIterator< Iter_t >.value, edm::eventsetup::produce::ProductHolder< T1, T2, T3 >.value, edm::has_fillView< std::vector< T, A > >.value, edm::has_fillView< std::vector< bool, A > >.value, edm::has_fillView< std::list< T, A > >.value, funct::SimplSumOrd< F, G, H >::prod0.value, L1GtConditionCategoryStringToEnum.value, reco::IsoDeposit::const_iterator.value(), edm::has_fillView< std::deque< T, A > >.value, funct::SimplSumOrd< F, G, H >::prod1.value, edm::eventsetup::produce::ProductHolder< T1, Null, Null >.value, edm::has_fillView< std::set< T, A > >.value, funct::SimplSumOrd< F, G, H >::prod2.value, edm::has_setPtr< T >.value, funct::RatioP1< F, G, H >::prod0.value, edm::has_match< AndHelper< A, B > >.value, edm::has_setPtr< std::vector< T, A > >.value, MuonResidualsFitter.value(), funct::Product< PROD_S(F, G), H >::prod0.value, edm::has_setPtr< std::vector< bool, A > >.value, funct::RatioP1< F, G, H >::prod1.value, edm::has_setPtr< std::list< T, A > >.value, funct::Product< PROD_S(F, G), H >::prod1.value, edm::has_setPtr< std::deque< T, A > >.value, edm::has_fillView< PtrVector< T > >.value, funct::RatioP1< F, G, H >::prod2.value, edm::has_setPtr< std::set< T, A > >.value, funct::Product< PROD_S(F, G), H >::prod2.value, edm::has_match< OrHelper< A, B > >.value, edm::has_fillView< RefVector< C, T, F > >.value, edm::has_match< NotHelper< A > >.value, edm::has_fillView< AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper > >.value, funct::RatioP2< F, G, H >::prod0.value, edm::has_fillView< RefToBaseVector< T > >.value, funct::RatioP2< F, G, H >::prod1.value, edm::detail::has_swap_function< T >.value, funct::RatioP2< F, G, H >::prod2.value, edm::detail::has_mergeProduct_function< T >.value, edm::detail::has_postinsert< T >.value, edm::detail::has_isProductEqual_function< T >.value, edm::detail::has_donotrecordparents< T >.value, edm::has_fillView< edm::DetSetVector< T > >.value, edm::has_fillView< edm::OwnArray< T, M, P > >.value, edm::has_fillView< edm::OwnVector< T, P > >.value, Vispa.Views.PropertyView.Property.value(), edm::has_setPtr< edm::OwnArray< T, M, P > >.value, edm::has_setPtr< edm::OwnVector< T, P > >.value, Vispa.Views.PropertyView.BooleanProperty.value(), Vispa.Views.PropertyView.DropDownProperty.value(), Vispa.Views.PropertyView.TextEditWithButtonProperty.value(), TiXmlNode.value, Vispa.Views.PropertyView.IntegerProperty.value(), TiXmlAttribute.value, and Vispa.Views.PropertyView.DoubleProperty.value().

95 
96  def insertInto(self, parameterSet, myname):
97  value = self.value()
98  # doesn't seem to handle \0 correctly
99  #if value == '\0':
100  # value = ''
parameterSet.addString(self.isTracked(), myname, value)

Member Data Documentation

Mixins.UsingBlock.file

Definition at line 87 of file Mixins.py.

Mixins.UsingBlock.isResolved

Definition at line 88 of file Mixins.py.

Mixins.UsingBlock.loc

Definition at line 86 of file Mixins.py.

Mixins.UsingBlock.s

Definition at line 85 of file Mixins.py.