ATLAS Offline Software
CMMJetHits.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  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 
20 namespace LVL1 {
21 
23  m_crate(0),
24  m_dataID(0),
25  m_peak(0),
26  m_hits(1),
27  m_errors(1)
28 {
29 }
30 
32 }
33 
35 CMMJetHits::CMMJetHits(int crate, int dataID):
36  m_crate(crate),
37  m_dataID(dataID),
38  m_peak(0),
39  m_hits(1),
40  m_errors(1)
41 {
42 }
43 
45 CMMJetHits::CMMJetHits(int crate, int dataID,
46  const std::vector<unsigned int>& hits,
47  const std::vector<int>& errors, int peak):
48  m_crate(crate),
49  m_dataID(dataID),
50  m_peak(peak),
51  m_hits(hits),
52  m_errors(errors)
53 {
54 }
55 
56 
58 int CMMJetHits::crate() const{
59  return m_crate;
60 }
61 
63 int CMMJetHits::dataID() const{
64  return m_dataID;
65 }
66 
68 unsigned int CMMJetHits::Hits() const{
69  return m_hits[m_peak];
70 }
71 
73 int CMMJetHits::Error() const{
74  return m_errors[m_peak];
75 }
76 
78 const std::vector<unsigned int>& CMMJetHits::HitsVec() const{
79  return m_hits;
80 }
81 
83 const std::vector<int>& CMMJetHits::ErrorVec() const{
84  return m_errors;
85 }
86 
88 void CMMJetHits::addHits(const std::vector<unsigned int>& hits,
89  const std::vector<int>& errors) {
90  m_hits = hits;
91  m_errors = errors;
92 }
93 
95 void CMMJetHits::setPeak(int peak) {
96  m_peak = peak;
97 }
98 
100 int CMMJetHits::peak() const{
101  return m_peak;
102 }
103 
104 } // end of namespace bracket
TRTCalib_Extractor.hits
hits
Definition: TRTCalib_Extractor.py:35
LVL1::CMMJetHits::Error
int Error() const
returns error for peak sample
Definition: CMMJetHits.cxx:78
LVL1::CMMJetHits::peak
int peak() const
returns peak slice number
Definition: CMMJetHits.cxx:105
LVL1::CMMJetHits::setPeak
void setPeak(int peak)
In multi-slice readout, need to specify which slice corresponds to the triggered bunch-crossing.
Definition: CMMJetHits.cxx:100
CMMJetHits.h
LVL1::CMMJetHits::crate
int crate() const
Data accessors.
Definition: CMMJetHits.cxx:63
LVL1::CMMJetHits::m_hits
std::vector< unsigned int > m_hits
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h:71
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::CMMJetHits::CMMJetHits
CMMJetHits()
Constructors.
Definition: CMMJetHits.cxx:27
LVL1::CMMJetHits::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h:70
LVL1::CMMJetHits::m_dataID
int m_dataID
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h:69
LVL1::CMMJetHits::m_errors
std::vector< int > m_errors
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h:72
LVL1::CMMJetHits::dataID
int dataID() const
returns data ID of data
Definition: CMMJetHits.cxx:68
LVL1::CMMJetHits::Hits
unsigned int Hits() const
returns hits for peak sample
Definition: CMMJetHits.cxx:73
mergePhysValFiles.errors
list errors
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:43
LVL1::CMMJetHits::m_crate
int m_crate
Internal data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMJetHits.h:68
LVL1::CMMJetHits::addHits
void addHits(const std::vector< unsigned int > &hits, const std::vector< int > &errors)
Add hits to existing object.
Definition: CMMJetHits.cxx:93
LVL1::CMMJetHits::~CMMJetHits
virtual ~CMMJetHits()
Destructor.
Definition: CMMJetHits.cxx:36
LVL1::CMMJetHits::HitsVec
const std::vector< unsigned int > & HitsVec() const
Multi-slice accessors.
Definition: CMMJetHits.cxx:83
LVL1::CMMJetHits::ErrorVec
const std::vector< int > & ErrorVec() const
returns errors
Definition: CMMJetHits.cxx:88