175 def jetMonAlgConfig( jetName, inputFlags, truthJetName='', trigger=''):
176 """returns a specification of a JetMonitoringAlg (in the form of a JetMonAlgSpec dictionnary).
180 jetAlgConfig = JetMonAlgSpec(
182 JetContainerName = jetName,
183 TriggerChain = trigger ,
190 histoSpecs += commonHistoSpecs
192 if inputFlags.DQ.DataType
is not DQDataType.Cosmics:
193 histoSpecs += jvfHistosSpec
195 if 'Topo' in jetName:
196 histoSpecs += topoHistosSpec
197 if 'PFlow' in jetName:
198 histoSpecs += pflowHistosSpec
201 if truthJetName !=
"" :
203 from JetMonitoring.JetStandardHistoSpecs
import responseAndEffSpecMap
204 if truthJetName
not in responseAndEffSpecMap:
205 print(
"ERROR !! can't schedule a JetHistoResponseAndEff for truth container : ",truthJetName,
". No specification available" )
208 histoSpecs +=[ responseAndEffSpecMap[truthJetName] ]
211 jetAlgConfig.appendHistos( * histoSpecs)