ATLAS Offline Software
Trigger
TrigT1
TrigT1CaloEvent
src
CPMHits.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
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
CPMHits::CPMHits
():
23
m_crate(0),
24
m_module(0),
25
m_peak(0),
26
m_Hits0(1),
27
m_Hits1(1)
28
{
29
}
30
31
CPMHits::~CPMHits
(){
32
}
33
35
LVL1::CPMHits::CPMHits::CPMHits
(
int
crate,
int
module
):
36
m_crate(crate),
37
m_module(
module
),
38
m_peak(0),
39
m_Hits0(1),
40
m_Hits1(1)
41
{
42
}
43
45
LVL1::CPMHits::CPMHits::CPMHits
(
int
crate,
int
module
,
46
const
std::vector<unsigned int>& EMTauHits0,
47
const
std::vector<unsigned int>& EMTauHits1,
int
peak):
48
m_crate(crate),
49
m_module(
module
),
50
m_peak(peak),
51
m_Hits0(EMTauHits0),
52
m_Hits1(EMTauHits1)
53
{
54
}
55
56
58
int
LVL1::CPMHits::crate
()
const
{
59
return
m_crate;
60
}
61
63
int
LVL1::CPMHits::module
()
const
{
64
return
m_module;
65
}
66
68
unsigned
int
LVL1::CPMHits::HitWord0
()
const
{
69
return
m_Hits0[m_peak];
70
}
71
unsigned
int
LVL1::CPMHits::HitWord1
()
const
{
72
return
m_Hits1[m_peak];
73
}
74
76
const
std::vector<unsigned int>&
LVL1::CPMHits::HitsVec0
()
const
{
77
return
m_Hits0;
78
}
79
const
std::vector<unsigned int>&
LVL1::CPMHits::HitsVec1
()
const
{
80
return
m_Hits1;
81
}
82
84
void
LVL1::CPMHits::addHits
(
const
std::vector<unsigned int>& hits0,
85
const
std::vector<unsigned int>& hits1) {
86
m_Hits0 = hits0;
87
m_Hits1 = hits1;
88
}
89
91
void
LVL1::CPMHits::setPeak
(
int
peak) {
92
m_peak = peak;
93
}
94
96
int
LVL1::CPMHits::peak
()
const
{
97
return
m_peak;
98
}
99
100
}
// end of namespace bracket
CPMHits.h
LVL1::CPMHits::HitsVec0
const std::vector< unsigned int > & HitsVec0() const
Multi-slice accessors.
Definition:
CPMHits.cxx:81
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:89
LVL1::CPMHits::setPeak
void setPeak(int peak)
In multi-slice readout, need to specify which is peak slice.
Definition:
CPMHits.cxx:96
LVL1::CPMHits::HitWord1
unsigned int HitWord1() const
Definition:
CPMHits.cxx:76
LVL1::CPMHits::CPMHits
CPMHits()
Constructors.
Definition:
CPMHits.cxx:27
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition:
ICMMCPHitsCnvTool.h:18
LVL1::CPMHits::HitWord0
unsigned int HitWord0() const
returns hits for peak sample
Definition:
CPMHits.cxx:73
python.PyAthena.module
module
Definition:
PyAthena.py:131
xAOD::CPMHits
CPMHits_v1 CPMHits
Define the latest version of the CPMHits class.
Definition:
Event/xAOD/xAODTrigL1Calo/xAODTrigL1Calo/CPMHits.h:14
LVL1::CPMHits::crate
int crate() const
Data accessors.
Definition:
CPMHits.cxx:63
LVL1::CPMHits::peak
int peak() const
returns peak slice number
Definition:
CPMHits.cxx:101
LVL1::CPMHits::~CPMHits
virtual ~CPMHits()
Destructor.
Definition:
CPMHits.cxx:36
LVL1::CPMHits::module
int module() const
returns module number
Definition:
CPMHits.cxx:68
LVL1::CPMHits::HitsVec1
const std::vector< unsigned int > & HitsVec1() const
Definition:
CPMHits.cxx:84
Generated on Thu Nov 7 2024 21:12:39 for ATLAS Offline Software by
1.8.18