ATLAS Offline Software
CMXCPTob_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: CMXCPTob_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 CMXCPTob_v1::initialize(const uint8_t crate,const uint8_t cmx,
22  const uint8_t cpm,const uint8_t chip,const uint8_t loc)
23  {
24  setCrate( crate );
25  setCmx( cmx );
26  setCpm( cpm );
27  setChip( chip );
28  setLocation( loc );
29  }
30 
32  void CMXCPTob_v1::initialize(const uint8_t crate,const uint8_t cmx,
33  const uint8_t cpm,const uint8_t chip,const uint8_t loc,
34  const std::vector<uint8_t>& energyVec,
35  const std::vector<uint8_t>& isolationVec,
36  const std::vector<uint32_t>& errorVec,
37  const std::vector<uint16_t>& presenceMapVec,
38  const uint8_t peak)
39  {
40  setCrate( crate );
41  setCmx( cmx );
42  setCpm( cpm );
43  setChip( chip );
44  setLocation( loc );
49  setPeak( peak );
50  }
51 
53  void CMXCPTob_v1::addTob(const std::vector<uint8_t>& energyVec,
54  const std::vector<uint8_t>& isolationVec,
55  const std::vector<uint32_t>& errorVec,
56  const std::vector<uint16_t>& presenceMapVec)
57  {
62  }
63 
68  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( CMXCPTob_v1 , uint8_t , location , setLocation )
70  AUXSTORE_OBJECT_SETTER_AND_GETTER( CMXCPTob_v1 , std::vector<uint8_t> , energyVec , setEnergyVec )
71  AUXSTORE_OBJECT_SETTER_AND_GETTER( CMXCPTob_v1 , std::vector<uint8_t> , isolationVec , setIsolationVec )
72  AUXSTORE_OBJECT_SETTER_AND_GETTER( CMXCPTob_v1 , std::vector<uint32_t> , errorVec , setErrorVec )
73  AUXSTORE_OBJECT_SETTER_AND_GETTER( CMXCPTob_v1 , std::vector<uint16_t> , presenceMapVec , setPresenceMapVec )
74 
75 
76 
81  {
82  return energyVec()[ peak() ];
83  }
84 
87  {
88  return isolationVec()[ peak() ];
89  }
90 
93  {
94  return errorVec()[ peak() ];
95  }
96 
99  {
100  return presenceMapVec()[ peak() ];
101  }
102 
103 } // namespace xAOD
104 
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::CMXCPTob_v1::crate
uint8_t crate() const
get crate
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
xAOD::CMXCPTob_v1::addTob
void addTob(const std::vector< uint8_t > &energyVec, const std::vector< uint8_t > &isolationVec, const std::vector< uint32_t > &errorVec, const std::vector< uint16_t > &presenceMapVec)
add data to existing object
Definition: CMXCPTob_v1.cxx:53
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD::CMXCPTob_v1::setPresenceMapVec
void setPresenceMapVec(const std::vector< uint16_t > &)
set presenceMapVec
AuxStoreAccessorMacros.h
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAOD::CMXCPTob_v1::setCrate
void setCrate(uint8_t)
set crate
xAOD::CMXCPTob_v1::presenceMap
uint16_t presenceMap() const
get presenceMapVec at peak bunch crossing
Definition: CMXCPTob_v1.cxx:98
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::CMXCPTob_v1
Description of CMXCPTob_v1.
Definition: CMXCPTob_v1.h:27
xAOD::CMXCPTob_v1::setPeak
void setPeak(uint8_t)
set peak
xAOD::CMXCPTob_v1::errorVec
const std::vector< uint32_t > & errorVec() const
get errorVec
xAOD::CMXCPTob_v1::setIsolationVec
void setIsolationVec(const std::vector< uint8_t > &)
set isolationVec
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
xAOD::CMXCPTob_v1::initialize
virtual void initialize(const uint8_t crate, const uint8_t cmx, const uint8_t cpm, const uint8_t chip, const uint8_t loc)
initialize
Definition: CMXCPTob_v1.cxx:21
xAOD::CMXCPTob_v1::error
uint32_t error() const
get errorVec at peak bunch crossing
Definition: CMXCPTob_v1.cxx:92
xAOD::CMXCPTob_v1::setCpm
void setCpm(uint8_t)
set cpm
xAOD::CMXCPTob_v1::setChip
void setChip(uint8_t)
set chip
CMXCPTob_v1.h
xAOD::CMXCPTob_v1::isolationVec
const std::vector< uint8_t > & isolationVec() const
get isolationVec
xAOD::CMXCPTob_v1::presenceMapVec
const std::vector< uint16_t > & presenceMapVec() const
get presenceMapVec
xAOD::CMXCPTob_v1::cmx
uint8_t cmx() const
get cmx
xAOD::CMXCPTob_v1::setLocation
void setLocation(uint8_t)
set location
xAOD::CMXCPTob_v1::setEnergyVec
void setEnergyVec(const std::vector< uint8_t > &)
set energyVec
xAOD::CMXCPTob_v1::energyVec
const std::vector< uint8_t > & energyVec() const
get energyVec
xAOD::CMXCPTob_v1::setCmx
void setCmx(uint8_t)
set cmx
xAOD::CMXCPTob_v1::setErrorVec
void setErrorVec(const std::vector< uint32_t > &)
set errorVec
xAOD::CMXCPTob_v1::isolation
uint8_t isolation() const
get isolationVec at peak bunch crossing
Definition: CMXCPTob_v1.cxx:86
xAOD::CMXCPTob_v1::CMXCPTob_v1
CMXCPTob_v1()
Default constructor.
Definition: CMXCPTob_v1.cxx:15
xAOD::CMXCPTob_v1::peak
uint8_t peak() const
get peak
xAOD::CMXCPTob_v1::cpm
uint8_t cpm() const
get cpm
xAOD::CMXCPTob_v1::chip
uint8_t chip() const
get chip
xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1
Definition: CaloRings_v1.cxx:27