ATLAS Offline Software
Loading...
Searching...
No Matches
FPGATrackSimTowerInputHeader.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 FPGATrackSimOBJECT_FPGATrackSimTOWERINPUTHEADER_H
6#define FPGATrackSimOBJECT_FPGATrackSimTOWERINPUTHEADER_H
7
8#include <TObject.h>
9
10#include <vector>
11#include <iostream>
12
16
18{
19public:
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(const FPGATrackSimHit& s) { m_Hits.push_back(s); }
49 void clearHits() { m_Hits.clear(); }
50 void reserveHits(size_t size) { m_Hits.reserve(size); }
51
52private:
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
69std::ostream& operator<<(std::ostream&, const FPGATrackSimTowerInputHeader&);
70
71#endif // FPGATrackSimOBJECT_FPGATrackSimTOWERINPUTHEADER_H
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
: FPGATrackSim-specific class to represent an hit in the detector.
std::ostream & operator<<(std::ostream &, const FPGATrackSimTowerInputHeader &)
virtual ~FPGATrackSimTowerInputHeader()=default
const std::vector< FPGATrackSimHit > & hits() const
void addHit(const FPGATrackSimHit &s)
std::vector< FPGATrackSimHit > m_Hits