|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #ifndef INDETTRT_LOCALOCCUPANCY_H
10 #define INDETTRT_LOCALOCCUPANCY_H
14 #include "GaudiKernel/AlgTool.h"
15 #include "GaudiKernel/ToolHandle.h"
64 const double phi)
const override;
72 virtual std::vector<float>
GlobalOccupancy(
const EventContext& ctx)
const override;
94 const OccupancyData*
getData(
const EventContext& ctx)
const;
95 std::unique_ptr<OccupancyData>
makeData(
const EventContext& ctx)
const;
96 std::unique_ptr<OccupancyData>
makeDataTrigger(
const EventContext &ctx)
const;
112 ToolHandle< ITRT_CalDbTool >
m_CalDbTool{
this,
"TRTCalDbTool",
"TRT_CalDbTool",
""};
122 Gaudi::Property<bool>
m_T0Shift{
this,
"includeT0Shift",
true,
"choice to use T0shift or not"};
Property holding a SG store/key/clid from which a ReadHandle is made.
Gaudi::Property< bool > m_isTrigger
static bool isMiddleBXOn(unsigned int word)
char data[hepevt_bytes_allocation_ATLAS]
int mapEtaToPartition(const double eta) const
const OccupancyData * getData(const EventContext &ctx) const
SG::ReadCondHandleKey< TRTCond::AliveStraws > m_strawReadKey
Gaudi::Property< bool > m_T0Shift
Gaudi::Property< float > m_highGate
SG::ReadHandleKey< OccupancyData > m_occupancyCacheRead
virtual StatusCode initialize() override
standard Athena-Algorithm method
virtual std::vector< float > GlobalOccupancy(const EventContext &ctx) const override
Return the global occupancy of the event.
Gaudi::Property< float > m_highWideGate
Gaudi::Property< float > m_lowWideGate
const std::array< std::array< int, NLOCALPHI >, NLOCAL > & m_stw_local
void countHitsNearTrack(const EventContext &ctx, OccupancyData &data, int track_local[NLOCAL][NLOCALPHI]) const
static int mapPhiToPhisector(const double phi)
int findArrayTotalIndex(const int det, const int lay) const
To convert from array index to det id and viceversa.
std::unique_ptr< OccupancyData > makeData(const EventContext &ctx) const
Property holding a SG store/key/clid from which a WriteHandle is made.
static const int NLOCALPHI
::StatusCode StatusCode
StatusCode definition for legacy code.
int m_occ_local[NLOCAL][NLOCALPHI]
SG::ReadHandleKey< TRT_DriftCircleContainer > m_trt_driftcircles
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)
Gaudi::Property< float > m_lowGate
Ensure that the ATLAS eigen extensions are properly loaded.
std::unique_ptr< OccupancyData > makeDataTrigger(const EventContext &ctx) const
TRT_LocalOccupancy(const std::string &, const std::string &, const IInterface *)
bool passValidityGate(unsigned int word, float t0) const
const TRT_ID * m_TRTHelper
External tools:
virtual float LocalOccupancy(const EventContext &ctx, const Trk::Track &track) const override
Return the local occupancy for the sectors crossed by a given track.
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
SG::WriteHandleKey< OccupancyData > m_occupancyCacheWrite
int m_hit_local[NLOCAL][NLOCALPHI]
OccupancyData(const std::array< std::array< int, NLOCALPHI >, NLOCAL > &local)
SG::ReadCondHandleKey< TRTCond::StrawStatusData > m_strawStatusKey
ToolHandle< ITRT_CalDbTool > m_CalDbTool
float m_stws_ratio[2][NLOCALPHI]
macros to associate a CLID to a type
This class provides an interface to generate or decode an identifier for the upper levels of the dete...