ATLAS Offline Software
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 
13 namespace xAOD{
14 
16  SG::AuxElement()
17  {
18  }
19 
21  void CMXJetTob_v1::initialize(const uint8_t crate,const uint8_t jem,const uint8_t frame,const uint8_t loc)
22  {
23  setCrate( crate );
24  setJem( jem );
25  setFrame( frame );
26  setLocation( loc );
27  }
28 
30  void CMXJetTob_v1::initialize(const uint8_t crate,const uint8_t jem,const uint8_t frame,const uint8_t loc,
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 
64  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( CMXJetTob_v1 , uint8_t , location , setLocation )
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 
72 
76  uint16_t CMXJetTob_v1::energyLarge() const
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 
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::CMXJetTob_v1::energySmall
uint16_t energySmall() const
get energySmallVec at peak bunch crossing
Definition: CMXJetTob_v1.cxx:82
xAOD::CMXJetTob_v1::energyLargeVec
const std::vector< uint16_t > & energyLargeVec() const
get energyLargeVec
xAOD::CMXJetTob_v1::CMXJetTob_v1
CMXJetTob_v1()
Default constructor.
Definition: CMXJetTob_v1.cxx:15
xAOD::CMXJetTob_v1::addTob
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
Definition: CMXJetTob_v1.cxx:50
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD::CMXJetTob_v1::setErrorVec
void setErrorVec(const std::vector< uint32_t > &)
set errorVec
AuxStoreAccessorMacros.h
xAOD::CMXJetTob_v1::peak
uint8_t peak() const
get peak
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
CMXJetTob_v1.h
xAOD::CMXJetTob_v1::jem
uint8_t jem() const
get jem
xAOD::CMXJetTob_v1::setCrate
void setCrate(uint8_t)
set crate
xAOD::CMXJetTob_v1::crate
uint8_t crate() const
get crate
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::CMXJetTob_v1::energySmallVec
const std::vector< uint16_t > & energySmallVec() const
get energySmallVec
xAOD::CMXJetTob_v1::setPresenceMapVec
void setPresenceMapVec(const std::vector< uint16_t > &)
set presenceMapVec
xAOD::CMXJetTob_v1::setJem
void setJem(uint8_t)
set jem
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
xAOD::CMXJetTob_v1::setLocation
void setLocation(uint8_t)
set location
xAOD::CMXJetTob_v1::setEnergyLargeVec
void setEnergyLargeVec(const std::vector< uint16_t > &)
set energyLargeVec
xAOD::CMXJetTob_v1
Description of CMXJetTob_v1.
Definition: CMXJetTob_v1.h:27
xAOD::CMXJetTob_v1::frame
uint8_t frame() const
get frame
xAOD::CMXJetTob_v1::error
uint32_t error() const
get errorVec at peak bunch crossing
Definition: CMXJetTob_v1.cxx:88
xAOD::CMXJetTob_v1::initialize
virtual void initialize(const uint8_t crate, const uint8_t jem, const uint8_t frame, const uint8_t loc)
initialize
Definition: CMXJetTob_v1.cxx:21
xAOD::CMXJetTob_v1::presenceMapVec
const std::vector< uint16_t > & presenceMapVec() const
get presenceMapVec
xAOD::CMXJetTob_v1::setFrame
void setFrame(uint8_t)
set frame
xAOD::CMXJetTob_v1::errorVec
const std::vector< uint32_t > & errorVec() const
get errorVec
xAOD::CMXJetTob_v1::presenceMap
uint16_t presenceMap() const
get presenceMapVec at peak bunch crossing
Definition: CMXJetTob_v1.cxx:94
xAOD::CMXJetTob_v1::setEnergySmallVec
void setEnergySmallVec(const std::vector< uint16_t > &)
set energySmallVec
xAOD::CMXJetTob_v1::setPeak
void setPeak(uint8_t)
set peak
xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1
Definition: CaloRings_v1.cxx:27