![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef CALOEVENT_CALOSUM_H
6 #define CALOEVENT_CALOSUM_H
9 #include "CaloGeoHelpers/CaloSampling.h"
44 typedef std::pair<CaloRegion,CaloSampling::CaloSample>
key_t;
54 typedef std::vector<data_t>
bin_t;
155 size_t numberOfSums = 1);
183 double etaLow,
double etaHigh);
198 const std::vector<double>& etaLow,
199 const std::vector<double>& etaHigh);
222 std::vector<double>& lowEtas,
223 std::vector<double>& highEtas)
const;
256 double& lowEdge,
double& highEdge)
const;
264 virtual bool getBinCenter(
size_t theIndex,
double& binCenter)
const;
291 double theBinnedVariable,
292 const std::vector<double>& theSummedVariables);
302 double theBinnedVariable,
303 double theSummedVariable);
318 double theBinnedVariable,
319 const std::vector<double>& theSummedVariables);
329 double theBinnedVariable,
330 double theSummedVariable);
362 std::vector<double>& theSums)
const;
372 double theBinnedVariable,
373 std::vector<double>& theSums)
const;
387 std::vector<double>& theSums)
const;
400 double theBinnedVariable,
401 std::vector<double>& theSums)
const;
JetConstituentVector::iterator iterator
@ Central
Central region indicator.
virtual size_t getNumberOfSums() const
Returns number of sums in each bin.
std::vector< double > data_t
Data type for parallel running sums in a bin.
range_map_t m_regionRanges
Store for region ranges.
data_t::const_iterator data_const_iter_t
Data const iterator type.
@ Forward
Forward region indicator.
@ EndCap
Central region indicator.
CaloSum()
Default constructor.
std::pair< CaloRegion, CaloSampling::CaloSample > key_t
Key type for compressed storage.
@ UnknownType
Unknown variable type.
virtual bool getBinCenter(size_t theIndex, double &binCenter) const
Returns bin center.
Container for binned sums of calorimeter variables.
virtual bool getRange(const CaloRegion &theRegion, std::vector< double > &lowEtas, std::vector< double > &highEtas) const
Returns eta range(s) for a given region.
store_t::iterator store_iter_t
Store iterator type.
bool getSums(const_iterator &theIterator, size_t theBinIndex, std::vector< double > &theSums) const
Returns sums for a given iterator.
store_t m_sumStore
Store for sums.
@ EtFraction
Transverse energy fraction.
const_iterator end() const
Store end iterator.
@ EFraction
Energy fraction.
const_iterator begin() const
Store begin iterator.
std::map< key_t, bin_t > store_t
Store data type.
@ EDensity
Energy density.
std::pair< double, double > range_t
Range type.
virtual const CaloBinDescriptor< double > & getBinDescriptor() const
Returns reference to complete bin descriptor.
bin_t::iterator bin_iter_t
Bin iterator type.
@ Em
Electromagnetic calorimeter indicator.
bin_t::const_iterator bin_const_iter_t
Bin const iterator type.
bool setUp()
Set up defaults.
virtual bool setRegion(const CaloSum::CaloRegion &theRegion, double etaLow, double etaHigh)
Configure regions.
virtual bool getVariableRange(double &lowLimit, double &highLimit) const
Returs lower and upper limit of binned variable range.
@ UnknownRegion
Unknown region.
bool m_defaultRanges
Process flow control: indicates default range overwrite.
std::vector< range_t > range_cont_t
Range container type.
CaloVarType m_varType
Binned variable type.
virtual bool getBinEdges(size_t theIndex, double &lowEdge, double &highEdge) const
Returns bin edges for a given bin.
virtual bool contains(const CaloSum::CaloRegion &theRegion) const
Returns sums for a given sampling, eta, and index.
std::vector< data_t > bin_t
Bin type.
Data object for each calorimeter readout cell.
@ Et
Transverse energy amplitude.
CaloVarType
Binned variable type.
store_t::const_iterator store_const_iter_t
Store const iterator type.
CaloBinDescriptor< double > m_binDescriptor
Bin descriptor.
data_t::iterator data_iter_t
Data iterator type.
@ Had
Hadronic calorimeter indicator.
virtual ~CaloSum()
Useful constructor.
std::map< CaloRegion, range_cont_t > range_map_t
Range map type.
virtual bool add(const CaloCell *theCell, double theBinnedVariable, const std::vector< double > &theSummedVariables)
Add to sums.
virtual CaloVarType getVarType() const
Returns binned variable type.
virtual CaloRegion getRegion(double theEta) const
Retrieve region for a given eta.
CaloRegion
Region indicator implementation.
virtual size_t getNumberOfBins() const
Returns number of bins.
static CaloSampling::CaloSample getSampling(const_iterator &theIterator)
Returns sampling for a given iterator.
store_const_iter_t const_iterator
Store iterator type.
size_t m_numberOfSums
Store size: number of sums.
static key_t getKey(const CaloRegion &theRegion, const CaloSampling::CaloSample &theSample)
Translate into key.