ATLAS Offline Software
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 
11 namespace xAOD {
12 
13  // Default ctor
15  : SG::AuxElement() {
16  }
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 
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 }
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::TrigTrackCounts_v1::eta_phiSumEntries
double eta_phiSumEntries(float value_x, float value_y, int cutType) const
Definition: TrigTrackCounts_v1.cxx:48
xAOD::TrigTrackCounts_v1::~TrigTrackCounts_v1
~TrigTrackCounts_v1()
Destructor.
Definition: TrigTrackCounts_v1.cxx:18
xAOD::TrigTrackCounts_v1
Definition: TrigTrackCounts_v1.h:12
xAOD::TrigTrackCounts_v1::TrigTrackCounts_v1
TrigTrackCounts_v1()
Definition: TrigTrackCounts_v1.cxx:14
TrigTrackCounts_v1.h
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
ConvertOldUJHistosToNewHistos.etaBins
list etaBins
Definition: ConvertOldUJHistosToNewHistos.py:145
xAOD::TrigTrackCounts_v1::etaBins
unsigned int etaBins() const
xAOD::etaMax
etaMax
Definition: HIEventShape_v2.cxx:46
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::TrigTrackCounts_v1::etaMin
float etaMin() const
xAOD::TrigTrackCounts_v1::phiBins
unsigned int phiBins() const
xAOD::double
double
Definition: CompositeParticle_v1.cxx:159
xAOD::TrigTrackCounts_v1::etaMax
float etaMax() const
LArCellBinning.etaMin
etaMin
Definition: LArCellBinning.py:84
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
xAODTrigMinBiasHelperFunc.h
xAOD::TrigTrackCounts_v1::phiMax
float phiMax() const
xAOD::TrigTrackCounts_v1::phiMin
float phiMin() 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