ATLAS Offline Software
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 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 
18  #include "AthenaKernel/CLASS_DEF.h"
19 
20 
21  #include <iostream>
22  #ifndef TRIGGERSPACE
24  #else
25  #include "Coordinate.h"
26  #endif
27  namespace LVL1 {
28 
33  class CMMEtSums {
34  public:
35 
36  enum DataIDs { REMOTE = 16, LOCAL, TOTAL,
38 
40  CMMEtSums();
41  CMMEtSums(int crate, int dataID);
42  CMMEtSums(int crate, int dataID,
43  const std::vector<unsigned int>& Et,
44  const std::vector<unsigned int>& Ex,
45  const std::vector<unsigned int>& Ey,
46  const std::vector<int>& EtError,
47  const std::vector<int>& ExError,
48  const std::vector<int>& EyError,
49  int peak);
50 
51  virtual ~CMMEtSums();
52 
54  void setPeak(int peak);
56  void addEt(const std::vector<unsigned int>& Et,
57  const std::vector<int>& EtError);
58  void addEx(const std::vector<unsigned int>& Ex,
59  const std::vector<int>& ExError);
60  void addEy(const std::vector<unsigned int>& Ey,
61  const std::vector<int>& EyError);
62 
64  int crate() const;
65  int dataID() const;
67  unsigned int Et() const;
68  unsigned int Ex() const;
69  unsigned int Ey() const;
70  int EtError() const;
71  int ExError() const;
72  int EyError() const;
74  const std::vector<unsigned int>& EtVec() const;
75  const std::vector<unsigned int>& ExVec() const;
76  const std::vector<unsigned int>& EyVec() const;
77  const std::vector<int>& EtErrorVec() const;
78  const std::vector<int>& ExErrorVec() const;
79  const std::vector<int>& EyErrorVec() const;
80  int peak() const;
81 
83  private:
84  int m_crate;
85  int m_dataID;
86  int m_peak;
87  std::vector <unsigned int> m_Et;
88  std::vector <unsigned int> m_Ex;
89  std::vector <unsigned int> m_Ey;
90  std::vector <int> m_EtError;
91  std::vector <int> m_ExError;
92  std::vector <int> m_EyError;
93 
94  };
95  } // end of namespace
96 
97 #ifndef CMMEtSums_ClassDEF_H
99 #endif
100 
101 #endif
102 
103 
LVL1::CMMEtSums::m_crate
int m_crate
Internal data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:84
LVL1::CMMEtSums::m_EyError
std::vector< int > m_EyError
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:92
LVL1::CMMEtSums::CMMEtSums
CMMEtSums()
Constructors.
Definition: CMMEtSums.cxx:27
LVL1::CMMEtSums::SUM_ET_MAP
@ SUM_ET_MAP
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:37
LVL1::CMMEtSums::m_EtError
std::vector< int > m_EtError
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:90
LVL1::CMMEtSums
CMMEtSums object stores Et sums from the Energy CMMs.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:33
LVL1::CMMEtSums::LOCAL
@ LOCAL
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:36
LVL1::CMMEtSums::m_Ex
std::vector< unsigned int > m_Ex
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:88
LVL1::CMMEtSums::ExErrorVec
const std::vector< int > & ExErrorVec() const
returns module Ex errors
Definition: CMMEtSums.cxx:140
LVL1::CMMEtSums::Et
unsigned int Et() const
For triggered time slice.
Definition: CMMEtSums.cxx:90
LVL1::CMMEtSums::EyErrorVec
const std::vector< int > & EyErrorVec() const
returns module Ey errors
Definition: CMMEtSums.cxx:145
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::CMMEtSums::REMOTE
@ REMOTE
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:36
LVL1::CMMEtSums::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:86
LVL1::CMMEtSums::m_Ey
std::vector< unsigned int > m_Ey
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:89
LVL1::CMMEtSums::dataID
int dataID() const
returns data ID
Definition: CMMEtSums.cxx:85
LVL1::CMMEtSums::MAXID
@ MAXID
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:37
LVL1::CMMEtSums::setPeak
void setPeak(int peak)
In multi-slice readout must specify which slide is triggered BC.
Definition: CMMEtSums.cxx:171
LVL1::CMMEtSums::Ex
unsigned int Ex() const
returns module Ex sum for peak sample
Definition: CMMEtSums.cxx:95
LVL1::CMMEtSums::EyError
int EyError() const
returns module Ey sum error for peak sample
Definition: CMMEtSums.cxx:115
LVL1::CMMEtSums::DataIDs
DataIDs
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:36
LVL1::CMMEtSums::Ey
unsigned int Ey() const
returns module Ey sum for peak sample
Definition: CMMEtSums.cxx:100
LVL1::CMMEtSums::addEt
void addEt(const std::vector< unsigned int > &Et, const std::vector< int > &EtError)
Add data to existing objects.
Definition: CMMEtSums.cxx:150
LVL1::CMMEtSums::EtError
int EtError() const
returns module ET sum error for peak sample
Definition: CMMEtSums.cxx:105
LVL1::CMMEtSums::EyVec
const std::vector< unsigned int > & EyVec() const
returns module Ey sum
Definition: CMMEtSums.cxx:130
LVL1::CMMEtSums::m_Et
std::vector< unsigned int > m_Et
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:87
Coordinate.h
Coordinate policies.
LVL1::CMMEtSums::ExError
int ExError() const
returns module Ex sum error for peak sample
Definition: CMMEtSums.cxx:110
LVL1::CMMEtSums::EtVec
const std::vector< unsigned int > & EtVec() const
Access multi-slice data.
Definition: CMMEtSums.cxx:120
LVL1::CMMEtSums::addEy
void addEy(const std::vector< unsigned int > &Ey, const std::vector< int > &EyError)
Update Ey sum.
Definition: CMMEtSums.cxx:164
LVL1::CMMEtSums::m_dataID
int m_dataID
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:85
Coordinate.h
LVL1::CMMEtSums::~CMMEtSums
virtual ~CMMEtSums()
Definition: CMMEtSums.cxx:40
LVL1::CMMEtSums::crate
int crate() const
Data accessors.
Definition: CMMEtSums.cxx:80
LVL1::CMMEtSums::m_ExError
std::vector< int > m_ExError
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:91
LVL1::CMMEtSums::addEx
void addEx(const std::vector< unsigned int > &Ex, const std::vector< int > &ExError)
Update Ex sum.
Definition: CMMEtSums.cxx:157
LVL1::CMMEtSums::MISSING_ET_SIG_MAP
@ MISSING_ET_SIG_MAP
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:37
LVL1::CMMEtSums::MISSING_ET_MAP
@ MISSING_ET_MAP
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:37
LVL1::CMMEtSums::peak
int peak() const
returns peak slice number
Definition: CMMEtSums.cxx:176
LVL1::CMMEtSums::EtErrorVec
const std::vector< int > & EtErrorVec() const
returns module ET errors
Definition: CMMEtSums.cxx:135
LVL1::CMMEtSums::TOTAL
@ TOTAL
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:36
CMMEtSums_ClassDEF.h
CLASS_DEF.h
macros to associate a CLID to a type
LVL1::CMMEtSums::ExVec
const std::vector< unsigned int > & ExVec() const
returns module Ex sum
Definition: CMMEtSums.cxx:125