ATLAS Offline Software
Loading...
Searching...
No Matches
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
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(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),
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),
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),
58 value_x,value_y,cutType);
59 }
60
61}
#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 pixelClusBarrelSumEntries(float value_x, float value_y, int cutType) const
unsigned int pixelClusTotBins() const
unsigned int pixelClusSizeBins() const
double pixelClusEndcapCSumEntries(float value_x, float value_y, int cutType) const
double pixelClusEndcapASumEntries(float value_x, float value_y, int cutType) 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)