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