ATLAS Offline Software
Trigger
EFTracking
FPGATrackSim
FPGATrackSimObjects
FPGATrackSimObjects
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
13
#include "
FPGATrackSimObjects/FPGATrackSimTruthTrack.h
"
14
#include "
FPGATrackSimObjects/FPGATrackSimOfflineTrack.h
"
15
#include "
FPGATrackSimObjects/FPGATrackSimHit.h
"
16
17
class
FPGATrackSimTowerInputHeader
:
public
TObject
18
{
19
public
:
20
21
FPGATrackSimTowerInputHeader
() {
reset
(); }
22
FPGATrackSimTowerInputHeader
(
int
id
) {
reset
();
m_id
=
id
; }
23
FPGATrackSimTowerInputHeader
(
int
id
,
double
eta
,
double
phi
,
double
deta = 0,
double
dphi = 0);
24
25
void
reset
();
26
27
// set / get the eta/phi of the RoI
28
int
setID
(
int
id
) {
return
m_id
=
id
; };
29
double
setEta
(
double
e
) {
return
m_Eta
=
e
; }
30
double
setPhi
(
double
p
) {
return
m_Phi
=
p
; }
31
32
double
setDeltaEta
(
double
de) {
return
m_DeltaEta
= de; }
33
double
setDeltaPhi
(
double
dp
) {
return
m_DeltaPhi
=
dp
; }
34
35
int
id
()
const
{
return
m_id
; };
36
double
eta
()
const
{
return
m_Eta
; }
37
double
phi
()
const
{
return
m_Phi
; }
38
39
double
deltaEta
()
const
{
return
m_DeltaEta
; }
40
double
deltaPhi
()
const
{
return
m_DeltaPhi
; }
41
42
43
// handling hits
44
const
std::vector<FPGATrackSimHit>&
hits
()
const
{
return
m_Hits
; }
45
int
nHits
()
const
{
return
m_Hits
.size(); }
46
void
addHit
(
FPGATrackSimHit
s
) {
m_Hits
.push_back(
s
); }
47
void
clearHits
() {
m_Hits
.clear(); }
48
void
reserveHits
(
size_t
size
) {
m_Hits
.reserve(
size
); }
49
50
private
:
51
52
int
m_id
;
53
54
double
m_Eta
;
// eta of the tower
55
double
m_Phi
;
// phi of the tower
56
57
double
m_DeltaEta
;
// delta eta of the tower
58
double
m_DeltaPhi
;
// delta phi of the tower
59
60
std::vector<FPGATrackSimHit>
m_Hits
;
// variables related to the FPGATrackSimHit storage
61
62
63
ClassDef(
FPGATrackSimTowerInputHeader
, 1)
64
};
65
66
67
std::ostream&
operator<<
(std::ostream&,
const
FPGATrackSimTowerInputHeader
&);
68
69
#endif // FPGATrackSimOBJECT_FPGATrackSimTOWERINPUTHEADER_H
FPGATrackSimTowerInputHeader::clearHits
void clearHits()
Definition:
FPGATrackSimTowerInputHeader.h:47
FPGATrackSimTowerInputHeader::setDeltaEta
double setDeltaEta(double de)
Definition:
FPGATrackSimTowerInputHeader.h:32
TileDCSDataPlotter.dp
dp
Definition:
TileDCSDataPlotter.py:840
FPGATrackSimTowerInputHeader::FPGATrackSimTowerInputHeader
FPGATrackSimTowerInputHeader()
Definition:
FPGATrackSimTowerInputHeader.h:21
python.SystemOfUnits.s
int s
Definition:
SystemOfUnits.py:131
python.PerfMonSerializer.p
def p
Definition:
PerfMonSerializer.py:743
FPGATrackSimTowerInputHeader::setEta
double setEta(double e)
Definition:
FPGATrackSimTowerInputHeader.h:29
operator<<
std::ostream & operator<<(std::ostream &, const FPGATrackSimTowerInputHeader &)
Definition:
FPGATrackSimTowerInputHeader.cxx:29
FPGATrackSimTowerInputHeader::addHit
void addHit(FPGATrackSimHit s)
Definition:
FPGATrackSimTowerInputHeader.h:46
FPGATrackSimTowerInputHeader::FPGATrackSimTowerInputHeader
FPGATrackSimTowerInputHeader(int id)
Definition:
FPGATrackSimTowerInputHeader.h:22
FPGATrackSimOfflineTrack.h
FPGATrackSimTowerInputHeader::m_id
int m_id
Definition:
FPGATrackSimTowerInputHeader.h:52
FPGATrackSimTowerInputHeader::deltaPhi
double deltaPhi() const
Definition:
FPGATrackSimTowerInputHeader.h:40
FPGATrackSimHit
Definition:
FPGATrackSimHit.h:38
python.setupRTTAlg.size
int size
Definition:
setupRTTAlg.py:39
FPGATrackSimTowerInputHeader::nHits
int nHits() const
Definition:
FPGATrackSimTowerInputHeader.h:45
FPGATrackSimTowerInputHeader::m_Hits
std::vector< FPGATrackSimHit > m_Hits
Definition:
FPGATrackSimTowerInputHeader.h:60
FPGATrackSimTowerInputHeader::phi
double phi() const
Definition:
FPGATrackSimTowerInputHeader.h:37
FPGATrackSimTowerInputHeader::m_Eta
double m_Eta
Definition:
FPGATrackSimTowerInputHeader.h:54
FPGATrackSimTowerInputHeader::setDeltaPhi
double setDeltaPhi(double dp)
Definition:
FPGATrackSimTowerInputHeader.h:33
FPGATrackSimTowerInputHeader::m_DeltaEta
double m_DeltaEta
Definition:
FPGATrackSimTowerInputHeader.h:57
FPGATrackSimTowerInputHeader::reset
void reset()
Definition:
FPGATrackSimTowerInputHeader.cxx:18
FPGATrackSimHit.h
: FPGATrackSim-specific class to represent an hit in the detector.
FPGATrackSimTowerInputHeader::eta
double eta() const
Definition:
FPGATrackSimTowerInputHeader.h:36
FPGATrackSimTowerInputHeader::m_DeltaPhi
double m_DeltaPhi
Definition:
FPGATrackSimTowerInputHeader.h:58
DiTauMassTools::MaxHistStrategyV2::e
e
Definition:
PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
FPGATrackSimTowerInputHeader::m_Phi
double m_Phi
Definition:
FPGATrackSimTowerInputHeader.h:55
FPGATrackSimTowerInputHeader::id
int id() const
Definition:
FPGATrackSimTowerInputHeader.h:35
FPGATrackSimTowerInputHeader::reserveHits
void reserveHits(size_t size)
Definition:
FPGATrackSimTowerInputHeader.h:48
FPGATrackSimTowerInputHeader::hits
const std::vector< FPGATrackSimHit > & hits() const
Definition:
FPGATrackSimTowerInputHeader.h:44
FPGATrackSimTowerInputHeader
Definition:
FPGATrackSimTowerInputHeader.h:18
FPGATrackSimTowerInputHeader::setPhi
double setPhi(double p)
Definition:
FPGATrackSimTowerInputHeader.h:30
FPGATrackSimTowerInputHeader::FPGATrackSimTowerInputHeader
FPGATrackSimTowerInputHeader(int id, double eta, double phi, double deta=0, double dphi=0)
FPGATrackSimTowerInputHeader::setID
int setID(int id)
Definition:
FPGATrackSimTowerInputHeader.h:28
FPGATrackSimTruthTrack.h
FPGATrackSimTowerInputHeader::deltaEta
double deltaEta() const
Definition:
FPGATrackSimTowerInputHeader.h:39
Generated on Sun Jun 30 2024 21:16:04 for ATLAS Offline Software by
1.8.18