72 variable_store_type::const_iterator beg =
75 return !theData.empty();
97 return storeData (theVariable, theData.begin(), theData.end());
133 variable_store_type::const_iterator beg =
135 return size_t(std::count_if(beg, beg +
fastNsamp(),
Functor to check if data is valid (non-zero)
Simple data object to store all variables in calorimeter samplings.
unsigned int getBitPattern(variable_key_type theVariable) const
void swap(CaloSamplingData &other)
size_t getNumberOfSamplings() const
Set variable type pattern for this store.
std::vector< value_type > vector_type
Vector type for data exchange (read/write)
CaloVariableType::VariableType variable_key_type
Variable look-up type.
unsigned int m_varTypePattern
bool checkBitPattern(variable_key_type theVariable)
CaloSamplingData()
Constructor.
value_type retrieveData(variable_key_type theVariable, sampling_key_type theSampling) const
Retrieve const reference to individual variable.
double value_type
General data type.
bool testConstPattern() const
CaloSampling::CaloSample sampling_key_type
Sampling look-up key type.
size_t getNumberOfVariableTypes() const
Return number of variable types.
virtual ~CaloSamplingData()
Destructor.
bool testBitPattern(variable_key_type theVariable) const
bool storeData(variable_key_type theVariable, sampling_key_type theSampling, value_type theData)
}
CaloSamplingData & operator=(const CaloSamplingData &)
variable_store_type m_dataStore
void swap(ElementLinkVector< DOBJ > &lhs, ElementLinkVector< DOBJ > &rhs)
definition of Calorimeter Variable types in CaloCluster.
static unsigned int setConstMarker(const unsigned int &bitPattern)