ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODTrigL1Calo
Root
CMMJetHits_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: CMMJetHits_v1.cxx 638578 2015-01-09 17:00:15Z morrisj $
6
7
// System include(s):
8
#include <cmath>
9
10
// EDM includes(s):
11
#include "
xAODCore/AuxStoreAccessorMacros.h
"
12
13
// Local include(s):
14
#include "
xAODTrigL1Calo/versions/CMMJetHits_v1.h
"
15
16
namespace
xAOD
{
17
18
CMMJetHits_v1::CMMJetHits_v1
() :
19
SG
::AuxElement()
20
{
21
}
22
23
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
CMMJetHits_v1
,
int
, crate , setCrate )
24
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
CMMJetHits_v1
,
int
, dataID , setDataID )
25
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
CMMJetHits_v1
,
int
, peak , setPeak )
26
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
CMMJetHits_v1
, std::vector<unsigned int> , hitsVec , setHitsVec )
27
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
CMMJetHits_v1
, std::vector<int> , errorVec , setErrorVec )
28
29
void
CMMJetHits_v1
::
addHits
(
const
std
::
vector
<
unsigned
int
>&
hits
,
const
std
::
vector
<
int
>&
error
)
30
{
31
setHitsVec
(
hits
);
32
setErrorVec
(
error
);
33
34
}
35
36
unsigned
int
CMMJetHits_v1::hits
()
const
37
{
38
return
hitsVec
()[
peak
() ];
39
}
40
41
int
CMMJetHits_v1::error
()
const
42
{
43
return
errorVec
()[
peak
() ];
44
}
45
46
}
// namespace xAOD
AuxStoreAccessorMacros.h
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
Definition
AuxStoreAccessorMacros.h:36
AUXSTORE_OBJECT_SETTER_AND_GETTER
#define AUXSTORE_OBJECT_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of complex auxiliary properties.
Definition
AuxStoreAccessorMacros.h:88
CMMJetHits_v1.h
vector
Definition
MultiHisto.h:13
xAOD::CMMJetHits_v1
Description of CMMJetHits_v1.
Definition
CMMJetHits_v1.h:23
xAOD::CMMJetHits_v1::peak
int peak() const
get peak
xAOD::CMMJetHits_v1::hitsVec
const std::vector< unsigned int > & hitsVec() const
get hitsVec - hits for all time slices
xAOD::CMMJetHits_v1::hits
unsigned int hits() const
get hits for hitsVec[peak] - time slice that (hopefully) contains the collision
Definition
CMMJetHits_v1.cxx:36
xAOD::CMMJetHits_v1::error
int error() const
get error for errorVec[peak] - time slice that (hopefully) contains the collision
Definition
CMMJetHits_v1.cxx:41
xAOD::CMMJetHits_v1::errorVec
const std::vector< int > & errorVec() const
get errorVec - errors for all time slices
xAOD::CMMJetHits_v1::setErrorVec
void setErrorVec(const std::vector< int > &)
set errorVec - errors for all time slices
xAOD::CMMJetHits_v1::addHits
void addHits(const std::vector< unsigned int > &hits, const std::vector< int > &error)
add hits. Internally calls setHitsVec(hits);setErrorVec(error);
Definition
CMMJetHits_v1.cxx:29
xAOD::CMMJetHits_v1::CMMJetHits_v1
CMMJetHits_v1()
Definition
CMMJetHits_v1.cxx:18
xAOD::CMMJetHits_v1::setHitsVec
void setHitsVec(const std::vector< unsigned int > &)
set hitsVec - hits for all time slices
const
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
error
Definition
IImpactPoint3dEstimator.h:72
std
STL namespace.
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
Generated on
for ATLAS Offline Software by
1.17.0