ATLAS Offline Software
Public Member Functions | List of all members
python.CaloDetDescrManager_test.CaloDetDescrManagerAlg Class Reference
Inheritance diagram for python.CaloDetDescrManager_test.CaloDetDescrManagerAlg:
Collaboration diagram for python.CaloDetDescrManager_test.CaloDetDescrManagerAlg:

Public Member Functions

def execute (self)
 

Detailed Description

Definition at line 18 of file CaloDetDescrManager_test.py.

Member Function Documentation

◆ execute()

def python.CaloDetDescrManager_test.CaloDetDescrManagerAlg.execute (   self)

Definition at line 19 of file CaloDetDescrManager_test.py.

19  def execute(self):
20  ctx = self.getContext()
21  mgr = self.condStore['CaloDetDescrManager'].find(ctx.eventID())
22  phi = 0.0
23  for sampl in [ROOT.CaloSampling.PreSamplerB,
24  ROOT.CaloSampling.EMB1,
25  ROOT.CaloSampling.EMB2,
26  ROOT.CaloSampling.EMB3,
27  ROOT.CaloSampling.PreSamplerE,
28  ROOT.CaloSampling.EME1,
29  ROOT.CaloSampling.EME2,
30  ROOT.CaloSampling.EME3,
31  ROOT.CaloSampling.HEC0,
32  ROOT.CaloSampling.HEC1,
33  ROOT.CaloSampling.HEC2,
34  ROOT.CaloSampling.HEC3,
35  ROOT.CaloSampling.TileBar0,
36  ROOT.CaloSampling.TileBar1,
37  ROOT.CaloSampling.TileBar2,
38  ROOT.CaloSampling.TileGap1,
39  ROOT.CaloSampling.TileGap2,
40  ROOT.CaloSampling.TileGap3,
41  ROOT.CaloSampling.TileExt0,
42  ROOT.CaloSampling.TileExt1,
43  ROOT.CaloSampling.TileExt2,
44  ROOT.CaloSampling.FCAL0,
45  ROOT.CaloSampling.FCAL1,
46  ROOT.CaloSampling.FCAL2,
47  ]:
48  print("Sampling:{}".format(sampl))
49  for i in range(21):
50  eta = 1e-2 + 0.2*i
51  dd = mgr.get_element(sampl, eta, phi)
52  if (dd):
53  print("----: eta:{:.2f}, phi:{:.2f}".
54  format(eta, phi))
55  print("CaloDD: r_raw:{:.2f}, r:{:.2f}, dr:{:.2f}".
56  format(dd.r_raw(), dd.r(), dd.dr()))
57  print("CaloDD: z_raw:{:.2f}, z:{:.2f}, dz:{:.2f}".
58  format(dd.z_raw(), dd.z(), dd.dz()))
59  print()
60  import sys
61  sys.stdout.flush()
62 
63  return StatusCode.Success
64 
65 

The documentation for this class was generated from the following file:
vtune_athena.format
format
Definition: vtune_athena.py:14
find
std::string find(const std::string &s)
return a remapped string
Definition: hcg.cxx:135
LArG4FSStartPointFilterLegacy.execute
execute
Definition: LArG4FSStartPointFilterLegacy.py:20
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:25