ATLAS Offline Software
ITRT_LocalOccupancy.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // ITRT_LocalOccupancy.h, (c) ATLAS Detector software
8 
9 #ifndef IINDETTRT_LOCALOCCUPANCY_H
10 #define IINDETTRT_LOCALOCCUPANCY_H
11 
12 // Include files
13 #include "GaudiKernel/IAlgTool.h"
14 #include "GaudiKernel/EventContext.h"
15 #include "TrkTrack/Track.h"
17 
18 #include <vector>
19 #include <map>
20 
21 class Identifier;
22 
23 namespace Trk { class Track ; }
24 
29 namespace InDet
30 {
31 
32  class ITRT_LocalOccupancy : virtual public IAlgTool {
33  public:
34 
36  virtual ~ITRT_LocalOccupancy(){};
37 
40 
42  virtual float LocalOccupancy(const EventContext& ctx,
43  const Trk::Track& track) const = 0;
44 
45  virtual float LocalOccupancy(const EventContext& ctx,
46  const double eta,
47  const double phi) const = 0;
48 
50  virtual std::map<int, double> getDetectorOccupancy(const EventContext& ctx,
51  const TRT_RDO_Container* p_trtRDOContainer) const = 0;
52 
54  virtual std::vector<float> GlobalOccupancy(const EventContext& ctx) const = 0;
55  };
56 
57 }
58 #endif
TRT_RDO_Container.h
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDet::ITRT_LocalOccupancy::getDetectorOccupancy
virtual std::map< int, double > getDetectorOccupancy(const EventContext &ctx, const TRT_RDO_Container *p_trtRDOContainer) const =0
Return a map of the occupancy in the barrel (-1,+1) and endcaps (-2,+2)
InDetRawDataContainer
Definition: InDetRawDataContainer.h:27
InDet::ITRT_LocalOccupancy::GlobalOccupancy
virtual std::vector< float > GlobalOccupancy(const EventContext &ctx) const =0
Return the global occupancy of the event.
Track.h
InDet::ITRT_LocalOccupancy::~ITRT_LocalOccupancy
virtual ~ITRT_LocalOccupancy()
Virtual destructor.
Definition: ITRT_LocalOccupancy.h:36
InDet::ITRT_LocalOccupancy::DeclareInterfaceID
DeclareInterfaceID(ITRT_LocalOccupancy, 1, 0)
Creates the InterfaceID and interfaceID() method.
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
InDet::ITRT_LocalOccupancy::LocalOccupancy
virtual float LocalOccupancy(const EventContext &ctx, const Trk::Track &track) const =0
Return the local occupancy for the sectors crossed by a given track.
InDet::ITRT_LocalOccupancy::LocalOccupancy
virtual float LocalOccupancy(const EventContext &ctx, const double eta, const double phi) const =0
Track
Definition: TriggerChamberClusterOnTrackCreator.h:21
InDet::ITRT_LocalOccupancy
Definition: ITRT_LocalOccupancy.h:32
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
Identifier
Definition: IdentifierFieldParser.cxx:14