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

Functions

 HIEventSelectionRun3MonToolCfg (flags)
 HIEventSelectionRun3Cfg (flags, enableValidation=False)

Variables

str data_hi = "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/data_hi/"
dict test_files
 flags = initConfigFlags()
 MaxEvents
 Files
 acc = MainServicesCfg(flags)
 OutputLevel
 filterAlg = acc.getEventAlgo("HIEventFilterAlgRun3")
 UseIonDataTypeDefaultMask
 withDetails
 status = acc.run()

Function Documentation

◆ HIEventSelectionRun3Cfg()

HIEventSelectionRun3Config.HIEventSelectionRun3Cfg ( flags,
enableValidation = False )

Definition at line 58 of file HIEventSelectionRun3Config.py.

58def HIEventSelectionRun3Cfg(flags, enableValidation=False):
59 acc = ComponentAccumulator()
60 # in future decide cut level for tracks depending on input dataset
61 # for now default to HILoose cuts set with 0.5 GeV
62 trackSelectionTool = acc.popToolsAndMerge(InDetTrackSelectionTool_HILoose_Cfg(flags,
63 minPt=0.5*Units.GeV))
64 filterTool = CompFactory.HI.HIEventSelectionToolRun3(TrackSelectionTool=trackSelectionTool)
65
66 # ZDC modules collection change its name
67 zdcKey=None
68 zdcNeeded=True # in the future add check if ZDC info is required in fact
69 if zdcNeeded and "ZdcModules" in flags.Input.Collections:
70 zdcKey="ZdcModules"
71 elif zdcNeeded and "ZDCModules" in flags.Input.Collections:
72 zdcKey="ZDCModules"
73 elif zdcNeeded and "ZdcSums" in flags.Input.Collections:
74 zdcKey="ZdcSums"
75
76 if zdcNeeded and not zdcKey:
77 raise ConfigurationError("The input file does not have any ZDCModules (any capitalisation) container and ZDC info is needed for selection")
78
79 monTool = acc.popToolsAndMerge(HIEventSelectionRun3MonToolCfg(flags)) if enableValidation else None
80
81 filterAlg = CompFactory.HI.HIEventFilterAlgRun3(name="HIEventFilterAlgRun3",
82 SelectionTool=filterTool,
83 ZDC=zdcKey,
84 MonTool=monTool )
85 acc.addEventAlgo(filterAlg)
86 return acc
87

◆ HIEventSelectionRun3MonToolCfg()

HIEventSelectionRun3Config.HIEventSelectionRun3MonToolCfg ( flags)

Definition at line 8 of file HIEventSelectionRun3Config.py.

