ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CaloEvent
src
JEMHits.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3
*/
4
/***************************************************************************
5
JEMHits.cpp - description
6
-------------------
7
begin : 25 05 2006
8
email : Alan.Watson@cern.ch
9
***************************************************************************/
10
11
12
13
14
#ifndef TRIGGERSPACE
15
#include "
TrigT1CaloEvent/JEMHits.h
"
16
#else
17
#include "
JEMHits.h
"
18
#endif
19
20
namespace
LVL1
{
21
22
JEMHits::JEMHits
():
23
m_crate
(0),
24
m_module
(0),
25
m_peak
(0),
26
m_JetHits
(1)
27
{
28
}
29
30
JEMHits::~JEMHits
(){
31
}
32
34
LVL1::JEMHits::JEMHits::JEMHits(
int
crate,
int
module):
35
m_crate(crate),
36
m_module(module),
37
m_peak(0),
38
m_JetHits(1)
39
{
40
}
41
43
LVL1::JEMHits::JEMHits::JEMHits(
int
crate,
int
module,
44
const
std::vector<unsigned int>& JetHits,
45
int
peak):
46
m_crate(crate),
47
m_module(module),
48
m_peak(peak),
49
m_JetHits(JetHits)
50
{
51
}
52
53
55
int
LVL1::JEMHits::crate
()
const
{
56
return
m_crate
;
57
}
58
60
int
LVL1::JEMHits::module
()
const
{
61
return
m_module
;
62
}
63
65
unsigned
int
LVL1::JEMHits::JetHits
()
const
{
66
return
m_JetHits
[
m_peak
];
67
}
68
70
const
std::vector<unsigned int>&
LVL1::JEMHits::JetHitsVec
()
const
{
71
return
m_JetHits
;
72
}
73
75
bool
LVL1::JEMHits::forward
()
const
{
76
return
( ((
m_module
%8) == 0) || ((
m_module
%8) == 7) );
77
}
78
80
void
LVL1::JEMHits::addJetHits
(
const
std::vector<unsigned int>& hits) {
81
m_JetHits
= hits;
82
}
83
85
void
LVL1::JEMHits::setPeak
(
int
peak
) {
86
m_peak
=
peak
;
87
}
88
90
int
LVL1::JEMHits::peak
()
const
{
91
return
m_peak
;
92
}
93
94
}
// end of namespace bracket
JEMHits.h
LVL1::JEMHits::m_crate
int m_crate
Internal data.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMHits.h:49
LVL1::JEMHits::crate
int crate() const
returns crate number
Definition
JEMHits.cxx:55
LVL1::JEMHits::peak
int peak() const
returns peak slice number
Definition
JEMHits.cxx:90
LVL1::JEMHits::JetHits
unsigned int JetHits() const
returns jet hits for peak sample
Definition
JEMHits.cxx:65
LVL1::JEMHits::m_JetHits
std::vector< unsigned int > m_JetHits
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMHits.h:52
LVL1::JEMHits::module
int module() const
returns module number
Definition
JEMHits.cxx:60
LVL1::JEMHits::m_module
int m_module
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMHits.h:50
LVL1::JEMHits::~JEMHits
virtual ~JEMHits()
Definition
JEMHits.cxx:30
LVL1::JEMHits::m_peak
int m_peak
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JEMHits.h:51
LVL1::JEMHits::JetHitsVec
const std::vector< unsigned int > & JetHitsVec() const
returns jet hits
Definition
JEMHits.cxx:70
LVL1::JEMHits::JEMHits
JEMHits()
Definition
JEMHits.cxx:22
LVL1::JEMHits::forward
bool forward() const
Central or FCAL JEM?
Definition
JEMHits.cxx:75
LVL1::JEMHits::setPeak
void setPeak(int peak)
Specify peak slice.
Definition
JEMHits.cxx:85
LVL1::JEMHits::addJetHits
void addJetHits(const std::vector< unsigned int > &hits)
Set Jet hits.
Definition
JEMHits.cxx:80
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition
IZdcDataAccess.h:13
Generated on
for ATLAS Offline Software by
1.17.0