ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CaloEvent
src
CMMCPHits.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
CMMCPHits.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/CMMCPHits.h
"
16
#else
17
#include "
CMMCPHits.h
"
18
#endif
19
20
namespace
LVL1
{
21
23
CMMCPHits::CMMCPHits
(
int
crate
,
int
dataID
):
24
m_crate
(
crate
),
25
m_dataID
(
dataID
)
26
{
27
}
28
30
CMMCPHits::CMMCPHits
(
int
crate
,
int
dataID
,
31
const
std::vector<unsigned int>& hits0,
32
const
std::vector<unsigned int>& hits1,
33
const
std::vector<int>& error0,
34
const
std::vector<int>& error1,
int
peak
):
35
m_crate
(
crate
),
36
m_dataID
(
dataID
),
37
m_peak
(
peak
),
38
m_hits0
(hits0),
39
m_hits1
(hits1),
40
m_error0
(error0),
41
m_error1
(error1)
42
{
43
}
44
45
47
int
CMMCPHits::crate
()
const
{
48
return
m_crate
;
49
}
50
52
int
CMMCPHits::dataID
()
const
{
53
return
m_dataID
;
54
}
55
57
unsigned
int
CMMCPHits::HitWord0
()
const
{
58
return
m_hits0
[
m_peak
];
59
}
60
62
unsigned
int
CMMCPHits::HitWord1
()
const
{
63
return
m_hits1
[
m_peak
];
64
}
65
67
int
CMMCPHits::Error0
()
const
{
68
return
m_error0
[
m_peak
];
69
}
70
72
int
CMMCPHits::Error1
()
const
{
73
return
m_error1
[
m_peak
];
74
}
75
77
const
std::vector<unsigned int>&
CMMCPHits::HitsVec0
()
const
{
78
return
m_hits0
;
79
}
80
82
const
std::vector<unsigned int>&
CMMCPHits::HitsVec1
()
const
{
83
return
m_hits1
;
84
}
85
87
const
std::vector<int>&
CMMCPHits::ErrorVec0
()
const
{
88
return
m_error0
;
89
}
90
92
const
std::vector<int>&
CMMCPHits::ErrorVec1
()
const
{
93
return
m_error1
;
94
}
95
97
void
CMMCPHits::addHits
(
const
std::vector<unsigned int>& hits0,
98
const
std::vector<unsigned int>& hits1,
99
const
std::vector<int>& error0,
100
const
std::vector<int>& error1) {
101
m_hits0
= hits0;
102
m_hits1
= hits1;
103
m_error0
= error0;
104
m_error1
= error1;
105
}
106
108
void
CMMCPHits::setPeak
(
int
peak
) {
109
m_peak
=
peak
;
110
}
111
113
int
CMMCPHits::peak
()
const
{
114
return
m_peak
;
115
}
116
117
}
// end of namespace bracket
CMMCPHits.h
LVL1::CMMCPHits::setPeak
void setPeak(int peak)
For multi-slice readout, need to indicate position of triggered BC.
Definition
CMMCPHits.cxx:108
LVL1::CMMCPHits::m_dataID
int m_dataID
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:71
LVL1::CMMCPHits::ErrorVec0
const std::vector< int > & ErrorVec0() const
returns error0
Definition
CMMCPHits.cxx:87
LVL1::CMMCPHits::m_peak
int m_peak
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:72
LVL1::CMMCPHits::CMMCPHits
CMMCPHits()=default
Constructors.
LVL1::CMMCPHits::crate
int crate() const
Data accessors.
Definition
CMMCPHits.cxx:47
LVL1::CMMCPHits::dataID
int dataID() const
returns data ID of data
Definition
CMMCPHits.cxx:52
LVL1::CMMCPHits::addHits
void addHits(const std::vector< unsigned int > &hits0, const std::vector< unsigned int > &hits1, const std::vector< int > &error0, const std::vector< int > &error1)
Add data to existing object.
Definition
CMMCPHits.cxx:97
LVL1::CMMCPHits::HitsVec1
const std::vector< unsigned int > & HitsVec1() const
returns hits1
Definition
CMMCPHits.cxx:82
LVL1::CMMCPHits::m_error0
std::vector< int > m_error0
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:75
LVL1::CMMCPHits::HitWord1
unsigned int HitWord1() const
returns hits1 for peak sample
Definition
CMMCPHits.cxx:62
LVL1::CMMCPHits::HitWord0
unsigned int HitWord0() const
For triggered time slice.
Definition
CMMCPHits.cxx:57
LVL1::CMMCPHits::Error0
int Error0() const
returns error0 for peak sample
Definition
CMMCPHits.cxx:67
LVL1::CMMCPHits::m_hits0
std::vector< unsigned int > m_hits0
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:73
LVL1::CMMCPHits::peak
int peak() const
returns peak slice number
Definition
CMMCPHits.cxx:113
LVL1::CMMCPHits::m_hits1
std::vector< unsigned int > m_hits1
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:74
LVL1::CMMCPHits::ErrorVec1
const std::vector< int > & ErrorVec1() const
returns error1
Definition
CMMCPHits.cxx:92
LVL1::CMMCPHits::Error1
int Error1() const
returns error1 for peak sample
Definition
CMMCPHits.cxx:72
LVL1::CMMCPHits::HitsVec0
const std::vector< unsigned int > & HitsVec0() const
For multi-slice readout.
Definition
CMMCPHits.cxx:77
LVL1::CMMCPHits::m_error1
std::vector< int > m_error1
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:76
LVL1::CMMCPHits::m_crate
int m_crate
Internal data.
Definition
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMCPHits.h:70
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