ATLAS Offline Software
JEMEtSums_v2.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: JEMEtSums_v2.cxx 652807 2015-03-09 21:52:07Z 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 
25  {
26  setCrate( crate );
27  setModule( module );
28  }
29 
32  const std::vector<uint16_t>& etVec,
33  const std::vector<uint16_t>& exVec,
34  const std::vector<uint16_t>& eyVec,
35  const uint8_t peak)
36  {
37  setCrate( crate );
38  setModule( module );
39  setEtVec( etVec );
40  setExVec( exVec );
41  setEyVec( eyVec );
42  setPeak( peak );
43  }
44 
45 
49  AUXSTORE_OBJECT_SETTER_AND_GETTER( JEMEtSums_v2 , std::vector<uint16_t> , etVec , setEtVec )
50  AUXSTORE_OBJECT_SETTER_AND_GETTER( JEMEtSums_v2 , std::vector<uint16_t> , exVec , setExVec )
51  AUXSTORE_OBJECT_SETTER_AND_GETTER( JEMEtSums_v2 , std::vector<uint16_t> , eyVec , setEyVec )
52 
53  uint8_t JEMEtSums_v2::forward() const
54  {
55  uint8_t result(0);
56  uint8_t mod = module();
57  if( ((mod%8) == 0) || ((mod%8) == 7) ){
58  result = 1;
59  }
60  return result;
61  }
62 
64  {
65  return etVec()[ peak() ];
66  }
67 
69  {
70  return exVec()[ peak() ];
71  }
72 
74  {
75  return eyVec()[ peak() ];
76  }
77 
78 } // 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::JEMEtSums_v2::setExVec
void setExVec(const std::vector< uint16_t > &)
set exVec - ex for all time slices
get_generator_info.result
result
Definition: get_generator_info.py:21
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD::JEMEtSums_v2::initialize
virtual void initialize(const uint8_t crate, const uint8_t module)
initialize
Definition: JEMEtSums_v2.cxx:24
AuxStoreAccessorMacros.h
xAOD::JEMEtSums_v2::setCrate
void setCrate(uint8_t)
set crate number
xAOD::JEMEtSums_v2::exVec
const std::vector< uint16_t > & exVec() const
get exVec - ex 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::JEMEtSums_v2::peak
uint8_t peak() const
get peak
xAOD::JEMEtSums_v2::crate
uint8_t crate() const
get crate number
xAOD::JEMEtSums_v2::ey
uint16_t ey() const
get ey for eyVec[peak] - time slice that (hopefully) contains the collision
Definition: JEMEtSums_v2.cxx:73
xAOD::JEMEtSums_v2::eyVec
const std::vector< uint16_t > & eyVec() const
get eyVec - ey for all time slices
xAOD::JEMEtSums_v2::setEtVec
void setEtVec(const std::vector< uint16_t > &)
set etVec - et for all time slices
python.PyAthena.module
module
Definition: PyAthena.py:131
xAOD::JEMEtSums_v2::et
uint16_t et() const
get et for etVec[peak] - time slice that (hopefully) contains the collision
Definition: JEMEtSums_v2.cxx:63
maskDeadModules.mod
mod
Definition: maskDeadModules.py:36
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
xAOD::JEMEtSums_v2
Description of JEMEtSums_v2.
Definition: JEMEtSums_v2.h:26
xAOD::JEMEtSums_v2::etVec
const std::vector< uint16_t > & etVec() const
Please note that in the context of JEMEtSums, et is total energy, not transverse energy For transvers...
xAOD::JEMEtSums_v2::setPeak
void setPeak(uint8_t)
set peak
JEMEtSums_v2.h
xAOD::JEMEtSums_v2::JEMEtSums_v2
JEMEtSums_v2()
Default constructor.
Definition: JEMEtSums_v2.cxx:18
xAOD::JEMEtSums_v2::ex
uint16_t ex() const
get ex for exVec[peak] - time slice that (hopefully) contains the collision
Definition: JEMEtSums_v2.cxx:68
xAOD::JEMEtSums_v2::module
uint8_t module() const
get module
xAOD::JEMEtSums_v2::setModule
void setModule(uint8_t)
set module
xAOD::JEMEtSums_v2::setEyVec
void setEyVec(const std::vector< uint16_t > &)
set eyVec - ey for all time slices
xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1
Definition: CaloRings_v1.cxx:27