ATLAS Offline Software
CSV_DictFormats.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 CSV_DictFormats = {
4  #All obtained AuxElement content using the HitsToxAODCopier tool
5  "PixelHits": { "col": "int", "row": "int", "tot": "int", "eta_module": "int", "phi_module": "int", "layer_disk": "int", "barrel_ec": "int", "detid": "unsigned long"},
6  "StripHits": { "strip": "int", "side": "int", "eta_module": "int", "phi_module": "int", "layer_disk": "int", "barrel_ec": "int", "detid": "unsigned long"},
7 
8  # Variables from the container:
9  #https://gitlab.cern.ch/atlas/athena/-/blob/master/Event/xAOD/xAODInDetMeasurement/xAODInDetMeasurement/versions/PixelClusterAuxContainer_v1.h
10  "ITkPixelClusters": {"globalPosition":"std::array<float,3>", "channelsInPhi":"int", "channelsInEta":"int", "widthInEta":"float", "omegaX":"float", "omegaY":"float", "totalToT":"int", "totalCharge":"float", "energyLoss":"float", "splitProbability1":"float", "splitProbability2":"float", "lvl1a":"int"},
11  # ITkPixelClusters.isSplit is char with all ''? Keeping out for the moment
12 
13  # Variables from the container:
14  #https://gitlab.cern.ch/atlas/athena/-/blob/master/Event/xAOD/xAODInDetMeasurement/xAODInDetMeasurement/versions/StripClusterAuxContainer_v1.h
15  "ITkStripClusters": {"globalPosition":"std::array<float,3>", "channelsInPhi":"int"},
16 
17  # Variables from the container:
18  #https://gitlab.cern.ch/atlas/athena/-/blob/master/Event/xAOD/xAODInDetMeasurement/xAODInDetMeasurement/versions/SpacePoint_v1.h
19  "ITkStripSpacePoints": {"globalPosition":"std::array<float,3>", "radius":"float", "varianceR":"float", "varianceZ":"float", "topHalfStripLength":"float", "bottomHalfStripLength":"float", "topStripDirection":"xAOD::ArrayFloat3", "bottomStripDirection":"xAOD::ArrayFloat3", "stripCenterDistance":"xAOD::ArrayFloat3", "topStripCenter":"xAOD::ArrayFloat3"},
20 
21  # Variables from the container:
22  #https://gitlab.cern.ch/atlas/athena/-/blob/master/Event/xAOD/xAODInDetMeasurement/xAODInDetMeasurement/versions/SpacePoint_v1.h
23  "ITkPixelSpacePoints": {"globalPosition":"std::array<float,3>", "radius":"float", "varianceR":"float", "varianceZ":"float"},
24 
25  # Variables from the container:
26  #https://gitlab.cern.ch/atlas/athena/-/blob/main/Event/xAOD/xAODTracking/xAODTracking/versions/TrackSurfaceAuxContainer_v1.h
27  # This container is empty
28  "ActsTrackSurfaces":
29  {
30  "translation":"vector<float>",
31  "rotation":"vector<float>",
32  "boundValues":"vector<float>",
33  "surfaceType":"int",
34  },
35  "ActsTrackStateSurfaces": # this is the same type as above, two entries as output can possibly be customized differently
36  {
37  "translation":"vector<float>",
38  "rotation":"vector<float>",
39  "boundValues":"vector<float>",
40  "surfaceType":"xAOD::SurfaceType",
41  },
42 
43  "ActsTrackMeasurements":
44  {
45  "meas":"vector<double>",
46  "covMatrix":"vector<double>",
47  },
48 
49  "ActsTrackStates":
50  {
51  "chi2":"float",
52  "pathLength":"double",
53  "typeFlags":"uint64_t",
54  "previous":"uint32_t",
55  "next":"uint32_t",
56  "predicted":"uint32_t",
57  "filtered":"uint32_t",
58  "smoothed":"uint32_t",
59  "jacobian":"uint32_t",
60  "calibrated":"uint32_t",
61  "measDim":"uint32_t",
62  "geometryId":"uint64_t",
63  "surfaceIndex":"unsigned int"
64  },
65 
66  "ActsTrackSummary":
67  {
68  "chi2f":"float",
69  "nMeasurements":"unsigned int",
70  "nHoles":"unsigned int",
71  "ndf":"unsigned int",
72  "nOutliers":"unsigned int",
73  "nSharedHits":"unsigned int",
74  "tipIndex":"unsigned int",
75  "stemIndex":"unsigned int",
76  "particleHypothesis":"uint8_t",
77  "params":"vector<double>",
78  "covParams":"vector<double>",
79  "surfaceIndex":"unsigned int"
80 
81  },
82 
83  "ActsTrackJacobians":
84  {
85  "jac":"vector<double>",
86  },
87 
88  "ActsTrackParameters":
89  {
90  "params":"vector<double>",
91  "covMatrix":"vector<double>",
92  },
93 
94  "TruthParticles":
95  {
96  "pdgId":"int",
97  "barcode":"int",
98  "status":"int",
99  "px":"float", "py":"float", "pz":"float",
100  "e":"float","m":"float"
101  },
102 
103  "TruthVertices":
104  {
105  "id":"int",
106  "barcode":"int",
107  "x":"float", "y":"float", "z":"float",
108  "t":"float"
109  },
110 
111  # Variables from the container:
112  #https://gitlab.cern.ch/atlas/athena/-/blob/master/Event/xAOD/xAODTracking/xAODTracking/versions/TrackParticle_v1.h
113  "InDetTrackParticles":
114  {
115  "eta":"float", "theta":"float", "phi":"float", "charge":"float", "d0":"float", "z0":"float", "qOverP":"float",
116  "definingParametersCovMatrixDiag":"vector<float>", "definingParametersCovMatrixOffDiag":"vector<float>",
117  "vx":"float", "vy":"float", "vz":"float",
118  "radiusOfFirstHit":"float", "identifierOfFirstHit":"uint64_t",
119 
120  # Variables from the container:
121  #https://gitlab.cern.ch/atlas/athena/-/blob/main/Event/xAOD/xAODTracking/xAODTracking/versions/TrackParticleAuxContainer_v5.h
122  # For these variables the getConstDataSpan is failing, read using getattr
123  "pt":"float",
124  "m":"float",
125  "e":"float",
126  "rapidity":"float",
127  "phi0":"float",
128  "numberOfParameters":"unsigned int",
129  },
130 
131 }
132