ATLAS Offline Software
Loading...
Searching...
No Matches
CMXJetTob_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: CMXJetTob_v1.cxx 687949 2015-08-06 15:48:49Z amazurov $
6
7// EDM includes(s):
9
10// Local include(s):
12
13namespace xAOD{
14
19
22 {
23 setCrate( crate );
24 setJem( jem );
25 setFrame( frame );
26 setLocation( loc );
27 }
28
31 const std::vector<uint16_t>& energyLargeVec,
32 const std::vector<uint16_t>& energySmallVec,
33 const std::vector<uint32_t>& errorVec,
34 const std::vector<uint16_t>& presenceMapVec,
35 const uint8_t peak)
36 {
37 setCrate( crate );
38 setJem( jem );
39 setFrame( frame );
40 setLocation( loc );
45 setPeak( peak );
46 }
47
48
50 void CMXJetTob_v1::addTob(const std::vector<uint16_t>& energyLargeVec,
51 const std::vector<uint16_t>& energySmallVec,
52 const std::vector<uint32_t>& errorVec,
53 const std::vector<uint16_t>& presenceMapVec)
54 {
59 }
60
66 AUXSTORE_OBJECT_SETTER_AND_GETTER( CMXJetTob_v1 , std::vector<uint16_t> , energyLargeVec , setEnergyLargeVec )
67 AUXSTORE_OBJECT_SETTER_AND_GETTER( CMXJetTob_v1 , std::vector<uint16_t> , energySmallVec , setEnergySmallVec )
68 AUXSTORE_OBJECT_SETTER_AND_GETTER( CMXJetTob_v1 , std::vector<uint32_t> , errorVec , setErrorVec )
69 AUXSTORE_OBJECT_SETTER_AND_GETTER( CMXJetTob_v1 , std::vector<uint16_t> , presenceMapVec , setPresenceMapVec )
70
71
74
77 {
78 return energyLargeVec()[ peak() ];
79 }
80
83 {
84 return energySmallVec()[ peak() ];
85 }
86
89 {
90 return errorVec()[ peak() ];
91 }
92
95 {
96 return presenceMapVec()[ peak() ];
97 }
98
99} // namespace xAOD
100
#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 CMXJetTob_v1.
uint8_t peak() const
get peak
virtual void initialize(const uint8_t crate, const uint8_t jem, const uint8_t frame, const uint8_t loc)
initialize
void setEnergyLargeVec(const std::vector< uint16_t > &)
set energyLargeVec
const std::vector< uint16_t > & energySmallVec() const
get energySmallVec
uint16_t presenceMap() const
get presenceMapVec at peak bunch crossing
void setPeak(uint8_t)
set peak
const std::vector< uint16_t > & energyLargeVec() const
get energyLargeVec
void setJem(uint8_t)
set jem
void setCrate(uint8_t)
set crate
uint32_t error() const
get errorVec at peak bunch crossing
const std::vector< uint32_t > & errorVec() const
get errorVec
uint8_t frame() const
get frame
const std::vector< uint16_t > & presenceMapVec() const
get presenceMapVec
void setFrame(uint8_t)
set frame
CMXJetTob_v1()
Default constructor.
void setEnergySmallVec(const std::vector< uint16_t > &)
set energySmallVec
uint16_t energyLarge() const
Peak functions - return value of peak bunch crossing Assuming we have got the timing calibration corr...
uint8_t jem() const
get jem
void setPresenceMapVec(const std::vector< uint16_t > &)
set presenceMapVec
void addTob(const std::vector< uint16_t > &energyLargeVec, const std::vector< uint16_t > &energySmallVec, const std::vector< uint32_t > &errorVec, const std::vector< uint16_t > &presenceMapVec)
add data to existing object
void setLocation(uint8_t)
set location
uint16_t energySmall() const
get energySmallVec at peak bunch crossing
uint8_t crate() const
get crate
void setErrorVec(const std::vector< uint32_t > &)
set errorVec
Forward declaration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setWord1 uint16_t
setEventNumber uint32_t