ATLAS Offline Software
Loading...
Searching...
No Matches
TrigT1NSWSimTools/src/MMT_Road.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3 */
4
5#ifndef MMT_ROAD_H
6#define MMT_ROAD_H
7
8#include "MMT_Hit.h"
9#include <cmath>
10#include <numeric>
11
12class MMT_Road {
13 public:
14 MMT_Road(const char sector, const int roadSize, const int UpX, const int DownX, const int UpUV, const int DownUV, const int xthr, const int uvthr,
15 const int iroadx, const int iroadu = -1, const int iroadv = -1);
16 ~MMT_Road()=default;
17
18 void addHits(const std::vector<std::shared_ptr<MMT_Hit> > &hits);
19 double avgSofXUV(const char type) const;
20 bool checkCoincidences(const int bcwind) const {
21 return horizontalCheck() && stereoCheck() && matureCheck(bcwind);
22 }
23 unsigned int countHits() const { return m_road_hits.size(); }
24 unsigned int countUHits() const;
25 unsigned int countXHits() const;
26 bool evaluateLowRes() const;
27 bool horizontalCheck() const;
28 void incrementAge(const int bcwind);
29 const std::vector<MMT_Hit>& getHitVector() const { return m_road_hits; }
30 char getSector() const { return m_sector; }
31 int getXthreshold() const { return m_xthr; }
32 int getUVthreshold() const { return m_uvthr; }
33 int iRoadx() const { return m_iroadx; }
34 int iRoadu() const { return m_iroadu; }
35 int iRoadv() const { return m_iroadv; }
36 bool matureCheck(const int bcwind) const;
37 double mxl() const;
38 bool stereoCheck() const;
39
40 private:
41 std::vector<MMT_Hit> m_road_hits;
46};
47#endif
double avgSofXUV(const char type) const
unsigned int countHits() const
const std::vector< MMT_Hit > & getHitVector() const
void incrementAge(const int bcwind)
std::vector< MMT_Hit > m_road_hits
bool checkCoincidences(const int bcwind) const
~MMT_Road()=default
void addHits(const std::vector< std::shared_ptr< MMT_Hit > > &hits)
bool matureCheck(const int bcwind) const
unsigned int countXHits() const
unsigned int countUHits() const
MMT_Road(const char sector, const int roadSize, const int UpX, const int DownX, const int UpUV, const int DownUV, const int xthr, const int uvthr, const int iroadx, const int iroadu=-1, const int iroadv=-1)