ATLAS Offline Software
CMMEtSums_v1.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: CMMEtSums_v1.h 631127 2014-11-26 09:54:48Z gwatts $
8 #ifndef XAODTRIGL1CALO_VERSIONS_CMMETSUMS_V1_H
9 #define XAODTRIGL1CALO_VERSIONS_CMMETSUMS_V1_H
10 
11 #include "AthLinks/ElementLink.h"
13 
14 namespace xAOD {
15 
22 
23  class CMMEtSums_v1 : public SG::AuxElement{
24  public:
25  // Default constructor
26  CMMEtSums_v1();
27 
29  int crate() const;
31  void setCrate(int);
32 
34  int dataID() const;
36  void setDataID(int);
37 
39  int peak() const;
41  void setPeak(int);
42 
45 
47  const std::vector<unsigned int>& etVec() const;
49  void setEtVec(const std::vector<unsigned int>&);
50 
52  const std::vector<unsigned int>& exVec() const;
54  void setExVec(const std::vector<unsigned int>&);
55 
57  const std::vector<unsigned int>& eyVec() const;
59  void setEyVec(const std::vector<unsigned int>&);
60 
62  const std::vector<int>& etErrorVec() const;
64  void setEtErrorVec(const std::vector<int>&);
65 
67  const std::vector<int>& exErrorVec() const;
69  void setExErrorVec(const std::vector<int>&);
70 
72  const std::vector<int>& eyErrorVec() const;
74  void setEyErrorVec(const std::vector<int>&);
75 
76  // add et. Internally calls setEtVec(Et); setEtErrorVec(EtError);
77  void addEt(const std::vector<unsigned int>& Et,const std::vector<int>& EtError);
78  // add ex. Internally calls setExVec(Ex); setExErrorVec(ExError);
79  void addEx(const std::vector<unsigned int>& Ex,const std::vector<int>& ExError);
80  // add ey. Internally calls setEyVec(Ey); setEyErrorVec(EyError);
81  void addEy(const std::vector<unsigned int>& Ey,const std::vector<int>& EyError);
82 
83  // get et for etVec[peak] - time slice that (hopefully) contains the collision
84  unsigned int et() const;
85  // get ex for exVec[peak] - time slice that (hopefully) contains the collision
86  unsigned int ex() const;
87  // get ey for eyVec[peak] - time slice that (hopefully) contains the collision
88  unsigned int ey() const;
89  // get etError for etErrorVec[peak] - time slice that (hopefully) contains the collision
90  int etError() const;
91  // get exError for exErrorVec[peak] - time slice that (hopefully) contains the collision
92  int exError() const;
93  // get eyError for eyErrorVec[peak] - time slice that (hopefully) contains the collision
94  int eyError() const;
95 
99  inline const std::vector<unsigned int>& EtVec() const {return this->etVec();}
100  inline const std::vector<unsigned int>& ExVec() const {return this->exVec();}
101  inline const std::vector<unsigned int>& EyVec() const {return this->eyVec();}
102  inline const std::vector<int>& EtErrorVec() const {return this->etErrorVec();}
103  inline const std::vector<int>& ExErrorVec() const {return this->exErrorVec();}
104  inline const std::vector<int>& EyErrorVec() const {return this->eyErrorVec();}
105  inline unsigned int Et() const {return this->et();}
106  inline unsigned int Ex() const {return this->ex();}
107  inline unsigned int Ey() const {return this->ey();}
108  inline int EtError() const {return this->etError();}
109  inline int ExError() const {return this->exError();}
110  inline int EyError() const {return this->eyError();}
111 
112  };
113 } // namespace xAOD
114 
115 #endif // XAODTRIGL1CALO_VERSIONS_CMMEtSums_V1_H
xAOD::CMMEtSums_v1::setEtErrorVec
void setEtErrorVec(const std::vector< int > &)
set etErrorVec - et Error for all time slices
xAOD::CMMEtSums_v1::setExErrorVec
void setExErrorVec(const std::vector< int > &)
set exErrorVec - ex Error for all time slices
xAOD::CMMEtSums_v1::etVec
const std::vector< unsigned int > & etVec() const
Please note that in the context of CMMEtSums, et is total energy, not transverse energy For transvers...
xAOD::CMMEtSums_v1::Et
unsigned int Et() const
Definition: CMMEtSums_v1.h:105
xAOD::CMMEtSums_v1::CMMEtSums_v1
CMMEtSums_v1()
Definition: CMMEtSums_v1.cxx:18
xAOD::CMMEtSums_v1::Ex
unsigned int Ex() const
Definition: CMMEtSums_v1.h:106
xAOD::CMMEtSums_v1::ex
unsigned int ex() const
Definition: CMMEtSums_v1.cxx:56
xAOD::CMMEtSums_v1::EyErrorVec
const std::vector< int > & EyErrorVec() const
Definition: CMMEtSums_v1.h:104
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:472
xAOD::CMMEtSums_v1
Description of CMMEtSums_v1.
Definition: CMMEtSums_v1.h:23
xAOD::CMMEtSums_v1::eyError
int eyError() const
Definition: CMMEtSums_v1.cxx:76
xAOD::CMMEtSums_v1::exErrorVec
const std::vector< int > & exErrorVec() const
get exErrorVec - ex Error for all time slices
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::CMMEtSums_v1::EyVec
const std::vector< unsigned int > & EyVec() const
Definition: CMMEtSums_v1.h:101
xAOD::CMMEtSums_v1::Ey
unsigned int Ey() const
Definition: CMMEtSums_v1.h:107
xAOD::CMMEtSums_v1::setEyVec
void setEyVec(const std::vector< unsigned int > &)
set eyVec - ey for all time slices
xAOD::CMMEtSums_v1::et
unsigned int et() const
Definition: CMMEtSums_v1.cxx:51
xAOD::CMMEtSums_v1::EtErrorVec
const std::vector< int > & EtErrorVec() const
Definition: CMMEtSums_v1.h:102
xAOD::CMMEtSums_v1::ExErrorVec
const std::vector< int > & ExErrorVec() const
Definition: CMMEtSums_v1.h:103
xAOD::CMMEtSums_v1::EyError
int EyError() const
Definition: CMMEtSums_v1.h:110
xAOD::CMMEtSums_v1::eyVec
const std::vector< unsigned int > & eyVec() const
get eyVec - ey for all time slices
xAOD::CMMEtSums_v1::dataID
int dataID() const
get dataID
xAOD::CMMEtSums_v1::peak
int peak() const
get peak
xAOD::CMMEtSums_v1::exVec
const std::vector< unsigned int > & exVec() const
get exVec - ex for all time slices
xAOD::CMMEtSums_v1::ExError
int ExError() const
Definition: CMMEtSums_v1.h:109
xAOD::CMMEtSums_v1::etError
int etError() const
Definition: CMMEtSums_v1.cxx:66
xAOD::CMMEtSums_v1::setPeak
void setPeak(int)
set peak
xAOD::CMMEtSums_v1::crate
int crate() const
get crate number
xAOD::CMMEtSums_v1::ey
unsigned int ey() const
Definition: CMMEtSums_v1.cxx:61
xAOD::CMMEtSums_v1::setDataID
void setDataID(int)
set dataID
xAOD::CMMEtSums_v1::addEy
void addEy(const std::vector< unsigned int > &Ey, const std::vector< int > &EyError)
Definition: CMMEtSums_v1.cxx:45
xAOD::CMMEtSums_v1::setExVec
void setExVec(const std::vector< unsigned int > &)
set exVec - ex for all time slices
xAOD::CMMEtSums_v1::addEt
void addEt(const std::vector< unsigned int > &Et, const std::vector< int > &EtError)
Definition: CMMEtSums_v1.cxx:33
xAOD::CMMEtSums_v1::setEtVec
void setEtVec(const std::vector< unsigned int > &)
set etVec - et for all time slices
xAOD::CMMEtSums_v1::ExVec
const std::vector< unsigned int > & ExVec() const
Definition: CMMEtSums_v1.h:100
xAOD::CMMEtSums_v1::EtError
int EtError() const
Definition: CMMEtSums_v1.h:108
xAOD::CMMEtSums_v1::EtVec
const std::vector< unsigned int > & EtVec() const
Backwards Compatibility with Trigger/TrigT1/TrigT1CaloEvent Run1 EDM did not strictly follow camelCas...
Definition: CMMEtSums_v1.h:99
xAOD::CMMEtSums_v1::setEyErrorVec
void setEyErrorVec(const std::vector< int > &)
set eyErrorVec - ey Error for all time slices
xAOD::CMMEtSums_v1::etErrorVec
const std::vector< int > & etErrorVec() const
get etErrorVec - et Error for all time slices
xAOD::CMMEtSums_v1::exError
int exError() const
Definition: CMMEtSums_v1.cxx:71
xAOD::CMMEtSums_v1::addEx
void addEx(const std::vector< unsigned int > &Ex, const std::vector< int > &ExError)
Definition: CMMEtSums_v1.cxx:39
AuxElement.h
Base class for elements of a container that can have aux data.
xAOD::CMMEtSums_v1::setCrate
void setCrate(int)
set crate number
xAOD::CMMEtSums_v1::eyErrorVec
const std::vector< int > & eyErrorVec() const
get eyErrorVec - ey Error for all time slices