ATLAS Offline Software
Loading...
Searching...
No Matches
LArCosmicsMonAlg Namespace Reference

Functions

 LArCosmicsMonConfig (flags)
 LArCosmicsMonConfigCore (helper, algoinstance, flags)

Function Documentation

◆ LArCosmicsMonConfig()

LArCosmicsMonAlg.LArCosmicsMonConfig ( flags)
Function to configures some algorithms in the monitoring system.

Definition at line 6 of file LArCosmicsMonAlg.py.

6def LArCosmicsMonConfig(flags):
7 '''Function to configures some algorithms in the monitoring system.'''
8
9 # The following class will make a sequence, configure algorithms, and link
10 # them to GenericMonitoringTools
11
12 from AthenaMonitoring.AthMonitorCfgHelper import AthMonitorCfgHelper
13 helper = AthMonitorCfgHelper(flags,'LArCosmicsMonAlgCfg')
14
15 from AthenaConfiguration.ComponentFactory import CompFactory
16 LArCosmicsMonConfigCore(helper, CompFactory.LArCosmicsMonAlg,flags)
17
18 return helper.result()
19
20

◆ LArCosmicsMonConfigCore()

LArCosmicsMonAlg.LArCosmicsMonConfigCore ( helper,
algoinstance,
flags )

Definition at line 21 of file LArCosmicsMonAlg.py.

21def LArCosmicsMonConfigCore(helper, algoinstance,flags):
22
23
24 from LArMonitoring.GlobalVariables import lArDQGlobals
25
26 larCosmicsMonAlg = helper.addAlgorithm(algoinstance,'larCosmicsMonAlg')
27
28 larCosmicsMonAlg.CosmicsMonGroupName = 'LarCosmicsMonGroup'
29 larCosmicsMonAlg.MuonADCthreshold_EM_barrel = 30
30 larCosmicsMonAlg.MuonADCthreshold_EM_endcap = 40
31 larCosmicsMonAlg.MuonADCthreshold_HEC = 40
32 larCosmicsMonAlg.MuonADCthreshold_FCAL = 40
33 larCosmicsMonAlg.ProblemsToMask=["deadReadout","deadPhys","short","almostDead","highNoiseHG","highNoiseMG","highNoiseLG","sporadicBurstNoise"]
34
35
36 #mon group
37 cosmicMonGroup = helper.addGroup(
38 larCosmicsMonAlg,
39 larCosmicsMonAlg.CosmicsMonGroupName,
40 '/LAr/',
41 'run'
42 )
43
44 cosmic_path="Cosmics/"
45
46 EM_bins=sorted(list(set(lArDQGlobals.Cell_Variables["etaRange"]["EMEC"]["C"]["2"]+lArDQGlobals.Cell_Variables["etaRange"]["EMB"]["C"]["2"]+lArDQGlobals.Cell_Variables["etaRange"]["EMB"]["A"]["2"]+lArDQGlobals.Cell_Variables["etaRange"]["EMEC"]["A"]["2"])))
47 cosmicMonGroup.defineHistogram('mon_eta_EM,mon_phi;Muon2DHitsECAL',
48 type='TH2F',
49 path=cosmic_path,
50 title='Cosmics Seeds - Digit Max > '+str(int(larCosmicsMonAlg.MuonADCthreshold_EM_barrel))+'/'+str(int(larCosmicsMonAlg.MuonADCthreshold_EM_endcap))+' [ADC] in S2 Barrel/Endcap - EM;#eta cell;#phi cell;Number of Hits',
51 xbins=EM_bins,
52 ybins=lArDQGlobals.Cell_Variables["phiRange"]["EMB"]["A"]["2"])
53
54 HEC_bins=sorted(list(set(lArDQGlobals.Cell_Variables["etaRange"]["HEC"]["C"]["1"]+lArDQGlobals.Cell_Variables["etaRange"]["HEC"]["A"]["1"])))
55 cosmicMonGroup.defineHistogram('mon_eta_HEC,mon_phi;Muon2DHitsHCAL',
56 type='TH2F',
57 path=cosmic_path,
58 title='Cosmics Seeds - Digit Max > '+str(int(larCosmicsMonAlg.MuonADCthreshold_HEC))+' [ADC] in S1 HEC;#eta cell;#phi cell;Number of Hits',
59 xbins=HEC_bins,
60 ybins=lArDQGlobals.Cell_Variables["phiRange"]["HEC"]["A"]["1"])
61
62 FCal_bins=sorted(list(set(lArDQGlobals.Cell_Variables["etaRange"]["FCal"]["C"]["2"]+lArDQGlobals.Cell_Variables["etaRange"]["FCal"]["A"]["2"])))
63 cosmicMonGroup.defineHistogram('mon_eta_FCal,mon_phi;Muon2DHitsFCAL',
64 type='TH2F',
65 path=cosmic_path,
66 title='Cosmics Seeds - Digit Max > '+str(int(larCosmicsMonAlg.MuonADCthreshold_FCAL))+' [ADC] in S2 FCal;#eta cell;#phi cell;Number of Hits',
67 xbins=FCal_bins,
68 ybins=lArDQGlobals.Cell_Variables["phiRange"]["FCal"]["A"]["2"])
69
70
71
72
STL class.