ATLAS Offline Software
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 
13 namespace xAOD{
14 
16  SG::AuxElement()
17  {
18  }
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 );
26  }
27 
29  void CMXCPHits_v1::initialize(const uint8_t crate,const uint8_t cmx,const uint8_t source,
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 );
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 
68 
72  uint32_t CMXCPHits_v1::hits0() const
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 
xAOD::CMXCPHits_v1::addHits
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
Definition: CMXCPHits_v1.cxx:47
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
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
AuxStoreAccessorMacros.h
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAOD::CMXCPHits_v1::peak
uint8_t peak() const
get peak
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::CMXCPHits_v1::setCrate
void setCrate(uint8_t)
set crate
xAOD::CMXCPHits_v1::setErrorVec1
void setErrorVec1(const std::vector< uint32_t > &)
set errorVec1
xAOD::CMXCPHits_v1::setSourceComponent
void setSourceComponent(uint8_t)
set source
xAOD::CMXCPHits_v1::setPeak
void setPeak(uint8_t)
set peak
xAOD::CMXCPHits_v1::hitsVec1
const std::vector< uint32_t > & hitsVec1() const
get hitsVec1
xAOD::CMXCPHits_v1::setErrorVec0
void setErrorVec0(const std::vector< uint32_t > &)
set errorVec0
xAOD::CMXCPHits_v1::CMXCPHits_v1
CMXCPHits_v1()
Default constructor.
Definition: CMXCPHits_v1.cxx:15
xAOD::CMXCPHits_v1::cmx
uint8_t cmx() const
get cmx
xAOD::CMXCPHits_v1::initialize
virtual void initialize(const uint8_t crate, const uint8_t cmx, const uint8_t source)
initialize
Definition: CMXCPHits_v1.cxx:21
xAOD::CMXCPHits_v1::error0
uint32_t error0() const
get errorVec0 at peak bunch crossing
Definition: CMXCPHits_v1.cxx:84
xAOD::CMXCPHits_v1::hitsVec0
const std::vector< uint32_t > & hitsVec0() const
get hitsVec0
xAOD::CMXCPHits_v1::errorVec1
const std::vector< uint32_t > & errorVec1() const
get errorVec1
CMXCPHits_v1.h
xAOD::CMXCPHits_v1::setCmx
void setCmx(uint8_t)
set cmx
xAOD::CMXCPHits_v1::setHitsVec1
void setHitsVec1(const std::vector< uint32_t > &)
set hitsVec1
xAOD::CMXCPHits_v1::crate
uint8_t crate() const
get crate
copySelective.source
string source
Definition: copySelective.py:32
xAOD::CMXCPHits_v1::setHitsVec0
void setHitsVec0(const std::vector< uint32_t > &)
set hitsVec0
xAOD::CMXCPHits_v1::errorVec0
const std::vector< uint32_t > & errorVec0() const
get errorVec0
xAOD::CMXCPHits_v1::error1
uint32_t error1() const
get errorVec1 at peak bunch crossing
Definition: CMXCPHits_v1.cxx:90
xAOD::CMXCPHits_v1
Description of CMXCPHits_v1.
Definition: CMXCPHits_v1.h:27
xAOD::CMXCPHits_v1::hits1
uint32_t hits1() const
get hitsVec1 at peak bunch crossing
Definition: CMXCPHits_v1.cxx:78
xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1
Definition: CaloRings_v1.cxx:27