![]() |
ATLAS Offline Software
|
TRT_LocalOccupancy is a tool to compute the TRT occupancy for the elements crossed by a track. More...
#include <TRT_LocalOccupancy.h>
Classes | |
| struct | OccupancyData |
Public Member Functions | |
| TRT_LocalOccupancy (const std::string &, const std::string &, const IInterface *) | |
| virtual StatusCode | initialize () override |
| standard Athena-Algorithm method | |
| virtual float | LocalOccupancy (const EventContext &ctx, const Trk::Track &track) const override |
| Return the local occupancy for the sectors crossed by a given track. | |
| virtual float | LocalOccupancy (const EventContext &ctx, const double eta, const double phi) const override |
| virtual std::map< int, double > | getDetectorOccupancy (const EventContext &ctx, const TRT_RDO_Container *p_trtRDOContainer) const override |
| Return a map of the occupancy in the barrel (-1,+1) and endcaps (-2,+2) | |
| virtual std::vector< float > | GlobalOccupancy (const EventContext &ctx) const override |
| Return the global occupancy of the event. | |
Static Public Attributes | |
| static const int | NTOTAL = 7 |
| static const int | NLOCAL = 6 |
| static const int | NWHEEL = 34 |
| static const int | NLOCALPHI = 32 |
Private Member Functions | |
| const OccupancyData * | getData (const EventContext &ctx) const |
| std::unique_ptr< OccupancyData > | makeData (const EventContext &ctx) const |
| std::unique_ptr< OccupancyData > | makeDataTrigger (const EventContext &ctx) const |
| bool | passValidityGate (unsigned int word, float t0) const |
| void | countHitsNearTrack (const EventContext &ctx, OccupancyData &data, int track_local[NLOCAL][NLOCALPHI]) const |
| int | findArrayTotalIndex (const int det, const int lay) const |
| To convert from array index to det id and viceversa. | |
| int | mapEtaToPartition (const double eta) const |
Static Private Member Functions | |
| static bool | isMiddleBXOn (unsigned int word) |
| static int | mapPhiToPhisector (const double phi) |
Private Attributes | |
| const TRT_ID * | m_TRTHelper {} |
| External tools: | |
| ToolHandle< ITRT_CalDbTool > | m_CalDbTool {this, "TRTCalDbTool", "TRT_CalDbTool", ""} |
| SG::ReadHandleKey< TRT_DriftCircleContainer > | m_trt_driftcircles { this, "TRT_DriftCircleCollection", "TRT_DriftCircles", "m_trt_driftcircles" } |
| SG::ReadCondHandleKey< TRTCond::AliveStraws > | m_strawReadKey {this,"AliveStraws","AliveStraws","AliveStraws in-key"} |
| SG::ReadCondHandleKey< TRTCond::StrawStatusData > | m_strawStatusKey {this,"StrawStatus","StrawStatusData","StrawStatus key"} |
| SG::ReadHandleKey< OccupancyData > | m_occupancyCacheRead {"OccupancyData"} |
| SG::WriteHandleKey< OccupancyData > | m_occupancyCacheWrite {"OccupancyData"} |
| Gaudi::Property< bool > | m_isTrigger {this, "isTrigger", false, ""} |
| Gaudi::Property< bool > | m_T0Shift {this, "includeT0Shift", true, "choice to use T0shift or not"} |
| Gaudi::Property< float > | m_lowGate {this, "LowGate", 14.0625*Gaudi::Units::ns, ""} |
| Gaudi::Property< float > | m_highGate {this, "HighGate", 42.1875*Gaudi::Units::ns, ""} |
| Gaudi::Property< float > | m_lowWideGate {this, "LowWideGate", 20.3125*Gaudi::Units::ns, ""} |
| Gaudi::Property< float > | m_highWideGate {this, "HighWideGate", 54.6875*Gaudi::Units::ns, ""} |
TRT_LocalOccupancy is a tool to compute the TRT occupancy for the elements crossed by a track.
This tool has to be called with: StartEvent() before checking occupancy for a given track, so the different volumes are computed.
Then, for each track call LocalOccupancy( Track ) and a will be returned.
Definition at line 52 of file TRT_LocalOccupancy.h.
| InDet::TRT_LocalOccupancy::TRT_LocalOccupancy | ( | const std::string & | t, |
| const std::string & | n, | ||
| const IInterface * | p ) |
Definition at line 42 of file TRT_LocalOccupancy.cxx.
|
private |
Definition at line 262 of file TRT_LocalOccupancy.cxx.
|
private |
To convert from array index to det id and viceversa.
Definition at line 403 of file TRT_LocalOccupancy.cxx.
|
private |
Definition at line 452 of file TRT_LocalOccupancy.cxx.
|
overridevirtual |
Return a map of the occupancy in the barrel (-1,+1) and endcaps (-2,+2)
Definition at line 191 of file TRT_LocalOccupancy.cxx.
|
overridevirtual |
Return the global occupancy of the event.
7 Floats: TRT, Barrel A / C, endcapA/B A/C
Definition at line 80 of file TRT_LocalOccupancy.cxx.
|
overridevirtual |
standard Athena-Algorithm method
Definition at line 51 of file TRT_LocalOccupancy.cxx.
|
staticprivate |
|
overridevirtual |
Definition at line 341 of file TRT_LocalOccupancy.cxx.
|
overridevirtual |
Return the local occupancy for the sectors crossed by a given track.
Definition at line 111 of file TRT_LocalOccupancy.cxx.
|
private |
Definition at line 465 of file TRT_LocalOccupancy.cxx.
|
private |
Definition at line 534 of file TRT_LocalOccupancy.cxx.
|
private |
Definition at line 434 of file TRT_LocalOccupancy.cxx.
|
staticprivate |
Definition at line 421 of file TRT_LocalOccupancy.cxx.
|
private |
Definition at line 384 of file TRT_LocalOccupancy.cxx.
|
private |
Definition at line 112 of file TRT_LocalOccupancy.h.
|
private |
Definition at line 124 of file TRT_LocalOccupancy.h.
|
private |
Definition at line 127 of file TRT_LocalOccupancy.h.
|
private |
Definition at line 121 of file TRT_LocalOccupancy.h.
|
private |
Definition at line 123 of file TRT_LocalOccupancy.h.
|
private |
Definition at line 126 of file TRT_LocalOccupancy.h.
|
private |
Definition at line 118 of file TRT_LocalOccupancy.h.
|
private |
Definition at line 119 of file TRT_LocalOccupancy.h.
|
private |
Definition at line 115 of file TRT_LocalOccupancy.h.
|
private |
Definition at line 116 of file TRT_LocalOccupancy.h.
|
private |
Definition at line 122 of file TRT_LocalOccupancy.h.
|
private |
Definition at line 113 of file TRT_LocalOccupancy.h.
|
private |
|
static |
Definition at line 77 of file TRT_LocalOccupancy.h.
|
static |
Definition at line 79 of file TRT_LocalOccupancy.h.
|
static |
Definition at line 75 of file TRT_LocalOccupancy.h.
|
static |
Definition at line 78 of file TRT_LocalOccupancy.h.