ATLAS Offline Software
Loading...
Searching...
No Matches
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
16namespace xAOD{
17
22
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 );
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
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
#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 JEMEtSums_v2.
void setPeak(uint8_t)
set peak
virtual void initialize(const uint8_t crate, const uint8_t module)
initialize
void setCrate(uint8_t)
set crate number
uint16_t et() const
get et for etVec[peak] - time slice that (hopefully) contains the collision
uint16_t ey() const
get ey for eyVec[peak] - time slice that (hopefully) contains the collision
uint8_t module() const
get module
const std::vector< uint16_t > & eyVec() const
get eyVec - ey for all time slices
uint16_t ex() const
get ex for exVec[peak] - time slice that (hopefully) contains the collision
void setExVec(const std::vector< uint16_t > &)
set exVec - ex for all time slices
void setEyVec(const std::vector< uint16_t > &)
set eyVec - ey for all time slices
uint8_t crate() const
get crate number
uint8_t forward() const
Is this JEMEtSums forward?
void setEtVec(const std::vector< uint16_t > &)
set etVec - et for all time slices
const std::vector< uint16_t > & etVec() const
Please note that in the context of JEMEtSums, et is total energy, not transverse energy For transvers...
uint8_t peak() const
get peak
const std::vector< uint16_t > & exVec() const
get exVec - ex for all time slices
JEMEtSums_v2()
Default constructor.
void setModule(uint8_t)
set module
Forward declaration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setWord1 uint16_t