ATLAS Offline Software
Loading...
Searching...
No Matches
CMMEtSums_v1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5// $Id: CMMEtSums_v1.cxx 638578 2015-01-09 17:00:15Z morrisj $
6
7// System include(s):
8#include <cmath>
9
10// EDM includes(s):
12
13// Local include(s):
15
16namespace xAOD{
17
22
23 AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( CMMEtSums_v1 , int , crate , setCrate )
24 AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( CMMEtSums_v1 , int , dataID , setDataID )
25 AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( CMMEtSums_v1 , int , peak , setPeak )
26 AUXSTORE_OBJECT_SETTER_AND_GETTER( CMMEtSums_v1 , std::vector<unsigned int> , etVec , setEtVec )
27 AUXSTORE_OBJECT_SETTER_AND_GETTER( CMMEtSums_v1 , std::vector<unsigned int> , exVec , setExVec )
28 AUXSTORE_OBJECT_SETTER_AND_GETTER( CMMEtSums_v1 , std::vector<unsigned int> , eyVec , setEyVec )
29 AUXSTORE_OBJECT_SETTER_AND_GETTER( CMMEtSums_v1 , std::vector<int> , etErrorVec , setEtErrorVec )
30 AUXSTORE_OBJECT_SETTER_AND_GETTER( CMMEtSums_v1 , std::vector<int> , exErrorVec , setExErrorVec )
31 AUXSTORE_OBJECT_SETTER_AND_GETTER( CMMEtSums_v1 , std::vector<int> , eyErrorVec , setEyErrorVec )
32
33 void CMMEtSums_v1::addEt(const std::vector<unsigned int>& Et,const std::vector<int>& EtError)
34 {
35 setEtVec( Et );
37 }
38
39 void CMMEtSums_v1::addEx(const std::vector<unsigned int>& Ex,const std::vector<int>& ExError)
40 {
41 setExVec( Ex );
43 }
44
45 void CMMEtSums_v1::addEy(const std::vector<unsigned int>& Ey,const std::vector<int>& EyError)
46 {
47 setEyVec( Ey );
49 }
50
51 unsigned int CMMEtSums_v1::et() const
52 {
53 return etVec()[ peak() ];
54 }
55
56 unsigned int CMMEtSums_v1::ex() const
57 {
58 return exVec()[ peak() ];
59 }
60
61 unsigned int CMMEtSums_v1::ey() const
62 {
63 return eyVec()[ peak() ];
64 }
65
67 {
68 return etErrorVec()[ peak() ];
69 }
70
72 {
73 return exErrorVec()[ peak() ];
74 }
75
77 {
78 return eyErrorVec()[ peak() ];
79 }
80
81} // namespace xAOD
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
#define AUXSTORE_OBJECT_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of complex auxiliary properties.
AuxElement()
Default constructor.
Description of CMMEtSums_v1.
int EtError() const
void addEy(const std::vector< unsigned int > &Ey, const std::vector< int > &EyError)
void setExErrorVec(const std::vector< int > &)
set exErrorVec - ex Error for all time slices
const std::vector< int > & exErrorVec() const
get exErrorVec - ex Error for all time slices
unsigned int Ey() const
unsigned int ey() const
const std::vector< unsigned int > & etVec() const
Please note that in the context of CMMEtSums, et is total energy, not transverse energy For transvers...
const std::vector< unsigned int > & exVec() const
get exVec - ex for all time slices
int ExError() const
unsigned int ex() const
void setEtVec(const std::vector< unsigned int > &)
set etVec - et for all time slices
const std::vector< int > & eyErrorVec() const
get eyErrorVec - ey Error for all time slices
unsigned int Ex() const
int peak() const
get peak
void setEyErrorVec(const std::vector< int > &)
set eyErrorVec - ey Error for all time slices
unsigned int et() const
unsigned int Et() const
const std::vector< int > & etErrorVec() const
get etErrorVec - et Error for all time slices
int EyError() const
void setEtErrorVec(const std::vector< int > &)
set etErrorVec - et Error for all time slices
void addEx(const std::vector< unsigned int > &Ex, const std::vector< int > &ExError)
void setEyVec(const std::vector< unsigned int > &)
set eyVec - ey for all time slices
void addEt(const std::vector< unsigned int > &Et, const std::vector< int > &EtError)
void setExVec(const std::vector< unsigned int > &)
set exVec - ex for all time slices
const std::vector< unsigned int > & eyVec() const
get eyVec - ey for all time slices
Forward declaration.
STL namespace.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.