CMS 3D CMS Logo

Functions | Variables
common_cff Namespace Reference

Functions

def ExtVar (tag, valtype, compression=None, doc=None, mcOnly=False, precision=-1)
 
def OVar (valtype, compression=None, doc=None, mcOnly=False, precision=-1)
 
def Var (expr, valtype, compression=None, doc=None, mcOnly=False, precision=-1)
 

Variables

 CandVars
 
 charge
 
 doc
 
 eta
 
 float
 
 int
 
 mass
 
 P3Vars
 
 P4Vars
 
 pdgId
 
 phi
 
 precision
 
 pt
 
 PTVars
 

Function Documentation

def common_cff.ExtVar (   tag,
  valtype,
  compression = None,
  doc = None,
  mcOnly = False,
  precision = -1 
)
Create a PSet for a variable read from the event

   tag is the InputTag to the variable. 

   see OVar in common_cff for all the other arguments

Definition at line 31 of file common_cff.py.

References clone(), and OVar().

31 def ExtVar(tag, valtype, compression=None, doc=None, mcOnly=False,precision=-1):
32  """Create a PSet for a variable read from the event
33 
34  tag is the InputTag to the variable.
35 
36  see OVar in common_cff for all the other arguments
37  """
38  return OVar(valtype, compression=compression,precision=precision, doc=(doc if doc else tag.encode()), mcOnly=mcOnly).clone(
39  src = tag if isinstance(tag, cms.InputTag) else cms.InputTag(tag),
40  )
41 
42 
def ExtVar(tag, valtype, compression=None, doc=None, mcOnly=False, precision=-1)
Definition: common_cff.py:31
def OVar(valtype, compression=None, doc=None, mcOnly=False, precision=-1)
Definition: common_cff.py:2
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
def common_cff.OVar (   valtype,
  compression = None,
  doc = None,
  mcOnly = False,
  precision = -1 
)
Create a PSet for a variable in the tree (without specifying how it is computed)

       valtype is the type of the value (float, int, bool, or a string that the table producer understands),
       compression is not currently used,
       doc is a docstring, that will be passed to the table producer,
       mcOnly can be set to True for variables that exist only in MC samples and not in data ones. 

Definition at line 2 of file common_cff.py.

Referenced by ExtVar(), and Var().

