the ConfigBlock for the tau four-momentum correction
Definition at line 8 of file DiTauAnalysisConfig.py.
◆ __init__()
def python.DiTauAnalysisConfig.DiTauCalibrationConfig.__init__ |
( |
|
self | ) |
|
Definition at line 11 of file DiTauAnalysisConfig.py.
12 super (DiTauCalibrationConfig, self).__init__ ()
13 self.setBlockName(
'DiTaus')
14 self.addOption (
'inputContainer',
'', type=str,
15 info=
"select ditau input container, by default set to DiTauJets")
16 self.addOption (
'containerName',
'', type=str,
18 info=
"the name of the output container after calibration.")
19 self.addOption (
'postfix',
'', type=str,
20 info=
"a postfix to apply to decorations and algorithm names. "
21 "Typically not needed here since the calibration is common to "
23 self.addOption (
'rerunTruthMatching',
True, type=bool,
24 info=
"whether to rerun truth matching (sets up an instance of "
25 "CP::DiTauTruthMatchingAlg). The default is True.")
◆ instanceName()
def python.DiTauAnalysisConfig.DiTauCalibrationConfig.instanceName |
( |
|
self | ) |
|
Return the instance name for this block
Definition at line 27 of file DiTauAnalysisConfig.py.
27 def instanceName (self) :
28 """Return the instance name for this block"""
29 return self.containerName + self.postfix
◆ makeAlgs()
def python.DiTauAnalysisConfig.DiTauCalibrationConfig.makeAlgs |
( |
|
self, |
|
|
|
config |
|
) |
| |
Definition at line 31 of file DiTauAnalysisConfig.py.
31 def makeAlgs (self, config) :
33 postfix = self.postfix
34 if postfix !=
'' and postfix[0] !=
'_' :
35 postfix =
'_' + postfix
37 inputContainer =
"DiTauJets"
38 if self.inputContainer:
39 inputContainer = self.inputContainer
40 config.setSourceName (self.containerName, inputContainer)
43 if self.rerunTruthMatching
and config.dataType()
is not DataType.Data:
44 alg = config.createAlgorithm(
'CP::DiTauTruthMatchingAlg',
45 'DiTauTruthMatchingAlg' )
46 config.addPrivateTool(
'matchingTool',
47 'TauAnalysisTools::DiTauTruthMatchingTool' )
48 alg.taus = config.readName (self.containerName)
49 alg.preselection = config.getPreselection (self.containerName,
'')
52 alg = config.createAlgorithm(
'CP::DiTauSmearingAlg',
'DiTauSmearingAlg' )
53 config.addPrivateTool(
'smearingTool',
'TauAnalysisTools::DiTauSmearingTool' )
54 alg.taus = config.readName (self.containerName)
55 alg.tausOut = config.copyName (self.containerName)
56 alg.preselection = config.getPreselection (self.containerName,
'')
The documentation for this class was generated from the following file: