|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef CALOEVENT_CALOSAMPLINGDATA_H
8 #define CALOEVENT_CALOSAMPLINGDATA_H
10 #include "CaloGeoHelpers/CaloSampling.h"
90 template <
class Iterator>
129 size_t index (
size_t theVariable,
size_t theSampling)
const;
268 size_t idx =
index (theVariable, 0);
293 if (testBit == 0)
return false;
303 return theVariable *
fastNsamp() + theSampling;
313 template <
class Iterator>
315 Iterator
beg, Iterator
end)
JetConstituentVector::iterator iterator
void swap(CaloSamplingData &other)
friend class CaloClusterContainerCnvTest_p7
value_type retrieveData(variable_key_type theVariable, sampling_key_type theSampling) const
Retrieve const reference to individual variable.
double value_type
General data type.
CaloVariableType::VariableType variable_key_type
Variable look-up type.
bool testBitPattern(variable_key_type theVariable) const
bool storeData(variable_key_type theVariable, sampling_key_type theSampling, value_type theData)
}
std::vector< value_type > variable_store_type
Sampling look-up table type, internal use only.
unsigned int m_varTypePattern
Copy a range with bounds restriction.
virtual ~CaloSamplingData()
Destructor.
CaloSamplingData & operator=(const CaloSamplingData &)
size_t getNumberOfSamplings() const
Set variable type pattern for this store.
unsigned int getBitPattern(variable_key_type theVariable) const
size_t getNumberOfVariableTypes() const
Return number of variable types.
CaloSamplingData(const CaloSamplingData &rData)
Copy constructor.
static unsigned int getNumberOfVariables()
Functor to check if data is valid (non-zero)
CaloSamplingData()
Constructor.
void fill(H5::Group &out_file, size_t iterations)
static unsigned int getVariableBit(const VariableType &varType)
variable_store_type m_dataStore
static constexpr unsigned int getNumberOfSamplings()
Get number of available samplings.
static bool checkConst(const unsigned int &bitPattern)
std::vector< value_type > const_vector_type
Vector type for data exchange (read only)
bool contains(variable_key_type theVariable) const
Check on available variable types.
CaloSampling::CaloSample sampling_key_type
Sampling look-up key type.
bool testConstPattern() const
bool operator()(value_type theData)
auto copy_bounded(const InputRange &input, OutputRange &output) -> decltype(std::begin(output))
Copy a range with bounds restriction.
Simple data object to store all variables in calorimeter samplings.
size_t index(size_t theVariable, size_t theSampling) const
friend class CaloClusterContainerCnvTest_p6
bool checkBitPattern(variable_key_type theVariable)
std::vector< value_type > vector_type
Vector type for data exchange (read/write)