8def HIEventSelectionRun3MonToolCfg(flags):
9 acc = ComponentAccumulator()
10
11 from AthenaMonitoringKernel.GenericMonitoringTool import GenericMonitoringTool
12 monTool = GenericMonitoringTool(flags, "MonTool")
13 monTool.defineHistogram( 'fcalEt,zdcE;fcalEt_vs_zdcE_all', path='EXPERT', type='TH2F', title=';FCal Et;ZDC E',
14 xbins=160, xmin=0, xmax=1000, ybins=120, ymin=0, ymax=60)
15
16 monTool.defineHistogram( 'fcalEt,zdcE;fcalEt_vs_zdcE_passed', cutmask='PUFCalVsZDCAny_passed', path='EXPERT', type='TH2F', title=';FCal Et;ZDC E',
17 xbins=160, xmin=0, xmax=1000, ybins=120, ymin=0, ymax=60)
18
19 monTool.defineHistogram( 'fcalEt,zdcE;fcalEt_vs_zdcE_failed', cutmask='PUFCalVsZDCAny_failed', path='EXPERT', type='TH2F', title=';FCal Et;ZDC E',
20 xbins=160, xmin=0, xmax=1000, ybins=120, ymin=0, ymax=60)
21
22 monTool.defineHistogram( 'fcalEt,nTrk;fcalEt_vs_nTrk_all', path='EXPERT', type='TH2F', title=';FCal Et;nTrk',
23 xbins=160, xmin=0, xmax=1000, ybins=120, ymin=0, ymax=600)
24
25 monTool.defineHistogram( 'fcalEt,nTrk;fcalEt_vs_nTrk_passed', cutmask='PUFCalVsNTrackAny_passed', path='EXPERT', type='TH2F', title=';FCal Et;nTrk',
26 xbins=160, xmin=0, xmax=1000, ybins=120, ymin=0, ymax=600)
27
28 monTool.defineHistogram( 'fcalEt,nTrk;fcalEt_vs_nTrk_failed', cutmask='PUFCalVsNTrackAny_failed', path='EXPERT', type='TH2F', title=';FCal Et;nTrk',
29 xbins=160, xmin=0, xmax=1000, ybins=120, ymin=0, ymax=600)
30
31
32
33 monTool.defineHistogram( 'zdcPreSampleA;zdcPreSampleA_all', path='EXPERT', type='TH1F', title='all;ZDCPreampleAmp side A',
34 xbins=100, xmin=-400, xmax=1000)
35
36 monTool.defineHistogram( 'zdcPreSampleC;zdcPreSampleC_all', path='EXPERT', type='TH1F', title='all;ZDCPreampleAmp side C',
37 xbins=100, xmin=-400, xmax=1000)
38
39
40 monTool.defineHistogram( 'zdcPreSampleA,zdcPreSampleC', path='EXPERT', type='TH2F', title='correlation;ZDCPreampleAmp side A;ZDCPreampleAmp side C',
41 xbins=50, xmin=-400, xmax=1000, ybins=50, ymin=-400, ymax=1000)
42
43 monTool.defineHistogram( 'zdcPreSampleA;zdcPreSampleA_failed', cutmask="NoPUZDCPresampler_failed", path='EXPERT', type='TH1F', title='failed;ZDCPreampleAmp side A',
44 xbins=100, xmin=-400, xmax=1000)
45
46 monTool.defineHistogram( 'zdcPreSampleC;zdcPreSampleC_failed', cutmask="NoPUZDCPresampler_failed", path='EXPERT', type='TH1F', title='failed;ZDCPreampleAmp side C',
47 xbins=100, xmin=-400, xmax=1000)
48
49
50 prefix=flags.Input.Files[0].split("/")[-1]
51 histsvc = CompFactory.THistSvc(Output=[f"EXPERT DATAFILE='{prefix}HIEventSelectionRun3Validation.root' OPT='RECREATE'"])
52 acc.addService(histsvc)
53 acc.setPrivateTools(monTool)
54 return acc
55
56
57
std::vector< std::string > split(const std::string &s, const std::string &t=":")
Definition hcg.cxx:177

Variable Documentation

◆ acc

HIEventSelectionRun3Config.acc = MainServicesCfg(flags)

Definition at line 108 of file HIEventSelectionRun3Config.py.

◆ data_hi

str HIEventSelectionRun3Config.data_hi = "/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/data_hi/"

Definition at line 91 of file HIEventSelectionRun3Config.py.

◆ Files

HIEventSelectionRun3Config.Files

Definition at line 104 of file HIEventSelectionRun3Config.py.

◆ filterAlg

HIEventSelectionRun3Config.filterAlg = acc.getEventAlgo("HIEventFilterAlgRun3")

Definition at line 117 of file HIEventSelectionRun3Config.py.

◆ flags

HIEventSelectionRun3Config.flags = initConfigFlags()

Definition at line 100 of file HIEventSelectionRun3Config.py.

◆ MaxEvents

HIEventSelectionRun3Config.MaxEvents

Definition at line 102 of file HIEventSelectionRun3Config.py.

◆ OutputLevel

HIEventSelectionRun3Config.OutputLevel

Definition at line 115 of file HIEventSelectionRun3Config.py.

◆ status

HIEventSelectionRun3Config.status = acc.run()

Definition at line 124 of file HIEventSelectionRun3Config.py.

◆ test_files

dict HIEventSelectionRun3Config.test_files
Initial value:
1= {"23PbPb":"data23_hi.00463364.physics_HardProbes.AOD.r16069_p6447_skim",
2 "24PbPb":"data24_hi.00490145.physics_HardProbes.AOD.f1550_m2267_skim",
3 "25OO": "data25_hi.00501859.physics_MinBias.AOD.f1606_m2272_skim",
4 "25NeNe": "data25_hi.00502008.physics_MinBias.AOD.f1606_m2272_skim",
5 "25pO": "data25_hip.00501607.physics_MinBias.AOD.f1604_m2272_skim" }

Definition at line 92 of file HIEventSelectionRun3Config.py.

◆ UseIonDataTypeDefaultMask

HIEventSelectionRun3Config.UseIonDataTypeDefaultMask

Definition at line 121 of file HIEventSelectionRun3Config.py.

◆ withDetails

HIEventSelectionRun3Config.withDetails

Definition at line 122 of file HIEventSelectionRun3Config.py.