174 def jetMonAlgConfig( jetName, inputFlags, truthJetName='', trigger=''):
175 """returns a specification of a JetMonitoringAlg (in the form of a JetMonAlgSpec dictionnary).
179 jetAlgConfig = JetMonAlgSpec(
181 JetContainerName = jetName,
182 TriggerChain = trigger ,
189 histoSpecs += commonHistoSpecs
191 if inputFlags.DQ.DataType
is not DQDataType.Cosmics:
192 histoSpecs += jvfHistosSpec
194 if 'Topo' in jetName:
195 histoSpecs += topoHistosSpec
196 if 'PFlow' in jetName:
197 histoSpecs += pflowHistosSpec
200 if truthJetName !=
"" :
202 from JetMonitoring.JetStandardHistoSpecs
import responseAndEffSpecMap
203 if truthJetName
not in responseAndEffSpecMap:
204 print(
"ERROR !! can't schedule a JetHistoResponseAndEff for truth container : ",truthJetName,
". No specification available" )
207 histoSpecs +=[ responseAndEffSpecMap[truthJetName] ]
210 jetAlgConfig.appendHistos( * histoSpecs)