ATLAS Offline Software
Loading...
Searching...
No Matches
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
11namespace Trk {
12
20
21
22
24 {
26
27 public:
28
29 void addHit(Trk::DetectorRegion region, int layer, int etaModule, int hit=1);
30 int getHits(Trk::DetectorRegion region, int layer);
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
int getContributionFromRegion(Trk::DetectorRegion region)
const std::vector< std::pair< Trk::DetectorRegion, std::vector< std::tuple< int, int, int > > > > & getHitInfo()
int getHits(Trk::DetectorRegion region, int layer)
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...
std::vector< std::pair< Trk::DetectorRegion, std::vector< std::tuple< int, int, int > > > > m_detailedHitInfo
int getHitsFromRegion(Trk::DetectorRegion region)
Ensure that the ATLAS eigen extensions are properly loaded.
@ pixelBarrelInclined
@ stripEndcap
@ stripBarrel
@ pixelEndcap
@ pixelBarrelFlat