ATLAS Offline Software
FPGATrackSimTowerInputHeader.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef FPGATrackSimOBJECT_FPGATrackSimTOWERINPUTHEADER_H
6 #define FPGATrackSimOBJECT_FPGATrackSimTOWERINPUTHEADER_H
7 
8 #include <TObject.h>
9 
10 #include <vector>
11 #include <iostream>
12 
16 
18 {
19 public:
20 
23  FPGATrackSimTowerInputHeader(int id, double eta, double phi, double deta = 0, double dphi = 0);
24 
25  virtual ~FPGATrackSimTowerInputHeader() = default;
26 
27  void reset();
28 
29  // set / get the eta/phi of the RoI
30  int setID(int id) { return m_id = id; };
31  double setEta(double e) { return m_Eta = e; }
32  double setPhi(double p) { return m_Phi = p; }
33 
34  double setDeltaEta(double de) { return m_DeltaEta = de; }
35  double setDeltaPhi(double dp) { return m_DeltaPhi = dp; }
36 
37  int id() const { return m_id; };
38  double eta() const { return m_Eta; }
39  double phi() const { return m_Phi; }
40 
41  double deltaEta() const { return m_DeltaEta; }
42  double deltaPhi() const { return m_DeltaPhi; }
43 
44 
45  // handling hits
46  const std::vector<FPGATrackSimHit>& hits() const { return m_Hits; }
47  int nHits() const { return m_Hits.size(); }
48  void addHit(FPGATrackSimHit s) { m_Hits.push_back(s); }
49  void clearHits() { m_Hits.clear(); }
50  void reserveHits(size_t size) { m_Hits.reserve(size); }
51 
52 private:
53 
54  int m_id;
55 
56  double m_Eta; // eta of the tower
57  double m_Phi; // phi of the tower
58 
59  double m_DeltaEta; // delta eta of the tower
60  double m_DeltaPhi; // delta phi of the tower
61 
62  std::vector<FPGATrackSimHit> m_Hits; // variables related to the FPGATrackSimHit storage
63 
64 
65  ClassDefNV(FPGATrackSimTowerInputHeader, 2)
66 };
67 
68 
69 std::ostream& operator<<(std::ostream&, const FPGATrackSimTowerInputHeader&);
70 
71 #endif // FPGATrackSimOBJECT_FPGATrackSimTOWERINPUTHEADER_H
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
FPGATrackSimTowerInputHeader::clearHits
void clearHits()
Definition: FPGATrackSimTowerInputHeader.h:49
FPGATrackSimTowerInputHeader::setDeltaEta
double setDeltaEta(double de)
Definition: FPGATrackSimTowerInputHeader.h:34
TileDCSDataPlotter.dp
dp
Definition: TileDCSDataPlotter.py:840
FPGATrackSimTowerInputHeader::FPGATrackSimTowerInputHeader
FPGATrackSimTowerInputHeader()
Definition: FPGATrackSimTowerInputHeader.h:21
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
FPGATrackSimTowerInputHeader::setEta
double setEta(double e)
Definition: FPGATrackSimTowerInputHeader.h:31
operator<<
std::ostream & operator<<(std::ostream &, const FPGATrackSimTowerInputHeader &)
Definition: FPGATrackSimTowerInputHeader.cxx:28
FPGATrackSimTowerInputHeader::addHit
void addHit(FPGATrackSimHit s)
Definition: FPGATrackSimTowerInputHeader.h:48
FPGATrackSimTowerInputHeader::FPGATrackSimTowerInputHeader
FPGATrackSimTowerInputHeader(int id)
Definition: FPGATrackSimTowerInputHeader.h:22
FPGATrackSimOfflineTrack.h
FPGATrackSimTowerInputHeader::m_id
int m_id
Definition: FPGATrackSimTowerInputHeader.h:54
FPGATrackSimTowerInputHeader::deltaPhi
double deltaPhi() const
Definition: FPGATrackSimTowerInputHeader.h:42
FPGATrackSimHit
Definition: FPGATrackSimHit.h:41
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
FPGATrackSimTowerInputHeader::nHits
int nHits() const
Definition: FPGATrackSimTowerInputHeader.h:47
FPGATrackSimTowerInputHeader::m_Hits
std::vector< FPGATrackSimHit > m_Hits
Definition: FPGATrackSimTowerInputHeader.h:62
FPGATrackSimTowerInputHeader::phi
double phi() const
Definition: FPGATrackSimTowerInputHeader.h:39
FPGATrackSimTowerInputHeader::m_Eta
double m_Eta
Definition: FPGATrackSimTowerInputHeader.h:56
FPGATrackSimTowerInputHeader::setDeltaPhi
double setDeltaPhi(double dp)
Definition: FPGATrackSimTowerInputHeader.h:35
FPGATrackSimTowerInputHeader::m_DeltaEta
double m_DeltaEta
Definition: FPGATrackSimTowerInputHeader.h:59
FPGATrackSimTowerInputHeader::reset
void reset()
Definition: FPGATrackSimTowerInputHeader.cxx:17
FPGATrackSimHit.h
: FPGATrackSim-specific class to represent an hit in the detector.
FPGATrackSimTowerInputHeader::eta
double eta() const
Definition: FPGATrackSimTowerInputHeader.h:38
FPGATrackSimTowerInputHeader::m_DeltaPhi
double m_DeltaPhi
Definition: FPGATrackSimTowerInputHeader.h:60
FPGATrackSimTowerInputHeader::m_Phi
double m_Phi
Definition: FPGATrackSimTowerInputHeader.h:57
FPGATrackSimTowerInputHeader::id
int id() const
Definition: FPGATrackSimTowerInputHeader.h:37
FPGATrackSimTowerInputHeader::reserveHits
void reserveHits(size_t size)
Definition: FPGATrackSimTowerInputHeader.h:50
FPGATrackSimTowerInputHeader::hits
const std::vector< FPGATrackSimHit > & hits() const
Definition: FPGATrackSimTowerInputHeader.h:46
FPGATrackSimTowerInputHeader
Definition: FPGATrackSimTowerInputHeader.h:18
FPGATrackSimTowerInputHeader::setPhi
double setPhi(double p)
Definition: FPGATrackSimTowerInputHeader.h:32
FPGATrackSimTowerInputHeader::setID
int setID(int id)
Definition: FPGATrackSimTowerInputHeader.h:30
FPGATrackSimTruthTrack.h
FPGATrackSimTowerInputHeader::deltaEta
double deltaEta() const
Definition: FPGATrackSimTowerInputHeader.h:41
FPGATrackSimTowerInputHeader::~FPGATrackSimTowerInputHeader
virtual ~FPGATrackSimTowerInputHeader()=default