2 def OVar(valtype, compression=None, doc=None, mcOnly=False,precision=-1):
3  """ Create a PSet for a variable in the tree (without specifying how it is computed)
4 
5  valtype is the type of the value (float, int, bool, or a string that the table producer understands),
6  compression is not currently used,
7  doc is a docstring, that will be passed to the table producer,
8  mcOnly can be set to True for variables that exist only in MC samples and not in data ones.
9  """
10  if valtype == float: valtype = "float"
11  elif valtype == int: valtype = "int"
12  elif valtype == bool: valtype = "bool"
13  return cms.PSet(
14  type = cms.string(valtype),
15  compression = cms.string(compression if compression else "none"),
16  doc = cms.string(doc if doc else expr),
17  mcOnly = cms.bool(mcOnly),
18  precision=cms.string(precision) if type(precision)==str else cms.int32(precision)
19  )
def OVar(valtype, compression=None, doc=None, mcOnly=False, precision=-1)
Definition: common_cff.py:2
def common_cff.Var (   expr,
  valtype,
  compression = None,
  doc = None,
  mcOnly = False,
  precision = -1 
)
Create a PSet for a variable computed with the string parser

   expr is the expression to evaluate to compute the variable 
   (in case of bools, it's a cut and not a function)

   see OVar above for all the other arguments

Definition at line 20 of file common_cff.py.

References clone(), and OVar().

Referenced by taus_cff._tauIdWPMask(), custom_jme_cff.TableRecoJetAdder.addTable(), Exhume::Event.GetVar(), JetVertexMain.Main(), nano_cff.nanoAOD_recalibrateMETs(), and custom_jme_cff.PrepJMECustomNanoAOD().

20 def Var(expr, valtype, compression=None, doc=None, mcOnly=False,precision=-1):
21  """Create a PSet for a variable computed with the string parser
22 
23  expr is the expression to evaluate to compute the variable
24  (in case of bools, it's a cut and not a function)
25 
26  see OVar above for all the other arguments
27  """
28  return OVar(valtype, compression=compression, doc=(doc if doc else expr), mcOnly=mcOnly,precision=precision).clone(
29  expr = cms.string(expr))
30 
def Var(expr, valtype, compression=None, doc=None, mcOnly=False, precision=-1)
Definition: common_cff.py:20
def OVar(valtype, compression=None, doc=None, mcOnly=False, precision=-1)
Definition: common_cff.py:2
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135

Variable Documentation

common_cff.CandVars

Definition at line 53 of file common_cff.py.

common_cff.charge

Definition at line 55 of file common_cff.py.

common_cff.doc

Definition at line 54 of file common_cff.py.

Referenced by dqmservices::DQMFileIterator.advanceToLumi(), convert_boolean(), HcalLutManager.create_lut_loader(), edm::JobReport.dumpFiles(), dumpObject_(), EcalTPGCrystalStatusXMLTranslator.dumpXML(), EcalTimeBiasCorrectionsXMLTranslator.dumpXML(), ESGainXMLTranslator.dumpXML(), EcalClusterLocalContCorrXMLTranslator.dumpXML(), EcalTPGLinearizationConstXMLTranslator.dumpXML(), EcalTPGStripStatusXMLTranslator.dumpXML(), EcalTPGTowerStatusXMLTranslator.dumpXML(), EcalPulseShapesXMLTranslator.dumpXML(), EcalPedestalsXMLTranslator.dumpXML(), EcalDAQTowerStatusXMLTranslator.dumpXML(), EcalDCSTowerStatusXMLTranslator.dumpXML(), EcalGainRatiosXMLTranslator.dumpXML(), EcalAlignmentXMLTranslator.dumpXML(), EcalChannelStatusXMLTranslator.dumpXML(), EcalLaserAPDPNRatiosXMLTranslator.dumpXML(), EcalLinearCorrectionsXMLTranslator.dumpXML(), EcalClusterCrackCorrXMLTranslator.dumpXML(), EcalPulseSymmCovariancesXMLTranslator.dumpXML(), EcalWeightGroupXMLTranslator.dumpXML(), EcalClusterEnergyCorrectionObjectSpecificXMLTranslator.dumpXML(), EcalADCToGeVXMLTranslator.dumpXML(), EcalTimeOffsetXMLTranslator.dumpXML(), EcalClusterEnergyCorrectionXMLTranslator.dumpXML(), EcalTBWeightsXMLTranslator.dumpXML(), EcalWeightSetXMLTranslator.dumpXML(), EcalFloatCondObjectContainerXMLTranslator.dumpXML(), edm.formatFile(), DQMParserBase.getDocument(), XMLProcessor.getInstance(), DQMParserBase.getNewDocument(), XMLConfigReader.getPatternsVersion(), edm::FileLocator.init(), cscdqm::Collection.load(), load_dddefinition(), QTestConfigurationParser.monitorElementTestsMap(), dqmservices::DQMFileIterator.monUpdateLumi(), MuonAlignmentInputXML.newAlignableMuon(), dqmservices::DQMMonitoringService.outputLumiUpdate(), edm::service::SiteLocalConfigService.parse(), L1GtTriggerMenuXmlParser.parseAlgorithms(), L1GtTriggerMenuXmlParser.parseConditions(), L1GtTriggerMenuXmlParser.parseId(), L1GtTriggerMenuXmlParser.parseTechTriggers(), L1GtTriggerMenuXmlParser.parseVmeXML(), SummaryPlotXmlParser.parseXML(), MiscalibReaderFromXML.parseXMLMiscalibFile(), edm.print(), cms::DDDetector.processXML(), QTestConfigurationParser.qtestsConfig(), XMLConfigReader.readConfig(), l1t::XmlConfigParser.readDOMFromString(), XMLConfigReader.readPatterns(), edm::JobReport.reportAnalysisFile(), edm::JobReport.reportFallbackAttempt(), edm::JobReport.reportRandomStateFile(), edm::JobReport.reportReadBranches(), edm::JobReport.reportSkippedFile(), dqmservices::DQMFileIterator.reset(), LumiCorrectionSource.servletTranslation(), LumiProducer.servletTranslation(), nanoaod::FlatTable.setDoc(), dqmservices::DQMFileIterator.update_state(), L1GtTriggerMenuXmlParser.workXML(), xuti.WriteNodeWithValue(), edm::JobReport::JobReportImpl.writeOutputFile(), EcalTBWeightsXMLTranslator.writeWeightSet(), l1t::XmlConfigParser.XmlConfigParser(), cscdqm::Configuration.~Configuration(), and l1t::XmlConfigParser.~XmlConfigParser().

common_cff.eta

Definition at line 48 of file common_cff.py.

common_cff.float

Definition at line 44 of file common_cff.py.

common_cff.int

Definition at line 54 of file common_cff.py.

common_cff.mass

Definition at line 51 of file common_cff.py.

common_cff.P3Vars

Definition at line 47 of file common_cff.py.

common_cff.P4Vars

Definition at line 50 of file common_cff.py.

common_cff.pdgId

Definition at line 54 of file common_cff.py.

common_cff.phi

Definition at line 45 of file common_cff.py.

common_cff.precision
common_cff.pt

Definition at line 44 of file common_cff.py.

common_cff.PTVars

Definition at line 43 of file common_cff.py.