ATLAS Offline Software
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 
16 namespace xAOD{
17 
19  SG::AuxElement()
20  {
21  }
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 );
36  setEtErrorVec( EtError );
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
xAOD::AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
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...
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
AuxStoreAccessorMacros.h
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
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
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
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::EyError
int EyError() const
Definition: CMMEtSums_v1.h:110
vector
Definition: MultiHisto.h:13
xAOD::CMMEtSums_v1::eyVec
const std::vector< unsigned int > & eyVec() const
get eyVec - ey for all time slices
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
CMMEtSums_v1.h
xAOD::CMMEtSums_v1::ey
unsigned int ey() const
Definition: CMMEtSums_v1.cxx:61
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::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
xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1
Definition: CaloRings_v1.cxx:27
xAOD::CMMEtSums_v1::eyErrorVec
const std::vector< int > & eyErrorVec() const
get eyErrorVec - ey Error for all time slices