CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
L1TMuonDQMEfficiency_cff Namespace Reference

Functions

def generateEfficiencyStrings
 

Variables

tuple efficiencyProfile = cms.untracked.vstring(generateEfficiencyStrings(ptQualCuts_HI))
 
tuple l1tMuonDQMEfficiency
 
tuple l1tMuonDQMEmuEfficiency
 

Function Documentation

def L1TMuonDQMEfficiency_cff.generateEfficiencyStrings (   ptQualCuts)

Definition at line 4 of file L1TMuonDQMEfficiency_cff.py.

References str.

4 
5 def generateEfficiencyStrings(ptQualCuts):
6  numDenDir = "numerators_and_denominators/"
7  varStrings = ['pt', 'eta', 'phi', 'vtx']
8  etaStrings = ['etaMin0_etaMax0p83', 'etaMin0p83_etaMax1p24', 'etaMin1p24_etaMax2p4', 'etaMin0_etaMax2p4']
9  qualStrings = {0:'qualAll', 4:'qualOpen', 8:'qualDouble', 12:'qualSingle'}
10 
11  efficiencyStrings = []
12  for ptQualCut in ptQualCuts:
13  effDenNamePrefix = numDenDir+"effDen_"
14  effNumNamePrefix = numDenDir+"effNum_"
15  effNamePrefix = "eff_"
16  for varString in varStrings:
17  effDenNameVar = effDenNamePrefix+varString
18  effNumNameVar = effNumNamePrefix+varString+"_"+str(ptQualCut[0])
19  effNameVar = effNamePrefix+varString+"_"+str(ptQualCut[0])
20  if varString != "pt":
21  effDenNameVar += "_"+str(ptQualCut[0])
22  effDenNameEta = ''
23  effNumNameEta = ''
24  effNameEta = ''
25  if varString != "eta":
26  for etaString in etaStrings:
27  effDenName = effDenNameVar+"_"+etaString
28  effNumName = effNumNameVar+"_"+etaString+"_"+qualStrings[ptQualCut[1]]
29  effName = effNameVar+"_"+etaString+"_"+qualStrings[ptQualCut[1]]
30  efficiencyStrings.append(effName+" '"+effName+";;L1 muon efficiency' "+effNumName+" "+effDenName)
31  else:
32  effDenName = effDenNameVar
33  effNumName = effNumNameVar+"_"+qualStrings[ptQualCut[1]]
34  effName = effNameVar+"_"+qualStrings[ptQualCut[1]]
35  efficiencyStrings.append(effName+" '"+effName+";;L1 muon efficiency' "+effNumName+" "+effDenName)
36  return efficiencyStrings
#define str(s)

Variable Documentation

tuple L1TMuonDQMEfficiency_cff.efficiencyProfile = cms.untracked.vstring(generateEfficiencyStrings(ptQualCuts_HI))

Definition at line 57 of file L1TMuonDQMEfficiency_cff.py.

tuple L1TMuonDQMEfficiency_cff.l1tMuonDQMEfficiency
Initial value:
1 = DQMEDHarvester("DQMGenericClient",
2  subDirs = cms.untracked.vstring("L1T/L1TObjects/L1TMuon/L1TriggerVsReco/"),
3  efficiency = cms.vstring(),
4  efficiencyProfile = cms.untracked.vstring(generateEfficiencyStrings(ptQualCuts)),
5  resolution = cms.vstring(),
6  outputFileName = cms.untracked.string(""),
7  verbose = cms.untracked.uint32(0)
8 )

Definition at line 40 of file L1TMuonDQMEfficiency_cff.py.

tuple L1TMuonDQMEfficiency_cff.l1tMuonDQMEmuEfficiency
Initial value:
1 = l1tMuonDQMEfficiency.clone(
2  subDirs = cms.untracked.vstring("L1TEMU/L1TObjects/L1TMuon/L1TriggerVsReco/")
3 )

Definition at line 50 of file L1TMuonDQMEfficiency_cff.py.