ATLAS Offline Software
Functions | Variables
JetMonitoringStandard Namespace Reference

Functions

def jetMonAlgConfig (jetName, inputFlags, truthJetName='', trigger='')
 
def standardJetMonitoring (inputFlags)
 

Variables

list commonHistoSpecs
 
list jvfHistosSpec
 
list topoHistosSpec
 
list pflowHistosSpec
 

Function Documentation

◆ jetMonAlgConfig()

def JetMonitoringStandard.jetMonAlgConfig (   jetName,
  inputFlags,
  truthJetName = '',
  trigger = '' 
)
returns a specification of a JetMonitoringAlg (in the form of a JetMonAlgSpec dictionnary).

Definition at line 174 of file JetMonitoringStandard.py.

174 def jetMonAlgConfig( jetName, inputFlags, truthJetName='', trigger=''):
175  """returns a specification of a JetMonitoringAlg (in the form of a JetMonAlgSpec dictionnary).
176  """
177 
178  # we use a specialized dictionnary (JetMonAlgSpec) which will be translated into the final C++ tool
179  jetAlgConfig = JetMonAlgSpec(
180  jetName+"MonAlg",
181  JetContainerName = jetName,
182  TriggerChain = trigger ,
183  )
184 
185  # the list of histos specifications
186  histoSpecs = []
187 
188  # then add pre-defined lists as defined above :
189  histoSpecs += commonHistoSpecs
190 
191  if inputFlags.DQ.DataType is not DQDataType.Cosmics:
192  histoSpecs += jvfHistosSpec
193 
194  if 'Topo' in jetName:
195  histoSpecs += topoHistosSpec
196  if 'PFlow' in jetName:
197  histoSpecs += pflowHistosSpec
198 
199 
200  if truthJetName != "" :
201  # then add histos showing efficiency and pT responses vs True
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" )
205  return None
206 
207  histoSpecs +=[ responseAndEffSpecMap[truthJetName] ]
208 
209  # finally all all histos specs to our JetMonitoringAlg specification :
210  jetAlgConfig.appendHistos( * histoSpecs)
211 
212  return jetAlgConfig
213 
214 
215 

◆ standardJetMonitoring()

def JetMonitoringStandard.standardJetMonitoring (   inputFlags)
Standard jet monitoring function to be inserted from top-level algs. 
returns an a component accumulator as given by AthMonitorCfgHelper.result()
Details of what goes into jet monitoring is implemented by dedicated functions such as jetMonAlgConfig().

Definition at line 216 of file JetMonitoringStandard.py.

216 def standardJetMonitoring(inputFlags):
217  """Standard jet monitoring function to be inserted from top-level algs.
218  returns an a component accumulator as given by AthMonitorCfgHelper.result()
219  Details of what goes into jet monitoring is implemented by dedicated functions such as jetMonAlgConfig().
220  """
221 
222  from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
223  rv = ComponentAccumulator()
224 
225  # do not run monitoring in RAWtoESD
226  if inputFlags.DQ.Environment == 'tier0Raw':
227  return rv
228 
229  from AthenaMonitoring import AthMonitorCfgHelper
230  helper = AthMonitorCfgHelper(inputFlags,'JetMonitoring')
231 
232  # create a list of JetMonitoringAlg specifications
233  jetAlgConfs = []
234 
235  if inputFlags.Reco.EnableHI:
236  if inputFlags.Tracking.doUPC:
237  jetAlgConfs.append(jetMonAlgConfig( "AntiKt4EMPFlowJets", inputFlags))
238  else:
239  jetAlgConfs.append(jetMonAlgConfig( "AntiKt4HIJets", inputFlags))
240  else:
241  # use the helper function defined above :
242  #jetMonAlgConfig( "AntiKt4LCTopoJets", truthJetName="AntiKt4TruthJets"), #How can we make sure truth jets are available ??
243  jetAlgConfs.append(jetMonAlgConfig( "AntiKt4LCTopoJets", inputFlags))
244  jetAlgConfs.append(jetMonAlgConfig( "AntiKt4EMTopoJets", inputFlags))
245  jetAlgConfs.append(jetMonAlgConfig( "AntiKt4EMPFlowJets", inputFlags))
246 
247  # Configure filter tools
248  from AthenaMonitoring.EventFlagFilterToolConfig import EventFlagFilterToolCfg
249 # from AthenaMonitoring.AtlasReadyFilterConfig import AtlasReadyFilterCfg
250  from AthenaMonitoring.BadLBFilterToolConfig import LArBadLBFilterToolCfg
251 # from AthenaMonitoring.FilledBunchFilterToolConfig import FilledBunchFilterToolCfg
252 
253  # schedule each JetMonitoringAlg by invoking the toAlg() methods of the config specification
254  for conf in jetAlgConfs:
255  alg = conf.toAlg(helper)
256  alg.FilterTools = [ EventFlagFilterToolCfg(inputFlags),helper.resobj.popToolsAndMerge(LArBadLBFilterToolCfg(inputFlags))]
257 
258  rv.merge(helper.result()) # the AthMonitorCfgHelper returns an accumulator to be used by the general configuration system.
259  return rv

Variable Documentation

◆ commonHistoSpecs

list JetMonitoringStandard.commonHistoSpecs

Definition at line 16 of file JetMonitoringStandard.py.

◆ jvfHistosSpec

list JetMonitoringStandard.jvfHistosSpec
Initial value:
1 = [
2  SelectSpec( 'highJVF',
3  '0.3<JVF[0]', # JVF is a vector<float> for each jets. Here we cut on the 0th entry of this vector
4  FillerTools = ["pt","m","eta","phi",
5  ] ),
6 ]

