ATLAS Offline Software
Loading...
Searching...
No Matches
CMXCPHits_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: CMXCPHits_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
21 void CMXCPHits_v1::initialize(const uint8_t crate,const uint8_t cmx,const uint8_t source)
22 {
23 setCrate( crate );
24 setCmx( cmx );
25 setSourceComponent( source );
26 }
27
30 const std::vector<uint32_t>& hitsVec0,
31 const std::vector<uint32_t>& hitsVec1,
32 const std::vector<uint32_t>& errorVec0,
33 const std::vector<uint32_t>& errorVec1,
34 const uint8_t peak)
35 {
36 setCrate( crate );
37 setCmx( cmx );
38 setSourceComponent( source );
43 setPeak( peak );
44 }
45
47 void CMXCPHits_v1::addHits(const std::vector<uint32_t>& hitsVec0,
48 const std::vector<uint32_t>& hitsVec1,
49 const std::vector<uint32_t>& errorVec0,
50 const std::vector<uint32_t>& errorVec1)
51 {
56 }
57
60 AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( CMXCPHits_v1 , uint8_t , sourceComponent , setSourceComponent )
62 AUXSTORE_OBJECT_SETTER_AND_GETTER( CMXCPHits_v1 , std::vector<uint32_t> , hitsVec0 , setHitsVec0 )
63 AUXSTORE_OBJECT_SETTER_AND_GETTER( CMXCPHits_v1 , std::vector<uint32_t> , hitsVec1 , setHitsVec1 )
64 AUXSTORE_OBJECT_SETTER_AND_GETTER( CMXCPHits_v1 , std::vector<uint32_t> , errorVec0 , setErrorVec0 )
65 AUXSTORE_OBJECT_SETTER_AND_GETTER( CMXCPHits_v1 , std::vector<uint32_t> , errorVec1 , setErrorVec1 )
66
67
70
73 {
74 return hitsVec0()[ peak() ];
75 }
76
79 {
80 return hitsVec1()[ peak() ];
81 }
82
85 {
86 return errorVec0()[ peak() ];
87 }
88
91 {
92 return errorVec1()[ peak() ];
93 }
94
95} // namespace xAOD
96
#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 CMXCPHits_v1.
void addHits(const std::vector< uint32_t > &hitsVec0, const std::vector< uint32_t > &hitsVec1, const std::vector< uint32_t > &errorVec0, const std::vector< uint32_t > &errorVec1)
add hits to existing object
void setPeak(uint8_t)
set peak
void setCmx(uint8_t)
set cmx
uint8_t peak() const
get peak
void setErrorVec0(const std::vector< uint32_t > &)
set errorVec0
uint8_t cmx() const
get cmx
const std::vector< uint32_t > & hitsVec0() const
get hitsVec0
uint32_t error1() const
get errorVec1 at peak bunch crossing
void setSourceComponent(uint8_t)
set source
uint32_t hits0() const
Peak functions - return value of peak bunch crossing Assuming we have got the timing calibration corr...
void setCrate(uint8_t)
set crate
virtual void initialize(const uint8_t crate, const uint8_t cmx, const uint8_t source)
initialize
uint32_t error0() const
get errorVec0 at peak bunch crossing
const std::vector< uint32_t > & errorVec1() const
get errorVec1
void setHitsVec0(const std::vector< uint32_t > &)
set hitsVec0
const std::vector< uint32_t > & hitsVec1() const
get hitsVec1
void setErrorVec1(const std::vector< uint32_t > &)
set errorVec1
void setHitsVec1(const std::vector< uint32_t > &)
set hitsVec1
uint32_t hits1() const
get hitsVec1 at peak bunch crossing
CMXCPHits_v1()
Default constructor.
uint8_t crate() const
get crate
const std::vector< uint32_t > & errorVec0() const
get errorVec0
Forward declaration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setEventNumber uint32_t