ATLAS Offline Software
MuonTrackSummaryAccessors_v1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // System include(s):
6 #include <iostream>
7 
8 // Local include(s):
10 
12 #define DEFINE_ACCESSOR(TYPE, NAME ) \
13  case xAOD::NAME: \
14  { \
15  static const SG::AuxElement::Accessor< TYPE > a( #NAME ); \
16  return &a; \
17  } \
18  break;
19 
20 namespace xAOD {
21 
24 
25  switch( type ) {
36 
45 
50 
55 
60 
65 
70 
75 
80 
85 
90 
95 
100 
105 
106  // New Small Wheel
107  // STGC
110 
113 
116 
119 
120  // MM
123  // Note: there is currently no MuonStationIndex for the two MM layers
124  // In the future it might be needed to add them in order to have
125  // separate counters as follows
126  // DEFINE_ACCESSOR( uint8_t, Layer1MMHits );
127  // DEFINE_ACCESSOR( uint8_t, Layer2MMHits );
128  // DEFINE_ACCESSOR( uint8_t, Layer1MMHoles );
129  // DEFINE_ACCESSOR( uint8_t, Layer2MMHoles );
130 
131 
136 
141 
143 
146 
149 
150  default:
151  std::cerr << "xAOD::MuonTrackParticle_v1 ERROR Unknown MuonSummaryType ("
152  << type << ") requested" << std::endl;
153  return nullptr;
154  }
155  }
156 
157 } // namespace xAOD
xAOD::phiLayer1STGCHoles
@ phiLayer1STGCHoles
number of phi holes in the first STGC trigger layer (STGC1)
Definition: TrackingPrimitives.h:430
xAOD::phiLayer1Hits
@ phiLayer1Hits
number of phi hits in the first trigger layer (BML1 ot T4)
Definition: TrackingPrimitives.h:348
xAOD::etaLayer4TGCHoles
@ etaLayer4TGCHoles
number of eta holes in the fourth TGC trigger layer (T3)
Definition: TrackingPrimitives.h:420
xAOD::phiLayer2STGCHits
@ phiLayer2STGCHits
number of phi hits in the second STGC trigger layer (STGC2)
Definition: TrackingPrimitives.h:425
xAOD::primarySector
@ primarySector
primary sector crossed by the muon
Definition: TrackingPrimitives.h:327
xAOD::etaLayer2RPCHoles
@ etaLayer2RPCHoles
number of eta holes in the second RPC trigger layer (BML2)
Definition: TrackingPrimitives.h:398
xAOD::etaLayer1Hits
@ etaLayer1Hits
number of eta hits in the first trigger layer (BML1 ot T4)
Definition: TrackingPrimitives.h:353
xAOD::etaLayer2TGCHoles
@ etaLayer2TGCHoles
number of eta holes in the second TGC trigger layer (T1)
Definition: TrackingPrimitives.h:418
xAOD::phiLayer2TGCHoles
@ phiLayer2TGCHoles
number of phi holes in the second TGC trigger layer (T1)
Definition: TrackingPrimitives.h:413
xAOD::phiLayer3RPCHoles
@ phiLayer3RPCHoles
number of phi holes in the third RPC trigger layer (BOL1)
Definition: TrackingPrimitives.h:394
xAOD::phiLayer3Hits
@ phiLayer3Hits
number of phi hits in the third trigger layer (BOL1 ot T2)
Definition: TrackingPrimitives.h:350
xAOD::phiLayer2Holes
@ phiLayer2Holes
number of phi holes in the second trigger layer (BML2 ot T1)
Definition: TrackingPrimitives.h:359
xAOD::phiLayer4Hits
@ phiLayer4Hits
number of phi hits in the fourth trigger layer (T3)
Definition: TrackingPrimitives.h:351
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
MuonTrackSummaryAccessors_v1.h
xAOD::etaLayer3TGCHits
@ etaLayer3TGCHits
number of eta hits in the third TGC trigger layer (T2)
Definition: TrackingPrimitives.h:409
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
xAOD::outerClosePrecisionHits
@ outerClosePrecisionHits
number of close precision hits in the outer layer
Definition: TrackingPrimitives.h:370
xAOD::etaLayer3RPCHoles
@ etaLayer3RPCHoles
number of eta holes in the third RPC trigger layer (BOL1)
Definition: TrackingPrimitives.h:399
xAOD::etaLayer3Holes
@ etaLayer3Holes
number of eta holes in the third trigger layer (BOL1 ot T2)
Definition: TrackingPrimitives.h:365
xAOD::phiLayer1RPCHits
@ phiLayer1RPCHits
number of phi hits in the first RPC trigger layer (BML1)
Definition: TrackingPrimitives.h:382
xAOD::phiLayer1TGCHits
@ phiLayer1TGCHits
number of phi hits in the first TGC trigger layer (T4)
Definition: TrackingPrimitives.h:402
xAOD::extendedSmallHoles
@ extendedSmallHoles
number of precision holes in the extended small layer
Definition: TrackingPrimitives.h:345
xAOD::phiLayer3RPCHits
@ phiLayer3RPCHits
number of phi hits in the third RPC trigger layer (BOL1)
Definition: TrackingPrimitives.h:384
xAOD::etaLayer3RPCHits
@ etaLayer3RPCHits
number of eta hits in the third RPC trigger layer (BOL1)
Definition: TrackingPrimitives.h:389
xAOD::innerOutBoundsPrecisionHits
@ innerOutBoundsPrecisionHits
number of out-of-bounds hits in the inner layer
Definition: TrackingPrimitives.h:373
xAOD::etaLayer1STGCHoles
@ etaLayer1STGCHoles
number of eta holes in the first STGC trigger layer (STGC1)
Definition: TrackingPrimitives.h:433
xAOD::etaLayer2TGCHits
@ etaLayer2TGCHits
number of eta hits in the second TGC trigger layer (T1)
Definition: TrackingPrimitives.h:408
xAOD::extendedClosePrecisionHits
@ extendedClosePrecisionHits
number of close precision hits in the extended layer
Definition: TrackingPrimitives.h:371
xAOD::phiLayer4TGCHits
@ phiLayer4TGCHits
number of phi hits in the fourth TGC trigger layer (T3)
Definition: TrackingPrimitives.h:405
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::MMHoles
@ MMHoles
Definition: TrackingPrimitives.h:438
xAOD::middleLargeHoles
@ middleLargeHoles
number of precision holes in the middle large layer
Definition: TrackingPrimitives.h:342
xAOD::etaLayer2Holes
@ etaLayer2Holes
number of eta holes in the second trigger layer (BML2 ot T1)
Definition: TrackingPrimitives.h:364
xAOD::outerLargeHoles
@ outerLargeHoles
number of precision holes in the outer large layer
Definition: TrackingPrimitives.h:344
xAOD::MuonSummaryType
MuonSummaryType
Enumerates the different types of information stored in Summary.
Definition: TrackingPrimitives.h:324
xAOD::outerOutBoundsPrecisionHits
@ outerOutBoundsPrecisionHits
number of out-of-bounds hits in the outer layer
Definition: TrackingPrimitives.h:375
xAOD::phiLayer4RPCHits
@ phiLayer4RPCHits
number of phi hits in the fourth RPC trigger layer (BOL2)
Definition: TrackingPrimitives.h:385
xAOD::innerLargeHits
@ innerLargeHits
number of precision hits in the inner large layer
Definition: TrackingPrimitives.h:331
xAOD::extendedOutBoundsPrecisionHits
@ extendedOutBoundsPrecisionHits
number of out-of-bounds hits in the extended layer
Definition: TrackingPrimitives.h:376
xAOD::cscUnspoiledEtaHits
@ cscUnspoiledEtaHits
number of unspoiled CSC eta clusters on track
Definition: TrackingPrimitives.h:450
xAOD::phiLayer2RPCHits
@ phiLayer2RPCHits
number of phi hits in the second RPC trigger layer (BML2)
Definition: TrackingPrimitives.h:383
xAOD::etaLayer3Hits
@ etaLayer3Hits
number of eta hits in the third trigger layer (BOL1 ot T2)
Definition: TrackingPrimitives.h:355
xAOD::muonTrackSummaryAccessorV1
const SG::AuxElement::Accessor< uint8_t > * muonTrackSummaryAccessorV1(xAOD::MuonSummaryType type)
Helper function for managing MuonTrackSummary Accessor objects.
Definition: MuonTrackSummaryAccessors_v1.cxx:23
xAOD::middleLargeHits
@ middleLargeHits
number of precision hits in the middle large layer
Definition: TrackingPrimitives.h:333
xAOD::outerSmallHoles
@ outerSmallHoles
number of precision holes in the outer small layer
Definition: TrackingPrimitives.h:343
xAOD::phiLayer3Holes
@ phiLayer3Holes
number of phi holes in the third trigger layer (BOL1 ot T2)
Definition: TrackingPrimitives.h:360
xAOD::etaLayer1RPCHits
@ etaLayer1RPCHits
number of eta hits in the first RPC trigger layer (BML1)
Definition: TrackingPrimitives.h:387
xAOD::phiLayer2Hits
@ phiLayer2Hits
number of phi hits in the second trigger layer (BML2 ot T1)
Definition: TrackingPrimitives.h:349
xAOD::etaLayer1TGCHoles
@ etaLayer1TGCHoles
number of eta holes in the first TGC trigger layer (T4)
Definition: TrackingPrimitives.h:417
xAOD::etaLayer2Hits
@ etaLayer2Hits
number of eta hits in the second trigger layer (BML2 ot T1)
Definition: TrackingPrimitives.h:354
xAOD::innerLargeHoles
@ innerLargeHoles
number of precision holes in the inner large layer
Definition: TrackingPrimitives.h:340
xAOD::extendedLargeHits
@ extendedLargeHits
number of precision hits in the extended large layer
Definition: TrackingPrimitives.h:337
xAOD::innerClosePrecisionHits
@ innerClosePrecisionHits
number of close precision hits in the inner layer
Definition: TrackingPrimitives.h:368
xAOD::etaLayer2STGCHoles
@ etaLayer2STGCHoles
number of eta holes in the second STGC trigger layer (STGC2)
Definition: TrackingPrimitives.h:434
xAOD::MMHits
@ MMHits
Definition: TrackingPrimitives.h:437
xAOD::middleClosePrecisionHits
@ middleClosePrecisionHits
number of close precision hits in the middle layer
Definition: TrackingPrimitives.h:369
xAOD::middleSmallHoles
@ middleSmallHoles
number of precision holes in the middle small layer
Definition: TrackingPrimitives.h:341
xAOD::combinedTrackOutBoundsPrecisionHits
@ combinedTrackOutBoundsPrecisionHits
total out-of-bounds hits on the combined track
Definition: TrackingPrimitives.h:377
xAOD::phiLayer4TGCHoles
@ phiLayer4TGCHoles
number of phi holes in the fourth TGC trigger layer (T3)
Definition: TrackingPrimitives.h:415
xAOD::cscEtaHits
@ cscEtaHits
number of CSC eta clusters on the track
Definition: TrackingPrimitives.h:449
xAOD::isSmallGoodSectors
@ isSmallGoodSectors
if non-deweighted track chambers are small
Definition: TrackingPrimitives.h:380
xAOD::phiLayer3TGCHits
@ phiLayer3TGCHits
number of phi hits in the third TGC trigger layer (T2)
Definition: TrackingPrimitives.h:404
xAOD::etaLayer2RPCHits
@ etaLayer2RPCHits
number of eta hits in the second RPC trigger layer (BML2)
Definition: TrackingPrimitives.h:388
xAOD::etaLayer2STGCHits
@ etaLayer2STGCHits
number of eta hits in the second STGC trigger layer (STGC2)
Definition: TrackingPrimitives.h:428
xAOD::etaLayer1Holes
@ etaLayer1Holes
number of eta holes in the first trigger layer (BML1 ot T4)
Definition: TrackingPrimitives.h:363
xAOD::middleSmallHits
@ middleSmallHits
number of precision hits in the middle small layer
Definition: TrackingPrimitives.h:332
xAOD::innerSmallHoles
@ innerSmallHoles
number of precision holes in the inner small layer
Definition: TrackingPrimitives.h:339
xAOD::phiLayer1Holes
@ phiLayer1Holes
number of phi holes in the first trigger layer (BML1 ot T4)
Definition: TrackingPrimitives.h:358
xAOD::isEndcapGoodLayers
@ isEndcapGoodLayers
if non-deweighted track chambers are in endcap
Definition: TrackingPrimitives.h:379
xAOD::outerSmallHits
@ outerSmallHits
number of precision hits in the outer small layer
Definition: TrackingPrimitives.h:334
xAOD::etaLayer4RPCHoles
@ etaLayer4RPCHoles
number of eta holes in the fourth RPC trigger layer (BOL2)
Definition: TrackingPrimitives.h:400
xAOD::phiLayer1TGCHoles
@ phiLayer1TGCHoles
number of phi holes in the first TGC trigger layer (T4)
Definition: TrackingPrimitives.h:412
xAOD::etaLayer1RPCHoles
@ etaLayer1RPCHoles
number of eta holes in the first RPC trigger layer (BML1)
Definition: TrackingPrimitives.h:397
xAOD::phiLayer3TGCHoles
@ phiLayer3TGCHoles
number of phi holes in the third TGC trigger layer (T2)
Definition: TrackingPrimitives.h:414
xAOD::secondarySector
@ secondarySector
secondary sector crossed by the muon (set to the primary if the muon only passed one sector)
Definition: TrackingPrimitives.h:328
xAOD::outerLargeHits
@ outerLargeHits
number of precision hits in the outer large layer
Definition: TrackingPrimitives.h:335
xAOD::extendedLargeHoles
@ extendedLargeHoles
number of precision holes in the extended large layer
Definition: TrackingPrimitives.h:346
xAOD::phiLayer2RPCHoles
@ phiLayer2RPCHoles
number of phi holes in the second RPC trigger layer (BML2)
Definition: TrackingPrimitives.h:393
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
xAOD::etaLayer3TGCHoles
@ etaLayer3TGCHoles
number of eta holes in the third TGC trigger layer (T2)
Definition: TrackingPrimitives.h:419
xAOD::etaLayer1STGCHits
@ etaLayer1STGCHits
number of eta hits in the first STGC trigger layer (STGC1)
Definition: TrackingPrimitives.h:427
xAOD::etaLayer4Holes
@ etaLayer4Holes
number of eta holes in the fourth trigger layer (T3)
Definition: TrackingPrimitives.h:366
xAOD::phiLayer4Holes
@ phiLayer4Holes
number of phi holes in the fourth trigger layer (T3)
Definition: TrackingPrimitives.h:361
xAOD::etaLayer1TGCHits
@ etaLayer1TGCHits
number of eta hits in the first TGC trigger layer (T4)
Definition: TrackingPrimitives.h:407
xAOD::etaLayer4RPCHits
@ etaLayer4RPCHits
number of eta hits in the fourth RPC trigger layer (BOL2)
Definition: TrackingPrimitives.h:390
DEFINE_ACCESSOR
#define DEFINE_ACCESSOR(TYPE, NAME)
Helper macro for Accessor objects.
Definition: MuonTrackSummaryAccessors_v1.cxx:12
xAOD::phiLayer4RPCHoles
@ phiLayer4RPCHoles
number of phi holes in the fourth RPC trigger layer (BOL2)
Definition: TrackingPrimitives.h:395
xAOD::middleOutBoundsPrecisionHits
@ middleOutBoundsPrecisionHits
number of out-of-bounds hits in the middle layer
Definition: TrackingPrimitives.h:374
xAOD::phiLayer1STGCHits
@ phiLayer1STGCHits
number of phi hits in the first STGC trigger layer (STGC1)
Definition: TrackingPrimitives.h:424
xAOD::extendedSmallHits
@ extendedSmallHits
number of precision hits in the extended small layer
Definition: TrackingPrimitives.h:336
xAOD::innerSmallHits
@ innerSmallHits
number of precision hits in the inner small layer
Definition: TrackingPrimitives.h:330
xAOD::etaLayer4TGCHits
@ etaLayer4TGCHits
number of eta hits in the fourth TGC trigger layer (T3)
Definition: TrackingPrimitives.h:410
xAOD::phiLayer1RPCHoles
@ phiLayer1RPCHoles
number of phi holes in the first RPC trigger layer (BML1)
Definition: TrackingPrimitives.h:392
xAOD::etaLayer4Hits
@ etaLayer4Hits
number of eta hits in the fourth trigger layer (T3)
Definition: TrackingPrimitives.h:356
xAOD::phiLayer2STGCHoles
@ phiLayer2STGCHoles
number of phi holes in the second STGC trigger layer (STGC2)
Definition: TrackingPrimitives.h:431
xAOD::phiLayer2TGCHits
@ phiLayer2TGCHits
number of phi hits in the second TGC trigger layer (T1)
Definition: TrackingPrimitives.h:403