ATLAS Offline Software
Loading...
Searching...
No Matches
CMMJetHits.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 CMMJetHits.cpp - description
6 -------------------
7 begin : 25 05 2006
8 email : Alan.Watson@cern.ch
9 ***************************************************************************/
10
11
12
13
14#ifndef TRIGGERSPACE
16#else
17#include "CMMJetHits.h"
18#endif
19
20namespace LVL1 {
21
22
23
28 m_peak(0),
29 m_hits(1),
30 m_errors(1)
31{
32}
33
36 const std::vector<unsigned int>& hits,
37 const std::vector<int>& errors, int peak):
40 m_peak(peak),
41 m_hits(hits),
42 m_errors(errors)
43{
44}
45
46
49 return m_crate;
50}
51
54 return m_dataID;
55}
56
58unsigned int CMMJetHits::Hits() const{
59 return m_hits[m_peak];
60}
61
64 return m_errors[m_peak];
65}
66
68const std::vector<unsigned int>& CMMJetHits::HitsVec() const{
69 return m_hits;
70}
71
73const std::vector<int>& CMMJetHits::ErrorVec() const{
74 return m_errors;
75}
76
78void CMMJetHits::addHits(const std::vector<unsigned int>& hits,
79 const std::vector<int>& errors) {
80 m_hits = hits;
81 m_errors = errors;
82}
83
86 m_peak = peak;
87}
88
90int CMMJetHits::peak() const{
91 return m_peak;
92}
93
94} // end of namespace bracket
void setPeak(int peak)
In multi-slice readout, need to specify which slice corresponds to the triggered bunch-crossing.
const std::vector< int > & ErrorVec() const
returns errors
CMMJetHits()=default
Constructors.
int dataID() const
returns data ID of data
void addHits(const std::vector< unsigned int > &hits, const std::vector< int > &errors)
Add hits to existing object.
int crate() const
Data accessors.
int Error() const
returns error for peak sample
unsigned int Hits() const
returns hits for peak sample
int peak() const
returns peak slice number
const std::vector< unsigned int > & HitsVec() const
Multi-slice accessors.
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...