ATLAS Offline Software
Loading...
Searching...
No Matches
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
13namespace xAOD{
14
19
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
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
78
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
#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 CMXCPTob_v1.
Definition CMXCPTob_v1.h:27
uint8_t cmx() const
get cmx
void setCmx(uint8_t)
set cmx
uint8_t cpm() const
get cpm
uint32_t error() const
get errorVec at peak bunch crossing
const std::vector< uint8_t > & energyVec() const
get energyVec
void setErrorVec(const std::vector< uint32_t > &)
set errorVec
uint16_t presenceMap() const
get presenceMapVec at peak bunch crossing
uint8_t crate() const
get crate
uint8_t energy() const
Peak functions - return value of peak bunch crossing Assuming we have got the timing calibration corr...
void setPeak(uint8_t)
set peak
const std::vector< uint32_t > & errorVec() const
get errorVec
void setEnergyVec(const std::vector< uint8_t > &)
set energyVec
const std::vector< uint8_t > & isolationVec() const
get isolationVec
void setLocation(uint8_t)
set location
CMXCPTob_v1()
Default constructor.
void setChip(uint8_t)
set chip
void setCpm(uint8_t)
set cpm
virtual void initialize(const uint8_t crate, const uint8_t cmx, const uint8_t cpm, const uint8_t chip, const uint8_t loc)
initialize
void setPresenceMapVec(const std::vector< uint16_t > &)
set presenceMapVec
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
const std::vector< uint16_t > & presenceMapVec() const
get presenceMapVec
void setIsolationVec(const std::vector< uint8_t > &)
set isolationVec
uint8_t chip() const
get chip
uint8_t peak() const
get peak
void setCrate(uint8_t)
set crate
uint8_t isolation() const
get isolationVec at peak bunch crossing
Forward declaration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setWord1 uint16_t
setEventNumber uint32_t