ATLAS Offline Software
CMMCPHits_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: CMMCPHits_v1.cxx 638578 2015-01-09 17:00:15Z morrisj $
6 
7 // EDM includes(s):
9 
10 // Local include(s):
12 
13 namespace xAOD{
14 
16  SG::AuxElement()
17  {
18  }
19 
20  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( CMMCPHits_v1, int, crate, setCrate )
21  AUXSTORE_PRIMITIVE_SETTER_AND_GETTER( CMMCPHits_v1, int, dataID, setDataID )
23  AUXSTORE_OBJECT_SETTER_AND_GETTER( CMMCPHits_v1, std::vector<unsigned int>, hitsVec0, setHitsVec0 )
24  AUXSTORE_OBJECT_SETTER_AND_GETTER( CMMCPHits_v1, std::vector<unsigned int>, hitsVec1, setHitsVec1 )
25  AUXSTORE_OBJECT_SETTER_AND_GETTER( CMMCPHits_v1, std::vector<int>, errorVec0, setErrorVec0 )
26  AUXSTORE_OBJECT_SETTER_AND_GETTER( CMMCPHits_v1, std::vector<int>, errorVec1, setErrorVec1 )
27 
28  void CMMCPHits_v1::addHits(const std::vector<unsigned int>& hits0,
29  const std::vector<unsigned int>& hits1,
30  const std::vector<int>& error0,
31  const std::vector<int>& error1)
32  {
33  setHitsVec0( hits0 );
34  setHitsVec1( hits1 );
35  setErrorVec0( error0 );
36  setErrorVec1( error1 );
37  }
38 
39  unsigned int CMMCPHits_v1::hitWord0() const
40  {
41  return hitsVec0()[ peak() ];
42  }
43 
44  unsigned int CMMCPHits_v1::hitWord1() const
45  {
46  return hitsVec1()[ peak() ];
47  }
48 
50  {
51  return errorVec0()[ peak() ];
52  }
53 
55  {
56  return errorVec1()[ peak() ];
57  }
58 
59 } // namespace xAOD
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
AuxStoreAccessorMacros.h
xAOD::CMMCPHits_v1::error1
int error1() const
get error for errorVec1[peak] - time slice that (hopefully) contains the collision
Definition: CMMCPHits_v1.cxx:54
xAOD::CMMCPHits_v1
Description of CMMCPHits_v1.
Definition: CMMCPHits_v1.h:24
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::CMMCPHits_v1::hitWord0
unsigned int hitWord0() const
get hit word0 for hitsVec0[peak] - time slice that (hopefully) contains the collision
Definition: CMMCPHits_v1.cxx:39
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
xAOD::CMMCPHits_v1::error0
int error0() const
get error for errorVec0[peak] - time slice that (hopefully) contains the collision
Definition: CMMCPHits_v1.cxx:49
xAOD::CMMCPHits_v1::hitWord1
unsigned int hitWord1() const
get hit word1 for hitsVec1[peak] - time slice that (hopefully) contains the collision
Definition: CMMCPHits_v1.cxx:44
vector
Definition: MultiHisto.h:13
xAOD::CMMCPHits_v1::CMMCPHits_v1
CMMCPHits_v1()
Definition: CMMCPHits_v1.cxx:15
xAOD::CMMCPHits_v1::peak
int peak() const
get peak
xAOD::CMMCPHits_v1::errorVec0
const std::vector< int > & errorVec0() const
get errorVec0 - errors for all time slices
CMMCPHits_v1.h
xAOD::CMMCPHits_v1::errorVec1
const std::vector< int > & errorVec1() const
get errorVec1 - errors for all time slices
xAOD::CMMCPHits_v1::hitsVec0
const std::vector< unsigned int > & hitsVec0() const
get hitsVec0 - hits for all time slices
xAOD::CMMCPHits_v1::hitsVec1
const std::vector< unsigned int > & hitsVec1() const
get hitsVec1 - hits for all time slices
xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1
Definition: CaloRings_v1.cxx:27