Definition at line 128 of file JetMonitoringStandard.py.

◆ pflowHistosSpec

list JetMonitoringStandard.pflowHistosSpec
Initial value:
1 = [
2  # histos common to all PFlow jets. These are defined in JetStandardHistoSpecs.py
3  "SumPtChargedPFOPt500[0]",
4  "SumPtTrkPt500[0]",
5  "NumTrkPt500[0]",
6  "NumTrkPt1000[0]",
7  "fCharged",
8 ]

Definition at line 163 of file JetMonitoringStandard.py.

◆ topoHistosSpec

list JetMonitoringStandard.topoHistosSpec
Initial value:
1 = [
2  # histos common to all topo jets. Energy By Sampling layer plots.
3  HistoSpec("PreSamplerB",(100,0.,200.),title="Energy in PreSamplerB;E;Entries",xvar=VarSpec('EnergyPerSampling[0]')),
4  HistoSpec("EMB1",(100,0.,200.),title="Energy in EMB1;E;Entries",xvar=VarSpec('EnergyPerSampling[1]')),
5  HistoSpec("EMB2",(100,0.,200.),title="Energy in EMB2;E;Entries",xvar=VarSpec('EnergyPerSampling[2]')),
6  HistoSpec("EMB3",(100,0.,200.),title="Energy in EMB3;E;Entries",xvar=VarSpec('EnergyPerSampling[3]')),
7  HistoSpec("PreSamplerE",(100,0.,200.),title="Energy in PreSamplerE;E;Entries",xvar=VarSpec('EnergyPerSampling[4]')),
8  HistoSpec("EME1",(100,0.,200.),title="Energy in EME2;E;Entries",xvar=VarSpec('EnergyPerSampling[5]')),
9  HistoSpec("EME2",(100,0.,200.),title="Energy in EME2;E;Entries",xvar=VarSpec('EnergyPerSampling[6]')),
10  HistoSpec("EME3",(100,0.,200.),title="Energy in EME3;E;Entries",xvar=VarSpec('EnergyPerSampling[7]')),
11  HistoSpec("HEC0",(100,0.,200.),title="Energy in HEC0;E;Entries",xvar=VarSpec('EnergyPerSampling[8]')),
12  HistoSpec("HEC1",(100,0.,200.),title="Energy in HEC1;E;Entries",xvar=VarSpec('EnergyPerSampling[9]')),
13  HistoSpec("HEC2",(100,0.,200.),title="Energy in HEC2;E;Entries",xvar=VarSpec('EnergyPerSampling[10]')),
14  HistoSpec("HEC3",(100,0.,200.),title="Energy in HEC3;E;Entries",xvar=VarSpec('EnergyPerSampling[11]')),
15  HistoSpec("TileBar0",(100,0.,200.),title="Energy in TileBar0;E;Entries",xvar=VarSpec('EnergyPerSampling[12]')),
16  HistoSpec("TileBar1",(100,0.,200.),title="Energy in TileBar1;E;Entries",xvar=VarSpec('EnergyPerSampling[13]')),
17  HistoSpec("TileBar2",(100,0.,200.),title="Energy in TileBar1;E;Entries",xvar=VarSpec('EnergyPerSampling[14]')),
18  HistoSpec("TileGap1",(100,0.,200.),title="Energy in TileGap1;E;Entries",xvar=VarSpec('EnergyPerSampling[15]')),
19  HistoSpec("TileGap2",(100,0.,200.),title="Energy in TileGap2;E;Entries",xvar=VarSpec('EnergyPerSampling[16]')),
20  HistoSpec("TileGap3",(100,0.,200.),title="Energy in TileGap3;E;Entries",xvar=VarSpec('EnergyPerSampling[17]')),
21  HistoSpec("TileExt0",(100,0.,200.),title="Energy in TileExt0;E;Entries",xvar=VarSpec('EnergyPerSampling[18]')),
22  HistoSpec("TileExt1",(100,0.,200.),title="Energy in TileExt1;E;Entries",xvar=VarSpec('EnergyPerSampling[19]')),
23  HistoSpec("TileExt2",(100,0.,200.),title="Energy in TileExt2;E;Entries",xvar=VarSpec('EnergyPerSampling[20]')),
24  HistoSpec("FCAL0",(100,0.,200.),title="Energy in FCAL0;E;Entries",xvar=VarSpec('EnergyPerSampling[21]')),
25  HistoSpec("FCAL1",(100,0.,200.),title="Energy in FCAL1;E;Entries",xvar=VarSpec('EnergyPerSampling[22]')),
26  HistoSpec("FCAL2",(100,0.,200.),title="Energy in FCAL2;E;Entries",xvar=VarSpec('EnergyPerSampling[23]')),
27 ]

Definition at line 135 of file JetMonitoringStandard.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
JetMonitoringStandard.jetMonAlgConfig
def jetMonAlgConfig(jetName, inputFlags, truthJetName='', trigger='')
Definition: JetMonitoringStandard.py:174
python.BadLBFilterToolConfig.LArBadLBFilterToolCfg
def LArBadLBFilterToolCfg(inputFlags, origDbTag=None)
Definition: BadLBFilterToolConfig.py:100
JetMonitoringStandard.standardJetMonitoring
def standardJetMonitoring(inputFlags)
Definition: JetMonitoringStandard.py:216
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:25
python.EventFlagFilterToolConfig.EventFlagFilterToolCfg
def EventFlagFilterToolCfg(flags, name="EventFlagFilter", doLAr=True, doTile=True, doSCT=True, doCore=True, alwaysReturnTrue=False)
Definition: EventFlagFilterToolConfig.py:5