139 def makeAlgs (self, config) :
140
141 selectionPostfix = self.selectionName
142 if selectionPostfix != '' and selectionPostfix[0] != '_' :
143 selectionPostfix = '_' + selectionPostfix
144
145 postfix = self.postfix
146 if postfix is None :
147 postfix = self.selectionName
148 if postfix != '' and postfix[0] != '_' :
149 postfix = '_' + postfix
150
151 inputfile = 'TauAnalysisAlgorithms/ditau_selection_highpt.conf'
152 if "DiTauJetsLowPt" in self.containerName:
153 inputfile = 'TauAnalysisAlgorithms/ditau_selection_lowpt.conf'
154
155
156 alg = config.createAlgorithm( 'CP::AsgSelectionAlg', 'DiTauSelectionAlg' )
157 config.addPrivateTool( 'selectionTool', 'TauAnalysisTools::DiTauSelectionTool' )
158 alg.selectionTool.ConfigPath = inputfile
159 alg.selectionDecoration = 'selected_ditau' + selectionPostfix + ',as_char'
160 alg.particles = config.readName (self.containerName)
161 alg.preselection = config.getPreselection (self.containerName, self.selectionName)
162 config.addSelection (self.containerName, self.selectionName, alg.selectionDecoration,
163 preselection=self.addSelectionToPreselection)
164
165