ATLAS Offline Software
Event
xAOD
xAODTrigMinBias
Root
TrigSpacePointCounts_v1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
#include "
xAODCore/AuxStoreAccessorMacros.h
"
7
8
#include "
xAODTrigMinBias/versions/TrigSpacePointCounts_v1.h
"
9
#include "
xAODTrigMinBias/xAODTrigMinBiasHelperFunc.h
"
10
11
namespace
xAOD
{
12
13
// Default ctor
14
TrigSpacePointCounts_v1::TrigSpacePointCounts_v1
()
15
:
SG
::AuxElement() {
16
}
17
18
TrigSpacePointCounts_v1::~TrigSpacePointCounts_v1
(){}
19
// Simple accessor functions for the "default variable" access pattern
20
21
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
TrigSpacePointCounts_v1
,std::vector<float>,contentsPixelClusEndcapC, setContentsPixelClusEndcapC)
22
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
TrigSpacePointCounts_v1
,std::vector<float>,contentsPixelClusBarrel, setContentsPixelClusBarrel)
23
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
TrigSpacePointCounts_v1
,std::vector<float>,contentsPixelClusEndcapA, setContentsPixelClusEndcapA)
24
25
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigSpacePointCounts_v1
,
unsigned
int
, pixelClusTotBins, setPixelClusTotBins)
26
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigSpacePointCounts_v1
,
float
, pixelClusTotMin, setPixelClusTotMin)
27
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigSpacePointCounts_v1
,
float
, pixelClusTotMax, setPixelClusTotMax)
28
29
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigSpacePointCounts_v1
,
unsigned
int
, pixelClusSizeBins, setPixelClusSizeBins)
30
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigSpacePointCounts_v1
,
float
, pixelClusSizeMin, setPixelClusSizeMin)
31
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigSpacePointCounts_v1
,
float
, pixelClusSizeMax, setPixelClusSizeMax)
32
33
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigSpacePointCounts_v1
,
unsigned
int
, sctSpEndcapC, setSctSpEndcapC)
34
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigSpacePointCounts_v1
,
unsigned
int
, sctSpBarrel, setSctSpBarrel)
35
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigSpacePointCounts_v1
,
unsigned
int
, sctSpEndcapA, setSctSpEndcapA)
36
37
double
TrigSpacePointCounts_v1
::pixelClusBarrelSumEntries(
float
value_x,
float
value_y,
int
cutType)
const
{
38
static
const
Accessor< std::vector<float>
> acc_contents(
"contentsPixelClusBarrel"
);
39
return
xAOD::sumEntries
(acc_contents(*
this
),
40
pixelClusTotBins(),pixelClusTotMin(),pixelClusTotMax(),
41
pixelClusSizeBins(),pixelClusSizeMin(),pixelClusSizeMax(),
42
value_x,value_y,cutType);
43
}
44
//
45
double
TrigSpacePointCounts_v1::pixelClusEndcapASumEntries
(
float
value_x,
float
value_y,
int
cutType)
const
{
46
static
const
Accessor< std::vector<float>
> acc_contents(
"contentsPixelClusEndcapA"
);
47
return
xAOD::sumEntries
(acc_contents(*
this
),
48
pixelClusTotBins
(),
pixelClusTotMin
(),
pixelClusTotMax
(),
49
pixelClusSizeBins
(),
pixelClusSizeMin
(),
pixelClusSizeMax
(),
50
value_x,value_y,cutType);
51
}
52
//
53
double
TrigSpacePointCounts_v1::pixelClusEndcapCSumEntries
(
float
value_x,
float
value_y,
int
cutType)
const
{
54
static
const
Accessor< std::vector<float>
> acc_contents(
"contentsPixelClusEndcapC"
);
55
return
xAOD::sumEntries
(acc_contents(*
this
),
56
pixelClusTotBins
(),
pixelClusTotMin
(),
pixelClusTotMax
(),
57
pixelClusSizeBins
(),
pixelClusSizeMin
(),
pixelClusSizeMax
(),
58
value_x,value_y,cutType);
59
}
60
61
}
xAOD::TrigSpacePointCounts_v1::pixelClusSizeBins
unsigned int pixelClusSizeBins() const
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
xAOD::TrigSpacePointCounts_v1::pixelClusTotBins
unsigned int pixelClusTotBins() const
xAOD::TrigSpacePointCounts_v1::~TrigSpacePointCounts_v1
~TrigSpacePointCounts_v1()
Destructor.
Definition:
TrigSpacePointCounts_v1.cxx:18
xAOD::TrigSpacePointCounts_v1::TrigSpacePointCounts_v1
TrigSpacePointCounts_v1()
Definition:
TrigSpacePointCounts_v1.cxx:14
SG
Forward declaration.
Definition:
CaloCellPacker_400_500.h:32
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition:
Control/AthContainers/AthContainers/Accessor.h:68
AuxStoreAccessorMacros.h
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition:
ICaloAffectedTool.h:24
xAOD::TrigSpacePointCounts_v1::pixelClusEndcapCSumEntries
double pixelClusEndcapCSumEntries(float value_x, float value_y, int cutType) const
Definition:
TrigSpacePointCounts_v1.cxx:53
xAOD::TrigSpacePointCounts_v1::pixelClusSizeMin
float pixelClusSizeMin() const
xAOD::TrigSpacePointCounts_v1::pixelClusEndcapASumEntries
double pixelClusEndcapASumEntries(float value_x, float value_y, int cutType) const
Definition:
TrigSpacePointCounts_v1.cxx:45
TrigSpacePointCounts_v1.h
xAOD::double
double
Definition:
CompositeParticle_v1.cxx:159
xAOD::sumEntries
double sumEntries(const std::vector< float > &cont, unsigned int nbins_x, float min_x, float max_x, unsigned int nbins_y, float min_y, float max_y, float value_x, float value_y, int cutType)
Definition:
xAODTrigMinBiasHelperFunc_v1.cxx:9
xAOD::TrigSpacePointCounts_v1
Definition:
TrigSpacePointCounts_v1.h:12
xAODTrigMinBiasHelperFunc.h
xAOD::TrigSpacePointCounts_v1::pixelClusTotMin
float pixelClusTotMin() const
xAOD::TrigSpacePointCounts_v1::pixelClusSizeMax
float pixelClusSizeMax() const
xAOD::TrigSpacePointCounts_v1::pixelClusTotMax
float pixelClusTotMax() const
xAOD::AUXSTORE_OBJECT_SETTER_AND_GETTER
AUXSTORE_OBJECT_SETTER_AND_GETTER(CaloRings_v1, RingSetLinks, ringSetLinks, setRingSetLinks) unsigned CaloRings_v1
Definition:
CaloRings_v1.cxx:27
Generated on Tue Dec 24 2024 21:21:28 for ATLAS Offline Software by
1.8.18