ATLAS Offline Software
Loading...
Searching...
No Matches
python.CaloThinCellsBySamplingAlg_test Namespace Reference

Classes

class  CheckThinningAlg
class  CreateDataAlg

Functions

 make_calo_cells (mgr)
 testCfg (flags)

Variables

 flags = initConfigFlags()
 Files
 TimeStamps
 GeometryLAr
 GeometryTile
 acc = MainServicesCfg(flags)

Function Documentation

◆ make_calo_cells()

python.CaloThinCellsBySamplingAlg_test.make_calo_cells ( mgr)

Definition at line 16 of file CaloThinCellsBySamplingAlg_test.py.

16def make_calo_cells (mgr):
17 ccc = ROOT.CaloCellContainer()
18 for i in range (mgr.element_size()):
19 elt = mgr.get_element (ROOT.IdentifierHash (i))
20 if not elt: break
21 cc = ROOT.CaloCell (elt, 0, 0, 0, 0)
22 ccc.push_back (cc)
23 ROOT.SetOwnership (cc, False)
24 ccc.order()
25 ccc.updateCaloIterators()
26 return ccc
27
28

◆ testCfg()

python.CaloThinCellsBySamplingAlg_test.testCfg ( flags)

Definition at line 53 of file CaloThinCellsBySamplingAlg_test.py.

53def testCfg (flags):
54 result = ComponentAccumulator()
55
56 from LArGeoAlgsNV.LArGMConfig import LArGMCfg
57 from TileGeoModel.TileGMConfig import TileGMCfg
58 result.merge(LArGMCfg(flags))
59 result.merge(TileGMCfg(flags))
60
61 from LArCabling.LArCablingConfig import LArOnOffIdMappingCfg
62 result.merge(LArOnOffIdMappingCfg(flags))
63
64 result.addEventAlgo (CreateDataAlg ('CreateDataAlg'))
65
66 CaloThinCellsBySamplingAlg=CompFactory.CaloThinCellsBySamplingAlg
67 result.addEventAlgo (CaloThinCellsBySamplingAlg ('thinAlg',
68 StreamName = 'StreamAOD',
69 SamplingCellsName = ['EMB3',
70 'TileGap3']))
71
72 result.addEventAlgo (CheckThinningAlg ('CheckThinningAlg'))
73 return result
74
75

Variable Documentation

◆ acc

python.CaloThinCellsBySamplingAlg_test.acc = MainServicesCfg(flags)

Definition at line 88 of file CaloThinCellsBySamplingAlg_test.py.

◆ Files

python.CaloThinCellsBySamplingAlg_test.Files

Definition at line 79 of file CaloThinCellsBySamplingAlg_test.py.

◆ flags

python.CaloThinCellsBySamplingAlg_test.flags = initConfigFlags()

Definition at line 78 of file CaloThinCellsBySamplingAlg_test.py.

◆ GeometryLAr

python.CaloThinCellsBySamplingAlg_test.GeometryLAr

Definition at line 81 of file CaloThinCellsBySamplingAlg_test.py.

◆ GeometryTile

python.CaloThinCellsBySamplingAlg_test.GeometryTile

Definition at line 82 of file CaloThinCellsBySamplingAlg_test.py.

◆ TimeStamps

python.CaloThinCellsBySamplingAlg_test.TimeStamps

Definition at line 80 of file CaloThinCellsBySamplingAlg_test.py.