ATLAS Offline Software
DetailedHitInfo.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef DETAILEDHITINFO_H
6 #define DETAILEDHITINFO_H
7 
8 #include <vector>
9 #include <tuple>
10 
11 namespace Trk {
12 
18  stripEndcap = 4
19  };
20 
21 
22 
24  {
27  public:
28 
29  void addHit(Trk::DetectorRegion region, int layer, int etaModule, int hit=1);
30  int getHits(Trk::DetectorRegion region, int layer);
32  int getAllContributions();
36  int getAllHits();
37  int getPixelHits();
38  int getStripHits();
39 
40  // the tuple elements are: layer number, # contributing layers, # hits
41  const std::vector < std::pair < Trk::DetectorRegion, std::vector < std::tuple <int , int , int> > > >& getHitInfo();
42 
43  private:
44  // the tuple elements are: layer number, # contributing layers, # hits
45  std::vector < std::pair < Trk::DetectorRegion, std::vector < std::tuple <int , int , int> > > > m_detailedHitInfo{};
46  int m_prevEta{};
47  };
48 
49 }
50 
51 #endif
Trk::DetailedHitInfo::getHitInfo
const std::vector< std::pair< Trk::DetectorRegion, std::vector< std::tuple< int, int, int > > > > & getHitInfo()
Definition: DetailedHitInfo.cxx:54
Trk::DetailedHitInfo::m_detailedHitInfo
std::vector< std::pair< Trk::DetectorRegion, std::vector< std::tuple< int, int, int > > > > m_detailedHitInfo
Definition: DetailedHitInfo.h:45
Trk::stripBarrel
@ stripBarrel
Definition: DetailedHitInfo.h:17
Trk::DetailedHitInfo::getStripContributions
int getStripContributions()
Definition: DetailedHitInfo.cxx:127
Trk::DetailedHitInfo::getAllContributions
int getAllContributions()
Definition: DetailedHitInfo.cxx:101
Trk::pixelBarrelFlat
@ pixelBarrelFlat
Definition: DetailedHitInfo.h:14
Trk::DetailedHitInfo::getHits
int getHits(Trk::DetectorRegion region, int layer)
Definition: DetailedHitInfo.cxx:82
Trk::DetailedHitInfo::getPixelContributions
int getPixelContributions()
Definition: DetailedHitInfo.cxx:116
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
Trk::DetailedHitInfo::getPixelHits
int getPixelHits()
Definition: DetailedHitInfo.cxx:121
Trk::stripEndcap
@ stripEndcap
Definition: DetailedHitInfo.h:18
Trk::pixelEndcap
@ pixelEndcap
Definition: DetailedHitInfo.h:16
Trk::DetailedHitInfo::addHit
void addHit(Trk::DetectorRegion region, int layer, int etaModule, int hit=1)
This class containes the detailed information on the contributing layers and regions to the hit count...
Definition: DetailedHitInfo.cxx:59
Trk::DetailedHitInfo::getStripHits
int getStripHits()
Definition: DetailedHitInfo.cxx:132
Trk::pixelBarrelInclined
@ pixelBarrelInclined
Definition: DetailedHitInfo.h:15
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::DetectorRegion
DetectorRegion
Definition: DetailedHitInfo.h:13
Trk::DetailedHitInfo::getContributionFromRegion
int getContributionFromRegion(Trk::DetectorRegion region)
Definition: DetailedHitInfo.cxx:96
Trk::DetailedHitInfo::m_prevEta
int m_prevEta
Definition: DetailedHitInfo.h:46
Trk::DetailedHitInfo::getAllHits
int getAllHits()
Definition: DetailedHitInfo.cxx:111
Trk::DetailedHitInfo::getHitsFromRegion
int getHitsFromRegion(Trk::DetectorRegion region)
Definition: DetailedHitInfo.cxx:106
Trk::DetailedHitInfo
Definition: DetailedHitInfo.h:24