ATLAS Offline Software
Loading...
Searching...
No Matches
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
7
10
11namespace xAOD {
12
13 // Default ctor
17
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)
27
28 AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(TrigTrackCounts_v1, unsigned int, ptBins, setPtBins)
31
32 AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(TrigTrackCounts_v1, unsigned int, etaBins, setEtaBins)
35
36 AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(TrigTrackCounts_v1, unsigned int, phiBins, setPhiBins)
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}
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
#define AUXSTORE_OBJECT_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of complex auxiliary properties.
SG::Accessor< T, ALLOC > Accessor
Definition AuxElement.h:572
AuxElement()
Default constructor.
double z0_ptSumEntries(float value_x, float value_y, int cutType) const
unsigned int phiBins() const
unsigned int etaBins() const
double eta_phiSumEntries(float value_x, float value_y, int cutType) const
unsigned int z0Bins() const
unsigned int ptBins() const
Forward declaration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
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)