ATLAS Offline Software
Loading...
Searching...
No Matches
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4//***************************************************************************
5// CMMEtSums.h - description
6// -------------------
7// begin : 25 05 2006
8// email : Alan.Watson@cern.ch
9//***************************************************************************/
10
11//* *
12//* *
13//***************************************************************************/
14
15 #ifndef CMMEtSums_H
16 #define CMMEtSums_H
17
19
20
21 #ifndef TRIGGERSPACE
23 #else
24 #include "Coordinate.h"
25 #endif
26 namespace LVL1 {
27
31
32 class CMMEtSums {
33 public:
34
37
39 CMMEtSums() = default;
40 CMMEtSums(int crate, int dataID);
41 CMMEtSums(int crate, int dataID,
42 const std::vector<unsigned int>& Et,
43 const std::vector<unsigned int>& Ex,
44 const std::vector<unsigned int>& Ey,
45 const std::vector<int>& EtError,
46 const std::vector<int>& ExError,
47 const std::vector<int>& EyError,
48 int peak);
49
50
52 void setPeak(int peak);
54 void addEt(const std::vector<unsigned int>& Et,
55 const std::vector<int>& EtError);
56 void addEx(const std::vector<unsigned int>& Ex,
57 const std::vector<int>& ExError);
58 void addEy(const std::vector<unsigned int>& Ey,
59 const std::vector<int>& EyError);
60
62 int crate() const;
63 int dataID() const;
65 unsigned int Et() const;
66 unsigned int Ex() const;
67 unsigned int Ey() const;
68 int EtError() const;
69 int ExError() const;
70 int EyError() const;
72 const std::vector<unsigned int>& EtVec() const;
73 const std::vector<unsigned int>& ExVec() const;
74 const std::vector<unsigned int>& EyVec() const;
75 const std::vector<int>& EtErrorVec() const;
76 const std::vector<int>& ExErrorVec() const;
77 const std::vector<int>& EyErrorVec() const;
78 int peak() const;
79
81 private:
82 int m_crate{};
83 int m_dataID{};
84 int m_peak{};
85 std::vector <unsigned int> m_Et{0};
86 std::vector <unsigned int> m_Ex{0};
87 std::vector <unsigned int> m_Ey{0};
88 std::vector <int> m_EtError{0};
89 std::vector <int> m_ExError{0};
90 std::vector <int> m_EyError{0};
91
92 };
93 } // end of namespace
94
95#ifndef CMMEtSums_ClassDEF_H
97#endif
98
99#endif
100
101
macros to associate a CLID to a type
Coordinate policies.
unsigned int Ex() const
returns module Ex sum for peak sample
Definition CMMEtSums.cxx:69
int peak() const
returns peak slice number
const std::vector< int > & EtErrorVec() const
returns module ET errors
void addEx(const std::vector< unsigned int > &Ex, const std::vector< int > &ExError)
Update Ex sum.
const std::vector< int > & ExErrorVec() const
returns module Ex errors
int dataID() const
returns data ID
Definition CMMEtSums.cxx:59
int EyError() const
returns module Ey sum error for peak sample
Definition CMMEtSums.cxx:89
void addEt(const std::vector< unsigned int > &Et, const std::vector< int > &EtError)
Add data to existing objects.
int crate() const
Data accessors.
Definition CMMEtSums.cxx:54
unsigned int Et() const
For triggered time slice.
Definition CMMEtSums.cxx:64
const std::vector< unsigned int > & EtVec() const
Access multi-slice data.
Definition CMMEtSums.cxx:94
void addEy(const std::vector< unsigned int > &Ey, const std::vector< int > &EyError)
Update Ey sum.
const std::vector< unsigned int > & ExVec() const
returns module Ex sum
Definition CMMEtSums.cxx:99
unsigned int Ey() const
returns module Ey sum for peak sample
Definition CMMEtSums.cxx:74
const std::vector< int > & EyErrorVec() const
returns module Ey errors
void setPeak(int peak)
In multi-slice readout must specify which slide is triggered BC.
const std::vector< unsigned int > & EyVec() const
returns module Ey sum
int ExError() const
returns module Ex sum error for peak sample
Definition CMMEtSums.cxx:84
CMMEtSums()=default
Constructors.
int EtError() const
returns module ET sum error for peak sample
Definition CMMEtSums.cxx:79
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...