ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CaloEvent
src
CPMHits.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
/***************************************************************************
5
CPMHits.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/CPMHits.h
"
16
#else
17
#include "
CPMHits.h
"
18
#endif
19
20
namespace
LVL1
{
21
22
23
25
LVL1::CPMHits::CPMHits::CPMHits(
int
crate,
int
module):
26
m_crate(crate),
27
m_module(
module
)
28
{
29
}
30
32
LVL1::CPMHits::CPMHits::CPMHits(
int
crate,
int
module,
33
const
std::vector<unsigned int>& EMTauHits0,
34
const
std::vector<unsigned int>& EMTauHits1,
int
peak):
35
m_crate(crate),
36
m_module(
module
),
37
m_peak(peak),
38
m_Hits0(EMTauHits0),
39
m_Hits1(EMTauHits1)
40
{
41
}
42
43
45
int
LVL1::CPMHits::crate
()
const
{
46
return
m_crate
;
47
}
48
50
int
LVL1::CPMHits::module
()
const
{
51
return
m_module
;
52
}
53
55
unsigned
int
LVL1::CPMHits::HitWord0
()
const
{
56
return
m_Hits0
[
m_peak
];
57
}
58
unsigned
int
LVL1::CPMHits::HitWord1
()
const
{
59
return
m_Hits1
[
m_peak
];
60
}
61
63
const
std::vector<unsigned int>&
LVL1::CPMHits::HitsVec0
()
const
{
64
return
m_Hits0
;
65
}
66
const
std::vector<unsigned int>&
LVL1::CPMHits::HitsVec1
()
const
{
67
return
m_Hits1
;
68
}
69
71
void
LVL1::CPMHits::addHits
(
const
std::vector<unsigned int>& hits0,
72
const
std::vector<unsigned int>& hits1) {
73
m_Hits0
= hits0;
74
m_Hits1
= hits1;
75
}
76
78
void
LVL1::CPMHits::setPeak
(
int
peak
) {
79
m_peak
=
peak
;
80
}
81
83
int
LVL1::CPMHits::peak
()
const
{
84
return
m_peak
;
85
}
86
87
}
// end of namespace bracket
CPMHits.h
LVL1::CPMHits::crate
int crate() const
Data accessors.
Definition
CPMHits.cxx:45
LVL1::CPMHits::module
int module() const
returns module number
Definition
CPMHits.cxx:50
LVL1::CPMHits::m_Hits0
std::vector< unsigned int > m_Hits0
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:67
LVL1::CPMHits::peak
int peak() const
returns peak slice number
Definition
CPMHits.cxx:83
LVL1::CPMHits::HitsVec0
const std::vector< unsigned int > & HitsVec0() const
Multi-slice accessors.
Definition
CPMHits.cxx:63
LVL1::CPMHits::addHits
void addHits(const std::vector< unsigned int > &hits0, const std::vector< unsigned int > &hits1)
Add hits to existing object.
Definition
CPMHits.cxx:71
LVL1::CPMHits::HitsVec1
const std::vector< unsigned int > & HitsVec1() const
Definition
CPMHits.cxx:66
LVL1::CPMHits::m_module
int m_module
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:65
LVL1::CPMHits::HitWord0
unsigned int HitWord0() const
returns hits for peak sample
Definition
CPMHits.cxx:55
LVL1::CPMHits::m_Hits1
std::vector< unsigned int > m_Hits1
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:68
LVL1::CPMHits::HitWord1
unsigned int HitWord1() const
Definition
CPMHits.cxx:58
LVL1::CPMHits::m_crate
int m_crate
Internal data.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:64
LVL1::CPMHits::m_peak
int m_peak
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMHits.h:66
LVL1::CPMHits::setPeak
void setPeak(int peak)
In multi-slice readout, need to specify which is peak slice.
Definition
CPMHits.cxx:78
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition
IZdcDataAccess.h:13
python.PyAthena.module
module
Definition
PyAthena.py:130
Generated on
for ATLAS Offline Software by
1.17.0