ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODTrigMinBias
Root
TrigTrackCounts_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/TrigTrackCounts_v1.h
"
9
#include "
xAODTrigMinBias/xAODTrigMinBiasHelperFunc.h
"
10
11
namespace
xAOD
{
12
13
// Default ctor
14
TrigTrackCounts_v1::TrigTrackCounts_v1
()
15
:
SG
::AuxElement() {
16
}
17
18
TrigTrackCounts_v1::~TrigTrackCounts_v1
(){}
19
// Simple accessor functions for the "default variable" access pattern
20
21
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
TrigTrackCounts_v1
, std::vector<float>, z0_pt, setZ0_pt)
22
AUXSTORE_OBJECT_SETTER_AND_GETTER
(
TrigTrackCounts_v1
, std::vector<float>, eta_phi, setEta_phi)
23
24
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigTrackCounts_v1
,
unsigned
int
, z0Bins, setZ0Bins)
25
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigTrackCounts_v1
,
float
, z0Min, setZ0Min)
26
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigTrackCounts_v1
,
float
, z0Max, setZ0Max)
27
28
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigTrackCounts_v1
,
unsigned
int
, ptBins, setPtBins)
29
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigTrackCounts_v1
,
float
, ptMin, setPtMin)
30
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigTrackCounts_v1
,
float
, ptMax, setPtMax)
31
32
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigTrackCounts_v1
,
unsigned
int
, etaBins, setEtaBins)
33
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigTrackCounts_v1
,
float
, etaMin, setEtaMin)
34
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigTrackCounts_v1
,
float
,
etaMax
, setEtaMax)
35
36
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigTrackCounts_v1
,
unsigned
int
, phiBins, setPhiBins)
37
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigTrackCounts_v1
,
float
, phiMin, setPhiMin)
38
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
TrigTrackCounts_v1
,
float
, phiMax, setPhiMax)
39
40
double
TrigTrackCounts_v1
::
z0_ptSumEntries
(
float
value_x,
float
value_y,
int
cutType)
const
{
41
static
const
Accessor< std::vector<float> > acc_contents(
"z0_pt"
);
42
return
xAOD::sumEntries
(acc_contents(*
this
),
43
z0Bins
(),
z0Min
(),
z0Max
(),
44
ptBins
(),
ptMin
(),
ptMax
(),
45
value_x,value_y,cutType);
46
}
47
48
double
TrigTrackCounts_v1:: eta_phiSumEntries
(
float
value_x,
float
value_y,
int
cutType)
const
{
49
static
const
Accessor< std::vector<float> > acc_contents(
"eta_phi"
);
50
return
xAOD::sumEntries
(acc_contents(*
this
),
51
etaBins
(),
etaMin
(),
etaMax
(),
52
phiBins
(),
phiMin
(),
phiMax
(),
53
value_x,value_y,cutType);
54
}
55
}
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
TrigTrackCounts_v1.h
xAOD::TrigTrackCounts_v1
Definition
TrigTrackCounts_v1.h:12
xAOD::TrigTrackCounts_v1::phiMin
float phiMin() const
xAOD::TrigTrackCounts_v1::z0_ptSumEntries
double z0_ptSumEntries(float value_x, float value_y, int cutType) const
Definition
TrigTrackCounts_v1.cxx:40
xAOD::TrigTrackCounts_v1::phiBins
unsigned int phiBins() const
xAOD::TrigTrackCounts_v1::TrigTrackCounts_v1
TrigTrackCounts_v1()
Definition
TrigTrackCounts_v1.cxx:14
xAOD::TrigTrackCounts_v1::etaMin
float etaMin() const
xAOD::TrigTrackCounts_v1::etaBins
unsigned int etaBins() const
xAOD::TrigTrackCounts_v1::ptMin
float ptMin() const
xAOD::TrigTrackCounts_v1::phiMax
float phiMax() const
xAOD::TrigTrackCounts_v1::~TrigTrackCounts_v1
~TrigTrackCounts_v1()
Destructor.
Definition
TrigTrackCounts_v1.cxx:18
xAOD::TrigTrackCounts_v1::eta_phiSumEntries
double eta_phiSumEntries(float value_x, float value_y, int cutType) const
Definition
TrigTrackCounts_v1.cxx:48
xAOD::TrigTrackCounts_v1::etaMax
float etaMax() const
xAOD::TrigTrackCounts_v1::z0Max
float z0Max() const
xAOD::TrigTrackCounts_v1::z0Min
float z0Min() const
xAOD::TrigTrackCounts_v1::ptMax
float ptMax() const
xAOD::TrigTrackCounts_v1::z0Bins
unsigned int z0Bins() const
xAOD::TrigTrackCounts_v1::ptBins
unsigned int ptBins() const
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::etaMax
etaMax
Definition
HIEventShape_v2.cxx:46
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::double
double
Definition
CompositeParticle_v1.cxx:159
xAODTrigMinBiasHelperFunc.h
Generated on
for ATLAS Offline Software by
1.17.0