|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef EVENTSHAPEEVENT_EVENTFEATURE_H
8 #define EVENTSHAPEEVENT_EVENTFEATURE_H
74 const std::string&
tag,
75 const std::vector<double>&
dataList);
85 const std::string&
tag,
86 unsigned int dataStructure,
87 const std::vector<double>&
dataList);
99 const std::string&
tag,
100 unsigned int dataStructure);
120 const std::string&
tag()
const;
145 const std::vector<double>&
dataList()
const;
249 const std::vector<double>&
data);
250 bool addDataBlock(
size_t startIdx,
size_t endIdx,
const std::vector<double>&
std::string replace(std::string s, const std::string &s2, const std::string &s3)
char data[hepevt_bytes_allocation_ATLAS]
static const std::map< FeatureType, std::string > m_featureTags
Lookup for feature type and tag matches.
size_t numberDataWords() const
Retrieve number of words in data block.
bool m_structureFixed
Control flag for setting number of data words.
@ ETDENSITY_ETA_WINDOWS
density in sliding windows
FeatureType m_type
Internal cache for feature type.
size_t numberDataBlocks()
Retrieve number of data blocks.
unsigned int m_dataBlocks
Internal cache for data structure descriptor (number of blocks)
bool addDataBlock(const std::vector< double > &data)
static FeatureType featureType()
Default feature type.
Basic container for event feature data.
void setType(FeatureType type)
Set feature type.
FeatureType type() const
Retrieve feature type.
unsigned int buildFeatureStructure()
Build compressed feature structure.
std::string m_tag
Internal cache for feature tag.
unsigned int m_featureStructure
Internal cache for compressed data structure descriptor.
bool indexRange(size_t startIdx, index_t &idx)
std::pair< size_t, size_t > index_t
@ ETDENSITY_USER
User defined density.
void setNumberDataWords(size_t nWords)
Set number of data words per block.
void setDataList(const std::vector< double > &data)
Set vector data store.
@ ETDENSITY_JETAREA_ETA
FastJet density, dependent
EventFeature()
Default constructor.
bool insertDataBlock(size_t startIdx, size_t endIdx, const std::vector< double > &data)
unsigned int m_dataWords
Internal cache data structure description (words per block)
EventFeature & operator=(const EventFeature &feature)
Assignment operator.
virtual ~EventFeature()
Destructor.
bool setDataBlock(size_t blockIdx, const std::vector< double > &data, bool replace=true)
Set one data block.
const std::string & tag() const
Retrieve feature tag.
unsigned int featureStructure() const
Retrieve data structure descriptor.
std::vector< double > m_dataList
Internal cache for vector data.
bool dataBlock(size_t blockIdx, std::vector< double > &data)
Return one datablock.
FeatureStructureMask
Feature structure descriptors.
void setNumberDataBlocks(size_t nBlocks)
Set number of blocks.
@ ETDENSITY_JETAREA
FastJet density
static const std::string & featureTag()
Default feature tag.
void setFeatureStructure(bool updateCache=false)
Set/update feature structure.
const std::vector< double > & dataList() const
Retrieve reference to vector store.
void setTag(const std::string &tag)
Set feature tag.